| 1 |
// Code generated by protoc-gen-gogo. DO NOT EDIT. |
| 2 |
// source: proto/proto.proto |
| 3 |
|
| 4 |
package proto |
| 5 |
|
| 6 |
import ( |
| 7 |
bytes "bytes" |
| 8 |
fmt "fmt" |
| 9 |
_ "github.com/gogo/protobuf/gogoproto" |
| 10 |
proto "github.com/gogo/protobuf/proto" |
| 11 |
math "math" |
| 12 |
reflect "reflect" |
| 13 |
strings "strings" |
| 14 |
) |
| 15 |
|
| 16 |
// Reference imports to suppress errors if they are not otherwise used. |
| 17 |
var _ = proto.Marshal |
| 18 |
var _ = fmt.Errorf |
| 19 |
var _ = math.Inf |
| 20 |
|
| 21 |
// This is a compile-time assertion to ensure that this generated file |
| 22 |
// is compatible with the proto package it is being compiled against. |
| 23 |
// A compilation error at this line likely means your copy of the |
| 24 |
// proto package needs to be updated. |
| 25 |
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package |
| 26 |
|
| 27 |
type Subject struct { |
| 28 |
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 29 |
XXX_unrecognized []byte `json:"-"` |
| 30 |
XXX_sizecache int32 `json:"-"` |
| 31 |
} |
| 32 |
|
| 33 |
func (m *Subject) Reset() { *m = Subject{} } |
| 34 |
func (m *Subject) String() string { return proto.CompactTextString(m) } |
| 35 |
func (*Subject) ProtoMessage() {} |
| 36 |
func (*Subject) Descriptor() ([]byte, []int) { |
| 37 |
return fileDescriptor_9897619deba694d0, []int{0} |
| 38 |
} |
| 39 |
func (m *Subject) XXX_Unmarshal(b []byte) error { |
| 40 |
return xxx_messageInfo_Subject.Unmarshal(m, b) |
| 41 |
} |
| 42 |
func (m *Subject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 43 |
return xxx_messageInfo_Subject.Marshal(b, m, deterministic) |
| 44 |
} |
| 45 |
func (m *Subject) XXX_Merge(src proto.Message) { |
| 46 |
xxx_messageInfo_Subject.Merge(m, src) |
| 47 |
} |
| 48 |
func (m *Subject) XXX_Size() int { |
| 49 |
return xxx_messageInfo_Subject.Size(m) |
| 50 |
} |
| 51 |
func (m *Subject) XXX_DiscardUnknown() { |
| 52 |
xxx_messageInfo_Subject.DiscardUnknown(m) |
| 53 |
} |
| 54 |
|
| 55 |
var xxx_messageInfo_Subject proto.InternalMessageInfo |
| 56 |
|
| 57 |
func init() { |
| 58 |
proto.RegisterType((*Subject)(nil), "proto.Subject") |
| 59 |
} |
| 60 |
|
| 61 |
func init() { proto.RegisterFile("proto/proto.proto", fileDescriptor_9897619deba694d0) } |
| 62 |
|
| 63 |
var fileDescriptor_9897619deba694d0 = []byte{ |
| 64 |
// 103 bytes of a gzipped FileDescriptorProto |
| 65 |
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2c, 0x28, 0xca, 0x2f, |
| 66 |
0xc9, 0xd7, 0x07, 0x93, 0x7a, 0x60, 0x52, 0x88, 0x15, 0x4c, 0x49, 0xe9, 0xa6, 0x67, 0x96, 0x64, |
| 67 |
0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xa7, 0xe7, 0xa7, 0x43, 0xd5, 0x24, 0x95, 0xa6, 0x81, |
| 68 |
0x79, 0x10, 0x6d, 0x20, 0x16, 0x44, 0x97, 0x12, 0x27, 0x17, 0x7b, 0x70, 0x69, 0x52, 0x56, 0x6a, |
| 69 |
0x72, 0x89, 0x93, 0xc0, 0x87, 0x87, 0x72, 0x8c, 0x3f, 0x1e, 0xca, 0x31, 0xae, 0x78, 0x24, 0xc7, |
| 70 |
0xb8, 0xe3, 0x91, 0x1c, 0x63, 0x12, 0x1b, 0x58, 0x8d, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xf0, |
| 71 |
0xc4, 0xe7, 0x73, 0x6e, 0x00, 0x00, 0x00, |
| 72 |
} |
| 73 |
|
| 74 |
func (this *Subject) Equal(that interface{}) bool { |
| 75 |
if that == nil { |
| 76 |
return this == nil |
| 77 |
} |
| 78 |
|
| 79 |
that1, ok := that.(*Subject) |
| 80 |
if !ok { |
| 81 |
that2, ok := that.(Subject) |
| 82 |
if ok { |
| 83 |
that1 = &that2 |
| 84 |
} else { |
| 85 |
return false |
| 86 |
} |
| 87 |
} |
| 88 |
if that1 == nil { |
| 89 |
return this == nil |
| 90 |
} else if this == nil { |
| 91 |
return false |
| 92 |
} |
| 93 |
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { |
| 94 |
return false |
| 95 |
} |
| 96 |
return true |
| 97 |
} |
| 98 |
func (this *Subject) GoString() string { |
| 99 |
if this == nil { |
| 100 |
return "nil" |
| 101 |
} |
| 102 |
s := make([]string, 0, 4) |
| 103 |
s = append(s, "&proto.Subject{") |
| 104 |
if this.XXX_unrecognized != nil { |
| 105 |
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 106 |
} |
| 107 |
s = append(s, "}") |
| 108 |
return strings.Join(s, "") |
| 109 |
} |
| 110 |
func valueToGoStringProto(v interface{}, typ string) string { |
| 111 |
rv := reflect.ValueOf(v) |
| 112 |
if rv.IsNil() { |
| 113 |
return "nil" |
| 114 |
} |
| 115 |
pv := reflect.Indirect(rv).Interface() |
| 116 |
return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) |
| 117 |
} |
| 118 |
func NewPopulatedSubject(r randyProto, easy bool) *Subject { |
| 119 |
this := &Subject{} |
| 120 |
if !easy && r.Intn(10) != 0 { |
| 121 |
this.XXX_unrecognized = randUnrecognizedProto(r, 1) |
| 122 |
} |
| 123 |
return this |
| 124 |
} |
| 125 |
|
| 126 |
type randyProto interface { |
| 127 |
Float32() float32 |
| 128 |
Float64() float64 |
| 129 |
Int63() int64 |
| 130 |
Int31() int32 |
| 131 |
Uint32() uint32 |
| 132 |
Intn(n int) int |
| 133 |
} |
| 134 |
|
| 135 |
func randUTF8RuneProto(r randyProto) rune { |
| 136 |
ru := r.Intn(62) |
| 137 |
if ru < 10 { |
| 138 |
return rune(ru + 48) |
| 139 |
} else if ru < 36 { |
| 140 |
return rune(ru + 55) |
| 141 |
} |
| 142 |
return rune(ru + 61) |
| 143 |
} |
| 144 |
func randStringProto(r randyProto) string { |
| 145 |
v1 := r.Intn(100) |
| 146 |
tmps := make([]rune, v1) |
| 147 |
for i := 0; i < v1; i++ { |
| 148 |
tmps[i] = randUTF8RuneProto(r) |
| 149 |
} |
| 150 |
return string(tmps) |
| 151 |
} |
| 152 |
func randUnrecognizedProto(r randyProto, maxFieldNumber int) (dAtA []byte) { |
| 153 |
l := r.Intn(5) |
| 154 |
for i := 0; i < l; i++ { |
| 155 |
wire := r.Intn(4) |
| 156 |
if wire == 3 { |
| 157 |
wire = 5 |
| 158 |
} |
| 159 |
fieldNumber := maxFieldNumber + r.Intn(100) |
| 160 |
dAtA = randFieldProto(dAtA, r, fieldNumber, wire) |
| 161 |
} |
| 162 |
return dAtA |
| 163 |
} |
| 164 |
func randFieldProto(dAtA []byte, r randyProto, fieldNumber int, wire int) []byte { |
| 165 |
key := uint32(fieldNumber)<<3 | uint32(wire) |
| 166 |
switch wire { |
| 167 |
case 0: |
| 168 |
dAtA = encodeVarintPopulateProto(dAtA, uint64(key)) |
| 169 |
v2 := r.Int63() |
| 170 |
if r.Intn(2) == 0 { |
| 171 |
v2 *= -1 |
| 172 |
} |
| 173 |
dAtA = encodeVarintPopulateProto(dAtA, uint64(v2)) |
| 174 |
case 1: |
| 175 |
dAtA = encodeVarintPopulateProto(dAtA, uint64(key)) |
| 176 |
dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) |
| 177 |
case 2: |
| 178 |
dAtA = encodeVarintPopulateProto(dAtA, uint64(key)) |
| 179 |
ll := r.Intn(100) |
| 180 |
dAtA = encodeVarintPopulateProto(dAtA, uint64(ll)) |
| 181 |
for j := 0; j < ll; j++ { |
| 182 |
dAtA = append(dAtA, byte(r.Intn(256))) |
| 183 |
} |
| 184 |
default: |
| 185 |
dAtA = encodeVarintPopulateProto(dAtA, uint64(key)) |
| 186 |
dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) |
| 187 |
} |
| 188 |
return dAtA |
| 189 |
} |
| 190 |
func encodeVarintPopulateProto(dAtA []byte, v uint64) []byte { |
| 191 |
for v >= 1<<7 { |
| 192 |
dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80)) |
| 193 |
v >>= 7 |
| 194 |
} |
| 195 |
dAtA = append(dAtA, uint8(v)) |
| 196 |
return dAtA |
| 197 |
} |