Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 2 | // source: pb3/test.proto |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 3 | |
| 4 | package pb3 |
| 5 | |
| 6 | import ( |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 7 | proto "github.com/golang/protobuf/proto" |
Joe Tsai | cf81e67 | 2019-02-28 14:08:31 -0800 | [diff] [blame] | 8 | protoapi "github.com/golang/protobuf/protoapi" |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 9 | protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect" |
| 10 | protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl" |
| 11 | reflect "reflect" |
| 12 | ) |
| 13 | |
| 14 | // This is a compile-time assertion to ensure that this generated file |
| 15 | // is compatible with the proto package it is being compiled against. |
| 16 | // A compilation error at this line likely means your copy of the |
| 17 | // proto package needs to be updated. |
| 18 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 19 | |
| 20 | type Enum int32 |
| 21 | |
| 22 | const ( |
| 23 | Enum_ZERO Enum = 0 |
| 24 | Enum_ONE Enum = 1 |
| 25 | Enum_TWO Enum = 2 |
| 26 | Enum_TEN Enum = 10 |
| 27 | ) |
| 28 | |
| 29 | func (e Enum) Type() protoreflect.EnumType { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 30 | return xxx_File_pb3_test_proto_enumTypes[0] |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 31 | } |
| 32 | func (e Enum) Number() protoreflect.EnumNumber { |
| 33 | return protoreflect.EnumNumber(e) |
| 34 | } |
| 35 | |
| 36 | var Enum_name = map[int32]string{ |
| 37 | 0: "ZERO", |
| 38 | 1: "ONE", |
| 39 | 2: "TWO", |
| 40 | 10: "TEN", |
| 41 | } |
| 42 | |
| 43 | var Enum_value = map[string]int32{ |
| 44 | "ZERO": 0, |
| 45 | "ONE": 1, |
| 46 | "TWO": 2, |
| 47 | "TEN": 10, |
| 48 | } |
| 49 | |
| 50 | func (x Enum) String() string { |
| 51 | return proto.EnumName(Enum_name, int32(x)) |
| 52 | } |
| 53 | |
| 54 | func (Enum) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 55 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{0} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 56 | } |
| 57 | |
| 58 | type Enums_NestedEnum int32 |
| 59 | |
| 60 | const ( |
| 61 | Enums_CERO Enums_NestedEnum = 0 |
| 62 | Enums_UNO Enums_NestedEnum = 1 |
| 63 | Enums_DOS Enums_NestedEnum = 2 |
| 64 | Enums_DIEZ Enums_NestedEnum = 10 |
| 65 | ) |
| 66 | |
| 67 | func (e Enums_NestedEnum) Type() protoreflect.EnumType { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 68 | return xxx_File_pb3_test_proto_enumTypes[1] |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 69 | } |
| 70 | func (e Enums_NestedEnum) Number() protoreflect.EnumNumber { |
| 71 | return protoreflect.EnumNumber(e) |
| 72 | } |
| 73 | |
| 74 | var Enums_NestedEnum_name = map[int32]string{ |
| 75 | 0: "CERO", |
| 76 | 1: "UNO", |
| 77 | 2: "DOS", |
| 78 | 10: "DIEZ", |
| 79 | } |
| 80 | |
| 81 | var Enums_NestedEnum_value = map[string]int32{ |
| 82 | "CERO": 0, |
| 83 | "UNO": 1, |
| 84 | "DOS": 2, |
| 85 | "DIEZ": 10, |
| 86 | } |
| 87 | |
| 88 | func (x Enums_NestedEnum) String() string { |
| 89 | return proto.EnumName(Enums_NestedEnum_name, int32(x)) |
| 90 | } |
| 91 | |
| 92 | func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 93 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{1, 0} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 94 | } |
| 95 | |
| 96 | // Scalars contains scalar field types. |
| 97 | type Scalars struct { |
| 98 | SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"` |
| 99 | SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"` |
| 100 | SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"` |
| 101 | SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"` |
| 102 | SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"` |
| 103 | SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"` |
| 104 | SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"` |
| 105 | SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"` |
| 106 | SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"` |
| 107 | SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"` |
| 108 | SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"` |
| 109 | SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"` |
| 110 | SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"` |
| 111 | SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"` |
| 112 | SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"` |
| 113 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 114 | XXX_unrecognized []byte `json:"-"` |
| 115 | XXX_sizecache int32 `json:"-"` |
| 116 | } |
| 117 | |
| 118 | func (m *Scalars) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 119 | return xxx_File_pb3_test_proto_messageTypes[0].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 120 | } |
| 121 | func (m *Scalars) Reset() { *m = Scalars{} } |
| 122 | func (m *Scalars) String() string { return proto.CompactTextString(m) } |
| 123 | func (*Scalars) ProtoMessage() {} |
| 124 | func (*Scalars) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 125 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{0} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 126 | } |
| 127 | |
| 128 | func (m *Scalars) XXX_Unmarshal(b []byte) error { |
| 129 | return xxx_messageInfo_Scalars.Unmarshal(m, b) |
| 130 | } |
| 131 | func (m *Scalars) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 132 | return xxx_messageInfo_Scalars.Marshal(b, m, deterministic) |
| 133 | } |
| 134 | func (m *Scalars) XXX_Merge(src proto.Message) { |
| 135 | xxx_messageInfo_Scalars.Merge(m, src) |
| 136 | } |
| 137 | func (m *Scalars) XXX_Size() int { |
| 138 | return xxx_messageInfo_Scalars.Size(m) |
| 139 | } |
| 140 | func (m *Scalars) XXX_DiscardUnknown() { |
| 141 | xxx_messageInfo_Scalars.DiscardUnknown(m) |
| 142 | } |
| 143 | |
| 144 | var xxx_messageInfo_Scalars proto.InternalMessageInfo |
| 145 | |
| 146 | func (m *Scalars) GetSBool() bool { |
| 147 | if m != nil { |
| 148 | return m.SBool |
| 149 | } |
| 150 | return false |
| 151 | } |
| 152 | |
| 153 | func (m *Scalars) GetSInt32() int32 { |
| 154 | if m != nil { |
| 155 | return m.SInt32 |
| 156 | } |
| 157 | return 0 |
| 158 | } |
| 159 | |
| 160 | func (m *Scalars) GetSInt64() int64 { |
| 161 | if m != nil { |
| 162 | return m.SInt64 |
| 163 | } |
| 164 | return 0 |
| 165 | } |
| 166 | |
| 167 | func (m *Scalars) GetSUint32() uint32 { |
| 168 | if m != nil { |
| 169 | return m.SUint32 |
| 170 | } |
| 171 | return 0 |
| 172 | } |
| 173 | |
| 174 | func (m *Scalars) GetSUint64() uint64 { |
| 175 | if m != nil { |
| 176 | return m.SUint64 |
| 177 | } |
| 178 | return 0 |
| 179 | } |
| 180 | |
| 181 | func (m *Scalars) GetSSint32() int32 { |
| 182 | if m != nil { |
| 183 | return m.SSint32 |
| 184 | } |
| 185 | return 0 |
| 186 | } |
| 187 | |
| 188 | func (m *Scalars) GetSSint64() int64 { |
| 189 | if m != nil { |
| 190 | return m.SSint64 |
| 191 | } |
| 192 | return 0 |
| 193 | } |
| 194 | |
| 195 | func (m *Scalars) GetSFixed32() uint32 { |
| 196 | if m != nil { |
| 197 | return m.SFixed32 |
| 198 | } |
| 199 | return 0 |
| 200 | } |
| 201 | |
| 202 | func (m *Scalars) GetSFixed64() uint64 { |
| 203 | if m != nil { |
| 204 | return m.SFixed64 |
| 205 | } |
| 206 | return 0 |
| 207 | } |
| 208 | |
| 209 | func (m *Scalars) GetSSfixed32() int32 { |
| 210 | if m != nil { |
| 211 | return m.SSfixed32 |
| 212 | } |
| 213 | return 0 |
| 214 | } |
| 215 | |
| 216 | func (m *Scalars) GetSSfixed64() int64 { |
| 217 | if m != nil { |
| 218 | return m.SSfixed64 |
| 219 | } |
| 220 | return 0 |
| 221 | } |
| 222 | |
| 223 | func (m *Scalars) GetSFloat() float32 { |
| 224 | if m != nil { |
| 225 | return m.SFloat |
| 226 | } |
| 227 | return 0 |
| 228 | } |
| 229 | |
| 230 | func (m *Scalars) GetSDouble() float64 { |
| 231 | if m != nil { |
| 232 | return m.SDouble |
| 233 | } |
| 234 | return 0 |
| 235 | } |
| 236 | |
| 237 | func (m *Scalars) GetSBytes() []byte { |
| 238 | if m != nil { |
| 239 | return m.SBytes |
| 240 | } |
| 241 | return nil |
| 242 | } |
| 243 | |
| 244 | func (m *Scalars) GetSString() string { |
| 245 | if m != nil { |
| 246 | return m.SString |
| 247 | } |
| 248 | return "" |
| 249 | } |
| 250 | |
| 251 | // Message contains enum fields. |
| 252 | type Enums struct { |
| 253 | SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"` |
| 254 | SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"` |
| 255 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 256 | XXX_unrecognized []byte `json:"-"` |
| 257 | XXX_sizecache int32 `json:"-"` |
| 258 | } |
| 259 | |
| 260 | func (m *Enums) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 261 | return xxx_File_pb3_test_proto_messageTypes[1].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 262 | } |
| 263 | func (m *Enums) Reset() { *m = Enums{} } |
| 264 | func (m *Enums) String() string { return proto.CompactTextString(m) } |
| 265 | func (*Enums) ProtoMessage() {} |
| 266 | func (*Enums) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 267 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{1} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 268 | } |
| 269 | |
| 270 | func (m *Enums) XXX_Unmarshal(b []byte) error { |
| 271 | return xxx_messageInfo_Enums.Unmarshal(m, b) |
| 272 | } |
| 273 | func (m *Enums) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 274 | return xxx_messageInfo_Enums.Marshal(b, m, deterministic) |
| 275 | } |
| 276 | func (m *Enums) XXX_Merge(src proto.Message) { |
| 277 | xxx_messageInfo_Enums.Merge(m, src) |
| 278 | } |
| 279 | func (m *Enums) XXX_Size() int { |
| 280 | return xxx_messageInfo_Enums.Size(m) |
| 281 | } |
| 282 | func (m *Enums) XXX_DiscardUnknown() { |
| 283 | xxx_messageInfo_Enums.DiscardUnknown(m) |
| 284 | } |
| 285 | |
| 286 | var xxx_messageInfo_Enums proto.InternalMessageInfo |
| 287 | |
| 288 | func (m *Enums) GetSEnum() Enum { |
| 289 | if m != nil { |
| 290 | return m.SEnum |
| 291 | } |
| 292 | return Enum_ZERO |
| 293 | } |
| 294 | |
| 295 | func (m *Enums) GetSNestedEnum() Enums_NestedEnum { |
| 296 | if m != nil { |
| 297 | return m.SNestedEnum |
| 298 | } |
| 299 | return Enums_CERO |
| 300 | } |
| 301 | |
| 302 | // Message contains nested message field. |
| 303 | type Nests struct { |
| 304 | SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"` |
| 305 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 306 | XXX_unrecognized []byte `json:"-"` |
| 307 | XXX_sizecache int32 `json:"-"` |
| 308 | } |
| 309 | |
| 310 | func (m *Nests) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 311 | return xxx_File_pb3_test_proto_messageTypes[2].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 312 | } |
| 313 | func (m *Nests) Reset() { *m = Nests{} } |
| 314 | func (m *Nests) String() string { return proto.CompactTextString(m) } |
| 315 | func (*Nests) ProtoMessage() {} |
| 316 | func (*Nests) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 317 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{2} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 318 | } |
| 319 | |
| 320 | func (m *Nests) XXX_Unmarshal(b []byte) error { |
| 321 | return xxx_messageInfo_Nests.Unmarshal(m, b) |
| 322 | } |
| 323 | func (m *Nests) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 324 | return xxx_messageInfo_Nests.Marshal(b, m, deterministic) |
| 325 | } |
| 326 | func (m *Nests) XXX_Merge(src proto.Message) { |
| 327 | xxx_messageInfo_Nests.Merge(m, src) |
| 328 | } |
| 329 | func (m *Nests) XXX_Size() int { |
| 330 | return xxx_messageInfo_Nests.Size(m) |
| 331 | } |
| 332 | func (m *Nests) XXX_DiscardUnknown() { |
| 333 | xxx_messageInfo_Nests.DiscardUnknown(m) |
| 334 | } |
| 335 | |
| 336 | var xxx_messageInfo_Nests proto.InternalMessageInfo |
| 337 | |
| 338 | func (m *Nests) GetSNested() *Nested { |
| 339 | if m != nil { |
| 340 | return m.SNested |
| 341 | } |
| 342 | return nil |
| 343 | } |
| 344 | |
| 345 | // Message type used as submessage. |
| 346 | type Nested struct { |
| 347 | SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"` |
| 348 | SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"` |
| 349 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 350 | XXX_unrecognized []byte `json:"-"` |
| 351 | XXX_sizecache int32 `json:"-"` |
| 352 | } |
| 353 | |
| 354 | func (m *Nested) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 355 | return xxx_File_pb3_test_proto_messageTypes[3].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 356 | } |
| 357 | func (m *Nested) Reset() { *m = Nested{} } |
| 358 | func (m *Nested) String() string { return proto.CompactTextString(m) } |
| 359 | func (*Nested) ProtoMessage() {} |
| 360 | func (*Nested) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 361 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{3} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 362 | } |
| 363 | |
| 364 | func (m *Nested) XXX_Unmarshal(b []byte) error { |
| 365 | return xxx_messageInfo_Nested.Unmarshal(m, b) |
| 366 | } |
| 367 | func (m *Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 368 | return xxx_messageInfo_Nested.Marshal(b, m, deterministic) |
| 369 | } |
| 370 | func (m *Nested) XXX_Merge(src proto.Message) { |
| 371 | xxx_messageInfo_Nested.Merge(m, src) |
| 372 | } |
| 373 | func (m *Nested) XXX_Size() int { |
| 374 | return xxx_messageInfo_Nested.Size(m) |
| 375 | } |
| 376 | func (m *Nested) XXX_DiscardUnknown() { |
| 377 | xxx_messageInfo_Nested.DiscardUnknown(m) |
| 378 | } |
| 379 | |
| 380 | var xxx_messageInfo_Nested proto.InternalMessageInfo |
| 381 | |
| 382 | func (m *Nested) GetSString() string { |
| 383 | if m != nil { |
| 384 | return m.SString |
| 385 | } |
| 386 | return "" |
| 387 | } |
| 388 | |
| 389 | func (m *Nested) GetSNested() *Nested { |
| 390 | if m != nil { |
| 391 | return m.SNested |
| 392 | } |
| 393 | return nil |
| 394 | } |
| 395 | |
| 396 | // Message contains oneof field. |
| 397 | type Oneofs struct { |
| 398 | // Types that are valid to be assigned to Union: |
| 399 | // *Oneofs_OneofEnum |
| 400 | // *Oneofs_OneofString |
| 401 | // *Oneofs_OneofNested |
| 402 | Union isOneofs_Union `protobuf_oneof:"union"` |
| 403 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 404 | XXX_unrecognized []byte `json:"-"` |
| 405 | XXX_sizecache int32 `json:"-"` |
| 406 | } |
| 407 | |
| 408 | func (m *Oneofs) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 409 | return xxx_File_pb3_test_proto_messageTypes[4].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 410 | } |
| 411 | func (m *Oneofs) Reset() { *m = Oneofs{} } |
| 412 | func (m *Oneofs) String() string { return proto.CompactTextString(m) } |
| 413 | func (*Oneofs) ProtoMessage() {} |
| 414 | func (*Oneofs) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 415 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{4} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 416 | } |
| 417 | |
| 418 | func (m *Oneofs) XXX_Unmarshal(b []byte) error { |
| 419 | return xxx_messageInfo_Oneofs.Unmarshal(m, b) |
| 420 | } |
| 421 | func (m *Oneofs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 422 | return xxx_messageInfo_Oneofs.Marshal(b, m, deterministic) |
| 423 | } |
| 424 | func (m *Oneofs) XXX_Merge(src proto.Message) { |
| 425 | xxx_messageInfo_Oneofs.Merge(m, src) |
| 426 | } |
| 427 | func (m *Oneofs) XXX_Size() int { |
| 428 | return xxx_messageInfo_Oneofs.Size(m) |
| 429 | } |
| 430 | func (m *Oneofs) XXX_DiscardUnknown() { |
| 431 | xxx_messageInfo_Oneofs.DiscardUnknown(m) |
| 432 | } |
| 433 | |
| 434 | var xxx_messageInfo_Oneofs proto.InternalMessageInfo |
| 435 | |
| 436 | type isOneofs_Union interface { |
| 437 | isOneofs_Union() |
| 438 | } |
| 439 | |
| 440 | type Oneofs_OneofEnum struct { |
| 441 | OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"` |
| 442 | } |
| 443 | |
| 444 | type Oneofs_OneofString struct { |
| 445 | OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"` |
| 446 | } |
| 447 | |
| 448 | type Oneofs_OneofNested struct { |
| 449 | OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"` |
| 450 | } |
| 451 | |
| 452 | func (*Oneofs_OneofEnum) isOneofs_Union() {} |
| 453 | |
| 454 | func (*Oneofs_OneofString) isOneofs_Union() {} |
| 455 | |
| 456 | func (*Oneofs_OneofNested) isOneofs_Union() {} |
| 457 | |
| 458 | func (m *Oneofs) GetUnion() isOneofs_Union { |
| 459 | if m != nil { |
| 460 | return m.Union |
| 461 | } |
| 462 | return nil |
| 463 | } |
| 464 | |
| 465 | func (m *Oneofs) GetOneofEnum() Enum { |
| 466 | if x, ok := m.GetUnion().(*Oneofs_OneofEnum); ok { |
| 467 | return x.OneofEnum |
| 468 | } |
| 469 | return Enum_ZERO |
| 470 | } |
| 471 | |
| 472 | func (m *Oneofs) GetOneofString() string { |
| 473 | if x, ok := m.GetUnion().(*Oneofs_OneofString); ok { |
| 474 | return x.OneofString |
| 475 | } |
| 476 | return "" |
| 477 | } |
| 478 | |
| 479 | func (m *Oneofs) GetOneofNested() *Nested { |
| 480 | if x, ok := m.GetUnion().(*Oneofs_OneofNested); ok { |
| 481 | return x.OneofNested |
| 482 | } |
| 483 | return nil |
| 484 | } |
| 485 | |
| 486 | // XXX_OneofWrappers is for the internal use of the proto package. |
| 487 | func (*Oneofs) XXX_OneofWrappers() []interface{} { |
| 488 | return []interface{}{ |
| 489 | (*Oneofs_OneofEnum)(nil), |
| 490 | (*Oneofs_OneofString)(nil), |
| 491 | (*Oneofs_OneofNested)(nil), |
| 492 | } |
| 493 | } |
| 494 | |
| 495 | // Message contains map fields. |
| 496 | type Maps struct { |
| 497 | Int32ToStr map[int32]string `protobuf:"bytes,1,rep,name=int32_to_str,json=int32ToStr,proto3" json:"int32_to_str,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 498 | BoolToUint32 map[bool]uint32 `protobuf:"bytes,2,rep,name=bool_to_uint32,json=boolToUint32,proto3" json:"bool_to_uint32,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` |
| 499 | Uint64ToEnum map[uint64]Enum `protobuf:"bytes,3,rep,name=uint64_to_enum,json=uint64ToEnum,proto3" json:"uint64_to_enum,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=pb3.Enum"` |
| 500 | StrToNested map[string]*Nested `protobuf:"bytes,4,rep,name=str_to_nested,json=strToNested,proto3" json:"str_to_nested,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 501 | StrToOneofs map[string]*Oneofs `protobuf:"bytes,5,rep,name=str_to_oneofs,json=strToOneofs,proto3" json:"str_to_oneofs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 502 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 503 | XXX_unrecognized []byte `json:"-"` |
| 504 | XXX_sizecache int32 `json:"-"` |
| 505 | } |
| 506 | |
| 507 | func (m *Maps) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 508 | return xxx_File_pb3_test_proto_messageTypes[5].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 509 | } |
| 510 | func (m *Maps) Reset() { *m = Maps{} } |
| 511 | func (m *Maps) String() string { return proto.CompactTextString(m) } |
| 512 | func (*Maps) ProtoMessage() {} |
| 513 | func (*Maps) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 514 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{5} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 515 | } |
| 516 | |
| 517 | func (m *Maps) XXX_Unmarshal(b []byte) error { |
| 518 | return xxx_messageInfo_Maps.Unmarshal(m, b) |
| 519 | } |
| 520 | func (m *Maps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 521 | return xxx_messageInfo_Maps.Marshal(b, m, deterministic) |
| 522 | } |
| 523 | func (m *Maps) XXX_Merge(src proto.Message) { |
| 524 | xxx_messageInfo_Maps.Merge(m, src) |
| 525 | } |
| 526 | func (m *Maps) XXX_Size() int { |
| 527 | return xxx_messageInfo_Maps.Size(m) |
| 528 | } |
| 529 | func (m *Maps) XXX_DiscardUnknown() { |
| 530 | xxx_messageInfo_Maps.DiscardUnknown(m) |
| 531 | } |
| 532 | |
| 533 | var xxx_messageInfo_Maps proto.InternalMessageInfo |
| 534 | |
| 535 | func (m *Maps) GetInt32ToStr() map[int32]string { |
| 536 | if m != nil { |
| 537 | return m.Int32ToStr |
| 538 | } |
| 539 | return nil |
| 540 | } |
| 541 | |
| 542 | func (m *Maps) GetBoolToUint32() map[bool]uint32 { |
| 543 | if m != nil { |
| 544 | return m.BoolToUint32 |
| 545 | } |
| 546 | return nil |
| 547 | } |
| 548 | |
| 549 | func (m *Maps) GetUint64ToEnum() map[uint64]Enum { |
| 550 | if m != nil { |
| 551 | return m.Uint64ToEnum |
| 552 | } |
| 553 | return nil |
| 554 | } |
| 555 | |
| 556 | func (m *Maps) GetStrToNested() map[string]*Nested { |
| 557 | if m != nil { |
| 558 | return m.StrToNested |
| 559 | } |
| 560 | return nil |
| 561 | } |
| 562 | |
| 563 | func (m *Maps) GetStrToOneofs() map[string]*Oneofs { |
| 564 | if m != nil { |
| 565 | return m.StrToOneofs |
| 566 | } |
| 567 | return nil |
| 568 | } |
| 569 | |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 570 | // Message for testing json_name option. |
| 571 | type JSONNames struct { |
| 572 | SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"` |
| 573 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 574 | XXX_unrecognized []byte `json:"-"` |
| 575 | XXX_sizecache int32 `json:"-"` |
| 576 | } |
| 577 | |
| 578 | func (m *JSONNames) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 579 | return xxx_File_pb3_test_proto_messageTypes[6].MessageOf(m) |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 580 | } |
| 581 | func (m *JSONNames) Reset() { *m = JSONNames{} } |
| 582 | func (m *JSONNames) String() string { return proto.CompactTextString(m) } |
| 583 | func (*JSONNames) ProtoMessage() {} |
| 584 | func (*JSONNames) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 585 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{6} |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 586 | } |
| 587 | |
| 588 | func (m *JSONNames) XXX_Unmarshal(b []byte) error { |
| 589 | return xxx_messageInfo_JSONNames.Unmarshal(m, b) |
| 590 | } |
| 591 | func (m *JSONNames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 592 | return xxx_messageInfo_JSONNames.Marshal(b, m, deterministic) |
| 593 | } |
| 594 | func (m *JSONNames) XXX_Merge(src proto.Message) { |
| 595 | xxx_messageInfo_JSONNames.Merge(m, src) |
| 596 | } |
| 597 | func (m *JSONNames) XXX_Size() int { |
| 598 | return xxx_messageInfo_JSONNames.Size(m) |
| 599 | } |
| 600 | func (m *JSONNames) XXX_DiscardUnknown() { |
| 601 | xxx_messageInfo_JSONNames.DiscardUnknown(m) |
| 602 | } |
| 603 | |
| 604 | var xxx_messageInfo_JSONNames proto.InternalMessageInfo |
| 605 | |
| 606 | func (m *JSONNames) GetSString() string { |
| 607 | if m != nil { |
| 608 | return m.SString |
| 609 | } |
| 610 | return "" |
| 611 | } |
| 612 | |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 613 | func init() { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 614 | proto.RegisterFile("pb3/test.proto", xxx_File_pb3_test_proto_rawdesc_gzipped) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 615 | proto.RegisterEnum("pb3.Enum", Enum_name, Enum_value) |
| 616 | proto.RegisterEnum("pb3.Enums_NestedEnum", Enums_NestedEnum_name, Enums_NestedEnum_value) |
| 617 | proto.RegisterType((*Scalars)(nil), "pb3.Scalars") |
| 618 | proto.RegisterType((*Enums)(nil), "pb3.Enums") |
| 619 | proto.RegisterType((*Nests)(nil), "pb3.Nests") |
| 620 | proto.RegisterType((*Nested)(nil), "pb3.Nested") |
| 621 | proto.RegisterType((*Oneofs)(nil), "pb3.Oneofs") |
| 622 | proto.RegisterType((*Maps)(nil), "pb3.Maps") |
| 623 | proto.RegisterMapType((map[bool]uint32)(nil), "pb3.Maps.BoolToUint32Entry") |
| 624 | proto.RegisterMapType((map[int32]string)(nil), "pb3.Maps.Int32ToStrEntry") |
| 625 | proto.RegisterMapType((map[string]*Nested)(nil), "pb3.Maps.StrToNestedEntry") |
| 626 | proto.RegisterMapType((map[string]*Oneofs)(nil), "pb3.Maps.StrToOneofsEntry") |
| 627 | proto.RegisterMapType((map[uint64]Enum)(nil), "pb3.Maps.Uint64ToEnumEntry") |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 628 | proto.RegisterType((*JSONNames)(nil), "pb3.JSONNames") |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 629 | } |
| 630 | |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 631 | var xxx_File_pb3_test_proto_rawdesc = []byte{ |
| 632 | // 1710 bytes of the wire-encoded FileDescriptorProto |
| 633 | 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 634 | 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, |
| 635 | 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 636 | 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, |
| 637 | 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33, |
| 638 | 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01, |
| 639 | 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, |
| 640 | 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55, |
| 641 | 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, |
| 642 | 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, |
| 643 | 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01, |
| 644 | 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, |
| 645 | 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73, |
| 646 | 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, |
| 647 | 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, |
| 648 | 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, |
| 649 | 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, |
| 650 | 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a, |
| 651 | 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, |
| 652 | 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20, |
| 653 | 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17, |
| 654 | 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52, |
| 655 | 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75, |
| 656 | 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62, |
| 657 | 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20, |
| 658 | 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, |
| 659 | 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, |
| 660 | 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73, |
| 661 | 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, |
| 662 | 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e, |
| 663 | 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, |
| 664 | 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e, |
| 665 | 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, |
| 666 | 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a, |
| 667 | 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43, |
| 668 | 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07, |
| 669 | 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10, |
| 670 | 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, |
| 671 | 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, |
| 672 | 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, |
| 673 | 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, |
| 674 | 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, |
| 675 | 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73, |
| 676 | 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, |
| 677 | 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22, |
| 678 | 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e, |
| 679 | 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, |
| 680 | 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65, |
| 681 | 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, |
| 682 | 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, |
| 683 | 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f, |
| 684 | 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, |
| 685 | 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00, |
| 686 | 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a, |
| 687 | 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12, |
| 688 | 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18, |
| 689 | 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, |
| 690 | 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, |
| 691 | 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e, |
| 692 | 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02, |
| 693 | 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, |
| 694 | 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72, |
| 695 | 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, |
| 696 | 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75, |
| 697 | 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, |
| 698 | 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45, |
| 699 | 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, |
| 700 | 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73, |
| 701 | 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e, |
| 702 | 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, |
| 703 | 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, |
| 704 | 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65, |
| 705 | 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e, |
| 706 | 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, |
| 707 | 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, |
| 708 | 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, |
| 709 | 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, |
| 710 | 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 711 | 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, |
| 712 | 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, |
| 713 | 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, |
| 714 | 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, |
| 715 | 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, |
| 716 | 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, |
| 717 | 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, |
| 718 | 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c, |
| 719 | 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, |
| 720 | 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, |
| 721 | 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74, |
| 722 | 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 723 | 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, |
| 724 | 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, |
| 725 | 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53, |
| 726 | 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, |
| 727 | 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, |
| 728 | 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, |
| 729 | 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76, |
| 730 | 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e, |
| 731 | 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, |
| 732 | 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72, |
| 733 | 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, |
| 734 | 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, |
| 735 | 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x37, 0x5a, |
| 736 | 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, |
| 737 | 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x65, |
| 738 | 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, |
| 739 | 0x6f, 0x73, 0x2f, 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 740 | } |
| 741 | |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 742 | var xxx_File_pb3_test_proto_rawdesc_gzipped = protoapi.CompressGZIP(xxx_File_pb3_test_proto_rawdesc) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 743 | |
| 744 | const _ = protoimpl.EnforceVersion(protoimpl.Version - 0) |
| 745 | |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 746 | var File_pb3_test_proto protoreflect.FileDescriptor |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 747 | |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 748 | var xxx_File_pb3_test_proto_enumTypes = make([]protoreflect.EnumType, 2) |
| 749 | var xxx_File_pb3_test_proto_messageTypes = make([]protoimpl.MessageType, 12) |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 750 | var xxx_File_pb3_test_proto_goTypes = []interface{}{ |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 751 | (Enum)(0), // 0: pb3.Enum |
| 752 | (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum |
| 753 | (*Scalars)(nil), // 2: pb3.Scalars |
| 754 | (*Enums)(nil), // 3: pb3.Enums |
| 755 | (*Nests)(nil), // 4: pb3.Nests |
| 756 | (*Nested)(nil), // 5: pb3.Nested |
| 757 | (*Oneofs)(nil), // 6: pb3.Oneofs |
| 758 | (*Maps)(nil), // 7: pb3.Maps |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 759 | (*JSONNames)(nil), // 8: pb3.JSONNames |
| 760 | nil, // 9: pb3.Maps.Int32ToStrEntry |
| 761 | nil, // 10: pb3.Maps.BoolToUint32Entry |
| 762 | nil, // 11: pb3.Maps.Uint64ToEnumEntry |
| 763 | nil, // 12: pb3.Maps.StrToNestedEntry |
| 764 | nil, // 13: pb3.Maps.StrToOneofsEntry |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 765 | } |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 766 | var xxx_File_pb3_test_proto_depIdxs = []int32{ |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 767 | 0, // pb3.Enums.s_enum:type_name -> pb3.Enum |
| 768 | 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum |
| 769 | 5, // pb3.Nests.s_nested:type_name -> pb3.Nested |
| 770 | 5, // pb3.Nested.s_nested:type_name -> pb3.Nested |
| 771 | 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum |
| 772 | 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 773 | 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry |
| 774 | 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry |
| 775 | 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry |
| 776 | 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry |
| 777 | 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 778 | 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum |
| 779 | 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested |
| 780 | 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs |
| 781 | } |
| 782 | |
Damien Neil | 0fc2245 | 2019-03-08 17:18:11 -0800 | [diff] [blame] | 783 | func init() { xxx_File_pb3_test_proto_init() } |
| 784 | func xxx_File_pb3_test_proto_init() { |
| 785 | if File_pb3_test_proto != nil { |
| 786 | return |
| 787 | } |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 788 | messageTypes := make([]protoreflect.MessageType, 12) |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 789 | File_pb3_test_proto = protoimpl.FileBuilder{ |
| 790 | RawDescriptor: xxx_File_pb3_test_proto_rawdesc, |
| 791 | GoTypes: xxx_File_pb3_test_proto_goTypes, |
| 792 | DependencyIndexes: xxx_File_pb3_test_proto_depIdxs, |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 793 | EnumOutputTypes: xxx_File_pb3_test_proto_enumTypes, |
| 794 | MessageOutputTypes: messageTypes, |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 795 | }.Init() |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 796 | messageGoTypes := xxx_File_pb3_test_proto_goTypes[2:][:12] |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 797 | for i, mt := range messageTypes { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 798 | xxx_File_pb3_test_proto_messageTypes[i].GoType = reflect.TypeOf(messageGoTypes[i]) |
| 799 | xxx_File_pb3_test_proto_messageTypes[i].PBType = mt |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 800 | } |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 801 | xxx_File_pb3_test_proto_goTypes = nil |
| 802 | xxx_File_pb3_test_proto_depIdxs = nil |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 803 | } |