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