1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: desc_test1.proto 3 4package testprotos 5 6import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 math "math" 10) 11 12// Reference imports to suppress errors if they are not otherwise used. 13var _ = proto.Marshal 14var _ = fmt.Errorf 15var _ = math.Inf 16 17// This is a compile-time assertion to ensure that this generated file 18// is compatible with the proto package it is being compiled against. 19// A compilation error at this line likely means your copy of the 20// proto package needs to be updated. 21const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 23// Comment for NestedEnum 24type TestMessage_NestedEnum int32 25 26const ( 27 // Comment for VALUE1 28 TestMessage_VALUE1 TestMessage_NestedEnum = 1 29 // Comment for VALUE2 30 TestMessage_VALUE2 TestMessage_NestedEnum = 2 31) 32 33var TestMessage_NestedEnum_name = map[int32]string{ 34 1: "VALUE1", 35 2: "VALUE2", 36} 37 38var TestMessage_NestedEnum_value = map[string]int32{ 39 "VALUE1": 1, 40 "VALUE2": 2, 41} 42 43func (x TestMessage_NestedEnum) Enum() *TestMessage_NestedEnum { 44 p := new(TestMessage_NestedEnum) 45 *p = x 46 return p 47} 48 49func (x TestMessage_NestedEnum) String() string { 50 return proto.EnumName(TestMessage_NestedEnum_name, int32(x)) 51} 52 53func (x *TestMessage_NestedEnum) UnmarshalJSON(data []byte) error { 54 value, err := proto.UnmarshalJSONEnum(TestMessage_NestedEnum_value, data, "TestMessage_NestedEnum") 55 if err != nil { 56 return err 57 } 58 *x = TestMessage_NestedEnum(value) 59 return nil 60} 61 62func (TestMessage_NestedEnum) EnumDescriptor() ([]byte, []int) { 63 return fileDescriptor_550618e6d7083528, []int{0, 0} 64} 65 66// Comment for DeeplyNestedEnum 67type TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum int32 68 69const ( 70 // Comment for VALUE1 71 TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_VALUE1 TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum = 1 72 // Comment for VALUE2 73 TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_VALUE2 TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum = 2 74) 75 76var TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum_name = map[int32]string{ 77 1: "VALUE1", 78 2: "VALUE2", 79} 80 81var TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum_value = map[string]int32{ 82 "VALUE1": 1, 83 "VALUE2": 2, 84} 85 86func (x TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) Enum() *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum { 87 p := new(TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) 88 *p = x 89 return p 90} 91 92func (x TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) String() string { 93 return proto.EnumName(TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum_name, int32(x)) 94} 95 96func (x *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) UnmarshalJSON(data []byte) error { 97 value, err := proto.UnmarshalJSONEnum(TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum_value, data, "TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum") 98 if err != nil { 99 return err 100 } 101 *x = TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum(value) 102 return nil 103} 104 105func (TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) EnumDescriptor() ([]byte, []int) { 106 return fileDescriptor_550618e6d7083528, []int{0, 0, 0, 0, 0} 107} 108 109// Comment for TestMessage 110type TestMessage struct { 111 // Comment for nm 112 Nm *TestMessage_NestedMessage `protobuf:"bytes,1,opt,name=nm" json:"nm,omitempty"` 113 // Comment for anm 114 Anm *TestMessage_NestedMessage_AnotherNestedMessage `protobuf:"bytes,2,opt,name=anm" json:"anm,omitempty"` 115 // Comment for yanm 116 Yanm *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage `protobuf:"bytes,3,opt,name=yanm" json:"yanm,omitempty"` 117 // Comment for ne 118 Ne []TestMessage_NestedEnum `protobuf:"varint,4,rep,name=ne,enum=testprotos.TestMessage_NestedEnum" json:"ne,omitempty"` 119 XXX_NoUnkeyedLiteral struct{} `json:"-"` 120 XXX_unrecognized []byte `json:"-"` 121 XXX_sizecache int32 `json:"-"` 122} 123 124func (m *TestMessage) Reset() { *m = TestMessage{} } 125func (m *TestMessage) String() string { return proto.CompactTextString(m) } 126func (*TestMessage) ProtoMessage() {} 127func (*TestMessage) Descriptor() ([]byte, []int) { 128 return fileDescriptor_550618e6d7083528, []int{0} 129} 130 131func (m *TestMessage) XXX_Unmarshal(b []byte) error { 132 return xxx_messageInfo_TestMessage.Unmarshal(m, b) 133} 134func (m *TestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 135 return xxx_messageInfo_TestMessage.Marshal(b, m, deterministic) 136} 137func (m *TestMessage) XXX_Merge(src proto.Message) { 138 xxx_messageInfo_TestMessage.Merge(m, src) 139} 140func (m *TestMessage) XXX_Size() int { 141 return xxx_messageInfo_TestMessage.Size(m) 142} 143func (m *TestMessage) XXX_DiscardUnknown() { 144 xxx_messageInfo_TestMessage.DiscardUnknown(m) 145} 146 147var xxx_messageInfo_TestMessage proto.InternalMessageInfo 148 149func (m *TestMessage) GetNm() *TestMessage_NestedMessage { 150 if m != nil { 151 return m.Nm 152 } 153 return nil 154} 155 156func (m *TestMessage) GetAnm() *TestMessage_NestedMessage_AnotherNestedMessage { 157 if m != nil { 158 return m.Anm 159 } 160 return nil 161} 162 163func (m *TestMessage) GetYanm() *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage { 164 if m != nil { 165 return m.Yanm 166 } 167 return nil 168} 169 170func (m *TestMessage) GetNe() []TestMessage_NestedEnum { 171 if m != nil { 172 return m.Ne 173 } 174 return nil 175} 176 177// Comment for NestedMessage 178type TestMessage_NestedMessage struct { 179 // Comment for anm 180 Anm *TestMessage_NestedMessage_AnotherNestedMessage `protobuf:"bytes,1,opt,name=anm" json:"anm,omitempty"` 181 // Comment for yanm 182 Yanm *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage `protobuf:"bytes,2,opt,name=yanm" json:"yanm,omitempty"` 183 XXX_NoUnkeyedLiteral struct{} `json:"-"` 184 XXX_unrecognized []byte `json:"-"` 185 XXX_sizecache int32 `json:"-"` 186} 187 188func (m *TestMessage_NestedMessage) Reset() { *m = TestMessage_NestedMessage{} } 189func (m *TestMessage_NestedMessage) String() string { return proto.CompactTextString(m) } 190func (*TestMessage_NestedMessage) ProtoMessage() {} 191func (*TestMessage_NestedMessage) Descriptor() ([]byte, []int) { 192 return fileDescriptor_550618e6d7083528, []int{0, 0} 193} 194 195func (m *TestMessage_NestedMessage) XXX_Unmarshal(b []byte) error { 196 return xxx_messageInfo_TestMessage_NestedMessage.Unmarshal(m, b) 197} 198func (m *TestMessage_NestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 199 return xxx_messageInfo_TestMessage_NestedMessage.Marshal(b, m, deterministic) 200} 201func (m *TestMessage_NestedMessage) XXX_Merge(src proto.Message) { 202 xxx_messageInfo_TestMessage_NestedMessage.Merge(m, src) 203} 204func (m *TestMessage_NestedMessage) XXX_Size() int { 205 return xxx_messageInfo_TestMessage_NestedMessage.Size(m) 206} 207func (m *TestMessage_NestedMessage) XXX_DiscardUnknown() { 208 xxx_messageInfo_TestMessage_NestedMessage.DiscardUnknown(m) 209} 210 211var xxx_messageInfo_TestMessage_NestedMessage proto.InternalMessageInfo 212 213func (m *TestMessage_NestedMessage) GetAnm() *TestMessage_NestedMessage_AnotherNestedMessage { 214 if m != nil { 215 return m.Anm 216 } 217 return nil 218} 219 220func (m *TestMessage_NestedMessage) GetYanm() *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage { 221 if m != nil { 222 return m.Yanm 223 } 224 return nil 225} 226 227// Comment for AnotherNestedMessage 228type TestMessage_NestedMessage_AnotherNestedMessage struct { 229 // Comment for yanm 230 Yanm []*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage `protobuf:"bytes,1,rep,name=yanm" json:"yanm,omitempty"` 231 XXX_NoUnkeyedLiteral struct{} `json:"-"` 232 XXX_unrecognized []byte `json:"-"` 233 XXX_sizecache int32 `json:"-"` 234} 235 236func (m *TestMessage_NestedMessage_AnotherNestedMessage) Reset() { 237 *m = TestMessage_NestedMessage_AnotherNestedMessage{} 238} 239func (m *TestMessage_NestedMessage_AnotherNestedMessage) String() string { 240 return proto.CompactTextString(m) 241} 242func (*TestMessage_NestedMessage_AnotherNestedMessage) ProtoMessage() {} 243func (*TestMessage_NestedMessage_AnotherNestedMessage) Descriptor() ([]byte, []int) { 244 return fileDescriptor_550618e6d7083528, []int{0, 0, 0} 245} 246 247func (m *TestMessage_NestedMessage_AnotherNestedMessage) XXX_Unmarshal(b []byte) error { 248 return xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage.Unmarshal(m, b) 249} 250func (m *TestMessage_NestedMessage_AnotherNestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 251 return xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage.Marshal(b, m, deterministic) 252} 253func (m *TestMessage_NestedMessage_AnotherNestedMessage) XXX_Merge(src proto.Message) { 254 xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage.Merge(m, src) 255} 256func (m *TestMessage_NestedMessage_AnotherNestedMessage) XXX_Size() int { 257 return xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage.Size(m) 258} 259func (m *TestMessage_NestedMessage_AnotherNestedMessage) XXX_DiscardUnknown() { 260 xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage.DiscardUnknown(m) 261} 262 263var xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage proto.InternalMessageInfo 264 265func (m *TestMessage_NestedMessage_AnotherNestedMessage) GetYanm() []*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage { 266 if m != nil { 267 return m.Yanm 268 } 269 return nil 270} 271 272var E_TestMessage_NestedMessage_AnotherNestedMessage_Flags = &proto.ExtensionDesc{ 273 ExtendedType: (*AnotherTestMessage)(nil), 274 ExtensionType: ([]bool)(nil), 275 Field: 200, 276 Name: "testprotos.TestMessage.NestedMessage.AnotherNestedMessage.flags", 277 Tag: "varint,200,rep,packed,name=flags", 278 Filename: "desc_test1.proto", 279} 280 281// Comment for YetAnotherNestedMessage 282type TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage struct { 283 // Comment for foo 284 Foo *string `protobuf:"bytes,1,opt,name=foo" json:"foo,omitempty"` 285 // Comment for bar 286 Bar *int32 `protobuf:"varint,2,opt,name=bar" json:"bar,omitempty"` 287 // Comment for baz 288 Baz []byte `protobuf:"bytes,3,opt,name=baz" json:"baz,omitempty"` 289 // Comment for dne 290 Dne *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum `protobuf:"varint,4,opt,name=dne,enum=testprotos.TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum" json:"dne,omitempty"` 291 // Comment for anm 292 Anm *TestMessage_NestedMessage_AnotherNestedMessage `protobuf:"bytes,5,opt,name=anm" json:"anm,omitempty"` 293 // Comment for nm 294 Nm *TestMessage_NestedMessage `protobuf:"bytes,6,opt,name=nm" json:"nm,omitempty"` 295 // Comment for tm 296 Tm *TestMessage `protobuf:"bytes,7,opt,name=tm" json:"tm,omitempty"` 297 XXX_NoUnkeyedLiteral struct{} `json:"-"` 298 XXX_unrecognized []byte `json:"-"` 299 XXX_sizecache int32 `json:"-"` 300} 301 302func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) Reset() { 303 *m = TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage{} 304} 305func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) String() string { 306 return proto.CompactTextString(m) 307} 308func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) ProtoMessage() {} 309func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) Descriptor() ([]byte, []int) { 310 return fileDescriptor_550618e6d7083528, []int{0, 0, 0, 0} 311} 312 313func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) XXX_Unmarshal(b []byte) error { 314 return xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage.Unmarshal(m, b) 315} 316func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 317 return xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage.Marshal(b, m, deterministic) 318} 319func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) XXX_Merge(src proto.Message) { 320 xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage.Merge(m, src) 321} 322func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) XXX_Size() int { 323 return xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage.Size(m) 324} 325func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) XXX_DiscardUnknown() { 326 xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage.DiscardUnknown(m) 327} 328 329var xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage proto.InternalMessageInfo 330 331func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetFoo() string { 332 if m != nil && m.Foo != nil { 333 return *m.Foo 334 } 335 return "" 336} 337 338func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetBar() int32 { 339 if m != nil && m.Bar != nil { 340 return *m.Bar 341 } 342 return 0 343} 344 345func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetBaz() []byte { 346 if m != nil { 347 return m.Baz 348 } 349 return nil 350} 351 352func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetDne() TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum { 353 if m != nil && m.Dne != nil { 354 return *m.Dne 355 } 356 return TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_VALUE1 357} 358 359func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetAnm() *TestMessage_NestedMessage_AnotherNestedMessage { 360 if m != nil { 361 return m.Anm 362 } 363 return nil 364} 365 366func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetNm() *TestMessage_NestedMessage { 367 if m != nil { 368 return m.Nm 369 } 370 return nil 371} 372 373func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetTm() *TestMessage { 374 if m != nil { 375 return m.Tm 376 } 377 return nil 378} 379 380// Comment for AnotherTestMessage 381type AnotherTestMessage struct { 382 // Comment for dne 383 Dne *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum `protobuf:"varint,1,opt,name=dne,enum=testprotos.TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum" json:"dne,omitempty"` 384 // Comment for map_field1 385 MapField1 map[int32]string `protobuf:"bytes,2,rep,name=map_field1,json=mapField1" json:"map_field1,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 386 // Comment for map_field2 387 MapField2 map[int64]float32 `protobuf:"bytes,3,rep,name=map_field2,json=mapField2" json:"map_field2,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"` 388 // Comment for map_field3 389 MapField3 map[uint32]bool `protobuf:"bytes,4,rep,name=map_field3,json=mapField3" json:"map_field3,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` 390 // Comment for map_field4 391 MapField4 map[string]*AnotherTestMessage `protobuf:"bytes,5,rep,name=map_field4,json=mapField4" json:"map_field4,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 392 Rocknroll *AnotherTestMessage_RockNRoll `protobuf:"group,6,opt,name=RockNRoll,json=rocknroll" json:"rocknroll,omitempty"` 393 // Comment for atmoo 394 // 395 // Types that are valid to be assigned to Atmoo: 396 // *AnotherTestMessage_Str 397 // *AnotherTestMessage_Int 398 Atmoo isAnotherTestMessage_Atmoo `protobuf_oneof:"atmoo"` 399 Withoptions *AnotherTestMessage_WithOptions `protobuf:"group,9,opt,name=WithOptions,json=withoptions" json:"withoptions,omitempty"` // Deprecated: Do not use. 400 XXX_NoUnkeyedLiteral struct{} `json:"-"` 401 proto.XXX_InternalExtensions `json:"-"` 402 XXX_unrecognized []byte `json:"-"` 403 XXX_sizecache int32 `json:"-"` 404} 405 406func (m *AnotherTestMessage) Reset() { *m = AnotherTestMessage{} } 407func (m *AnotherTestMessage) String() string { return proto.CompactTextString(m) } 408func (*AnotherTestMessage) ProtoMessage() {} 409func (*AnotherTestMessage) Descriptor() ([]byte, []int) { 410 return fileDescriptor_550618e6d7083528, []int{1} 411} 412 413var extRange_AnotherTestMessage = []proto.ExtensionRange{ 414 {Start: 100, End: 200}, 415} 416 417func (*AnotherTestMessage) ExtensionRangeArray() []proto.ExtensionRange { 418 return extRange_AnotherTestMessage 419} 420 421func (m *AnotherTestMessage) XXX_Unmarshal(b []byte) error { 422 return xxx_messageInfo_AnotherTestMessage.Unmarshal(m, b) 423} 424func (m *AnotherTestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 425 return xxx_messageInfo_AnotherTestMessage.Marshal(b, m, deterministic) 426} 427func (m *AnotherTestMessage) XXX_Merge(src proto.Message) { 428 xxx_messageInfo_AnotherTestMessage.Merge(m, src) 429} 430func (m *AnotherTestMessage) XXX_Size() int { 431 return xxx_messageInfo_AnotherTestMessage.Size(m) 432} 433func (m *AnotherTestMessage) XXX_DiscardUnknown() { 434 xxx_messageInfo_AnotherTestMessage.DiscardUnknown(m) 435} 436 437var xxx_messageInfo_AnotherTestMessage proto.InternalMessageInfo 438 439func (m *AnotherTestMessage) GetDne() TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum { 440 if m != nil && m.Dne != nil { 441 return *m.Dne 442 } 443 return TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_VALUE1 444} 445 446func (m *AnotherTestMessage) GetMapField1() map[int32]string { 447 if m != nil { 448 return m.MapField1 449 } 450 return nil 451} 452 453func (m *AnotherTestMessage) GetMapField2() map[int64]float32 { 454 if m != nil { 455 return m.MapField2 456 } 457 return nil 458} 459 460func (m *AnotherTestMessage) GetMapField3() map[uint32]bool { 461 if m != nil { 462 return m.MapField3 463 } 464 return nil 465} 466 467func (m *AnotherTestMessage) GetMapField4() map[string]*AnotherTestMessage { 468 if m != nil { 469 return m.MapField4 470 } 471 return nil 472} 473 474func (m *AnotherTestMessage) GetRocknroll() *AnotherTestMessage_RockNRoll { 475 if m != nil { 476 return m.Rocknroll 477 } 478 return nil 479} 480 481type isAnotherTestMessage_Atmoo interface { 482 isAnotherTestMessage_Atmoo() 483} 484 485type AnotherTestMessage_Str struct { 486 Str string `protobuf:"bytes,7,opt,name=str,oneof"` 487} 488 489type AnotherTestMessage_Int struct { 490 Int int64 `protobuf:"varint,8,opt,name=int,oneof"` 491} 492 493func (*AnotherTestMessage_Str) isAnotherTestMessage_Atmoo() {} 494 495func (*AnotherTestMessage_Int) isAnotherTestMessage_Atmoo() {} 496 497func (m *AnotherTestMessage) GetAtmoo() isAnotherTestMessage_Atmoo { 498 if m != nil { 499 return m.Atmoo 500 } 501 return nil 502} 503 504func (m *AnotherTestMessage) GetStr() string { 505 if x, ok := m.GetAtmoo().(*AnotherTestMessage_Str); ok { 506 return x.Str 507 } 508 return "" 509} 510 511func (m *AnotherTestMessage) GetInt() int64 { 512 if x, ok := m.GetAtmoo().(*AnotherTestMessage_Int); ok { 513 return x.Int 514 } 515 return 0 516} 517 518// Deprecated: Do not use. 519func (m *AnotherTestMessage) GetWithoptions() *AnotherTestMessage_WithOptions { 520 if m != nil { 521 return m.Withoptions 522 } 523 return nil 524} 525 526// XXX_OneofWrappers is for the internal use of the proto package. 527func (*AnotherTestMessage) XXX_OneofWrappers() []interface{} { 528 return []interface{}{ 529 (*AnotherTestMessage_Str)(nil), 530 (*AnotherTestMessage_Int)(nil), 531 } 532} 533 534// Comment for RockNRoll 535type AnotherTestMessage_RockNRoll struct { 536 // Comment for beatles 537 Beatles *string `protobuf:"bytes,1,opt,name=beatles" json:"beatles,omitempty"` 538 // Comment for stones 539 Stones *string `protobuf:"bytes,2,opt,name=stones" json:"stones,omitempty"` 540 // Comment for doors 541 Doors *string `protobuf:"bytes,3,opt,name=doors" json:"doors,omitempty"` 542 XXX_NoUnkeyedLiteral struct{} `json:"-"` 543 XXX_unrecognized []byte `json:"-"` 544 XXX_sizecache int32 `json:"-"` 545} 546 547func (m *AnotherTestMessage_RockNRoll) Reset() { *m = AnotherTestMessage_RockNRoll{} } 548func (m *AnotherTestMessage_RockNRoll) String() string { return proto.CompactTextString(m) } 549func (*AnotherTestMessage_RockNRoll) ProtoMessage() {} 550func (*AnotherTestMessage_RockNRoll) Descriptor() ([]byte, []int) { 551 return fileDescriptor_550618e6d7083528, []int{1, 4} 552} 553 554func (m *AnotherTestMessage_RockNRoll) XXX_Unmarshal(b []byte) error { 555 return xxx_messageInfo_AnotherTestMessage_RockNRoll.Unmarshal(m, b) 556} 557func (m *AnotherTestMessage_RockNRoll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 558 return xxx_messageInfo_AnotherTestMessage_RockNRoll.Marshal(b, m, deterministic) 559} 560func (m *AnotherTestMessage_RockNRoll) XXX_Merge(src proto.Message) { 561 xxx_messageInfo_AnotherTestMessage_RockNRoll.Merge(m, src) 562} 563func (m *AnotherTestMessage_RockNRoll) XXX_Size() int { 564 return xxx_messageInfo_AnotherTestMessage_RockNRoll.Size(m) 565} 566func (m *AnotherTestMessage_RockNRoll) XXX_DiscardUnknown() { 567 xxx_messageInfo_AnotherTestMessage_RockNRoll.DiscardUnknown(m) 568} 569 570var xxx_messageInfo_AnotherTestMessage_RockNRoll proto.InternalMessageInfo 571 572func (m *AnotherTestMessage_RockNRoll) GetBeatles() string { 573 if m != nil && m.Beatles != nil { 574 return *m.Beatles 575 } 576 return "" 577} 578 579func (m *AnotherTestMessage_RockNRoll) GetStones() string { 580 if m != nil && m.Stones != nil { 581 return *m.Stones 582 } 583 return "" 584} 585 586func (m *AnotherTestMessage_RockNRoll) GetDoors() string { 587 if m != nil && m.Doors != nil { 588 return *m.Doors 589 } 590 return "" 591} 592 593// Comment for WithOptions 594type AnotherTestMessage_WithOptions struct { 595 XXX_NoUnkeyedLiteral struct{} `json:"-"` 596 XXX_unrecognized []byte `json:"-"` 597 XXX_sizecache int32 `json:"-"` 598} 599 600func (m *AnotherTestMessage_WithOptions) Reset() { *m = AnotherTestMessage_WithOptions{} } 601func (m *AnotherTestMessage_WithOptions) String() string { return proto.CompactTextString(m) } 602func (*AnotherTestMessage_WithOptions) ProtoMessage() {} 603func (*AnotherTestMessage_WithOptions) Descriptor() ([]byte, []int) { 604 return fileDescriptor_550618e6d7083528, []int{1, 5} 605} 606 607func (m *AnotherTestMessage_WithOptions) XXX_Unmarshal(b []byte) error { 608 return xxx_messageInfo_AnotherTestMessage_WithOptions.Unmarshal(m, b) 609} 610func (m *AnotherTestMessage_WithOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 611 return xxx_messageInfo_AnotherTestMessage_WithOptions.Marshal(b, m, deterministic) 612} 613func (m *AnotherTestMessage_WithOptions) XXX_Merge(src proto.Message) { 614 xxx_messageInfo_AnotherTestMessage_WithOptions.Merge(m, src) 615} 616func (m *AnotherTestMessage_WithOptions) XXX_Size() int { 617 return xxx_messageInfo_AnotherTestMessage_WithOptions.Size(m) 618} 619func (m *AnotherTestMessage_WithOptions) XXX_DiscardUnknown() { 620 xxx_messageInfo_AnotherTestMessage_WithOptions.DiscardUnknown(m) 621} 622 623var xxx_messageInfo_AnotherTestMessage_WithOptions proto.InternalMessageInfo 624 625var E_Xtm = &proto.ExtensionDesc{ 626 ExtendedType: (*AnotherTestMessage)(nil), 627 ExtensionType: (*TestMessage)(nil), 628 Field: 100, 629 Name: "testprotos.xtm", 630 Tag: "bytes,100,opt,name=xtm", 631 Filename: "desc_test1.proto", 632} 633 634var E_Xs = &proto.ExtensionDesc{ 635 ExtendedType: (*AnotherTestMessage)(nil), 636 ExtensionType: (*string)(nil), 637 Field: 101, 638 Name: "testprotos.xs", 639 Tag: "bytes,101,opt,name=xs", 640 Filename: "desc_test1.proto", 641} 642 643var E_Xi = &proto.ExtensionDesc{ 644 ExtendedType: (*AnotherTestMessage)(nil), 645 ExtensionType: (*int32)(nil), 646 Field: 102, 647 Name: "testprotos.xi", 648 Tag: "varint,102,opt,name=xi", 649 Filename: "desc_test1.proto", 650} 651 652var E_Xui = &proto.ExtensionDesc{ 653 ExtendedType: (*AnotherTestMessage)(nil), 654 ExtensionType: (*uint64)(nil), 655 Field: 103, 656 Name: "testprotos.xui", 657 Tag: "varint,103,opt,name=xui", 658 Filename: "desc_test1.proto", 659} 660 661func init() { 662 proto.RegisterEnum("testprotos.TestMessage_NestedEnum", TestMessage_NestedEnum_name, TestMessage_NestedEnum_value) 663 proto.RegisterEnum("testprotos.TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum", TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum_name, TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum_value) 664 proto.RegisterType((*TestMessage)(nil), "testprotos.TestMessage") 665 proto.RegisterType((*TestMessage_NestedMessage)(nil), "testprotos.TestMessage.NestedMessage") 666 proto.RegisterExtension(E_TestMessage_NestedMessage_AnotherNestedMessage_Flags) 667 proto.RegisterType((*TestMessage_NestedMessage_AnotherNestedMessage)(nil), "testprotos.TestMessage.NestedMessage.AnotherNestedMessage") 668 proto.RegisterType((*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage)(nil), "testprotos.TestMessage.NestedMessage.AnotherNestedMessage.YetAnotherNestedMessage") 669 proto.RegisterType((*AnotherTestMessage)(nil), "testprotos.AnotherTestMessage") 670 proto.RegisterMapType((map[int32]string)(nil), "testprotos.AnotherTestMessage.MapField1Entry") 671 proto.RegisterMapType((map[int64]float32)(nil), "testprotos.AnotherTestMessage.MapField2Entry") 672 proto.RegisterMapType((map[uint32]bool)(nil), "testprotos.AnotherTestMessage.MapField3Entry") 673 proto.RegisterMapType((map[string]*AnotherTestMessage)(nil), "testprotos.AnotherTestMessage.MapField4Entry") 674 proto.RegisterType((*AnotherTestMessage_RockNRoll)(nil), "testprotos.AnotherTestMessage.RockNRoll") 675 proto.RegisterType((*AnotherTestMessage_WithOptions)(nil), "testprotos.AnotherTestMessage.WithOptions") 676 proto.RegisterExtension(E_Xtm) 677 proto.RegisterExtension(E_Xs) 678 proto.RegisterExtension(E_Xi) 679 proto.RegisterExtension(E_Xui) 680} 681 682func init() { proto.RegisterFile("desc_test1.proto", fileDescriptor_550618e6d7083528) } 683 684var fileDescriptor_550618e6d7083528 = []byte{ 685 // 733 bytes of a gzipped FileDescriptorProto 686 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0xdd, 0x6e, 0xda, 0x48, 687 0x14, 0xc7, 0xd7, 0x63, 0x4c, 0xf0, 0x61, 0x13, 0xa1, 0x51, 0xb4, 0xb1, 0xb8, 0x58, 0x21, 0xb4, 688 0xab, 0x45, 0x91, 0xd6, 0x2c, 0x86, 0x95, 0x5a, 0xd4, 0x9b, 0xa0, 0x26, 0x6a, 0xa5, 0x24, 0xad, 689 0xa6, 0x5f, 0x6a, 0x55, 0x29, 0x72, 0x60, 0x00, 0x37, 0xf6, 0x0c, 0xf2, 0x0c, 0x2d, 0xe4, 0x2d, 690 0xfa, 0x06, 0xbd, 0xe8, 0xc3, 0xb4, 0xef, 0xd0, 0x37, 0xe9, 0x4d, 0x35, 0x03, 0x04, 0xf3, 0x91, 691 0x38, 0xa9, 0x92, 0xde, 0xcd, 0x19, 0x9f, 0xff, 0xef, 0x9c, 0xe3, 0x73, 0xe6, 0x40, 0xa1, 0x43, 692 0x45, 0xfb, 0x44, 0x52, 0x21, 0x6b, 0xee, 0x20, 0xe6, 0x92, 0x63, 0x50, 0x86, 0x3e, 0x8a, 0xf2, 693 0xf7, 0x1c, 0xe4, 0x9f, 0x53, 0x21, 0x8f, 0xa8, 0x10, 0x7e, 0x8f, 0xe2, 0xff, 0x01, 0xb1, 0xc8, 694 0x31, 0x4a, 0x46, 0x25, 0xef, 0xfd, 0xed, 0xce, 0x1d, 0xdd, 0x84, 0x93, 0x7b, 0x4c, 0x85, 0xa4, 695 0x9d, 0xa9, 0x45, 0x10, 0x8b, 0xf0, 0x21, 0x98, 0x3e, 0x8b, 0x1c, 0xa4, 0x75, 0xcd, 0x6b, 0xe9, 696 0xdc, 0x3d, 0xc6, 0x65, 0x9f, 0xc6, 0x8b, 0x30, 0x85, 0xc1, 0x5d, 0xc8, 0x8c, 0x15, 0xce, 0xd4, 697 0x38, 0xf2, 0xf3, 0x38, 0xf7, 0x35, 0x95, 0x6b, 0xc3, 0x68, 0x3e, 0xf6, 0x00, 0x31, 0xea, 0x64, 698 0x4a, 0x66, 0x65, 0xcb, 0x2b, 0x5f, 0x1d, 0x65, 0x9f, 0x0d, 0x23, 0x82, 0x18, 0x2d, 0x7e, 0xce, 699 0xc2, 0xe6, 0x02, 0x6b, 0x56, 0xbb, 0x71, 0xbb, 0xb5, 0xa3, 0xbb, 0xad, 0xbd, 0xf8, 0x2d, 0x03, 700 0xdb, 0xeb, 0x3e, 0x5f, 0x24, 0x60, 0x94, 0xcc, 0x3b, 0x4d, 0xe0, 0x93, 0x09, 0x3b, 0x97, 0x78, 701 0xe0, 0x02, 0x98, 0x5d, 0xce, 0xf5, 0x2f, 0xb5, 0x89, 0x3a, 0xaa, 0x9b, 0x53, 0x3f, 0xd6, 0x7f, 702 0xc5, 0x22, 0xea, 0x38, 0xb9, 0x39, 0xd7, 0x33, 0xf2, 0xbb, 0xba, 0x39, 0xc7, 0x43, 0x30, 0x3b, 703 0xba, 0x9f, 0x46, 0x65, 0xcb, 0x6b, 0xdf, 0x7e, 0xe2, 0xee, 0x43, 0x4a, 0x07, 0xe1, 0x38, 0x31, 704 0x10, 0x2a, 0xde, 0xac, 0xff, 0xd6, 0xed, 0xf4, 0x7f, 0xf2, 0x00, 0xb3, 0x37, 0x7d, 0x80, 0xff, 705 0x00, 0x92, 0x91, 0xb3, 0xa1, 0x65, 0x3b, 0x97, 0xc8, 0x08, 0x92, 0x51, 0x79, 0x17, 0x0a, 0xcb, 706 0x65, 0x60, 0x80, 0xec, 0xcb, 0xbd, 0xc3, 0x17, 0xfb, 0xb5, 0x82, 0x71, 0x71, 0xf6, 0x0a, 0xc8, 707 0xbb, 0x0f, 0x56, 0x37, 0xf4, 0x7b, 0x02, 0xff, 0x99, 0x24, 0x4e, 0x73, 0x4f, 0x80, 0x9d, 0x2f, 708 0x6a, 0x58, 0x72, 0x2d, 0x54, 0x30, 0xc8, 0x44, 0x51, 0xfe, 0x0b, 0x20, 0x3d, 0x40, 0xf9, 0x63, 709 0x0e, 0xf0, 0x2a, 0x6e, 0xd6, 0x48, 0xe3, 0x97, 0x37, 0x12, 0x22, 0x7f, 0x70, 0xd2, 0x0d, 0x68, 710 0xd8, 0xa9, 0x39, 0x48, 0xcf, 0xff, 0xbf, 0x57, 0x57, 0xee, 0x1e, 0xf9, 0x83, 0x03, 0xed, 0xbf, 711 0xcf, 0x64, 0x3c, 0x26, 0x76, 0x34, 0xb3, 0x17, 0x68, 0x9e, 0x63, 0xde, 0x88, 0xe6, 0x2d, 0xd1, 712 0xbc, 0x05, 0x5a, 0x5d, 0xaf, 0xac, 0xeb, 0xd3, 0xea, 0x4b, 0xb4, 0xfa, 0x02, 0xad, 0xe1, 0x58, 713 0x37, 0xa2, 0x35, 0x96, 0x68, 0x0d, 0x7c, 0x00, 0x76, 0xcc, 0xdb, 0x67, 0x2c, 0xe6, 0x61, 0xa8, 714 0x27, 0x17, 0xbc, 0x4a, 0x0a, 0x8c, 0xf0, 0xf6, 0xd9, 0x31, 0xe1, 0x61, 0x48, 0xe6, 0x52, 0x8c, 715 0xc1, 0x14, 0x32, 0xd6, 0x43, 0x6c, 0x3f, 0xfa, 0x8d, 0x28, 0x43, 0xdd, 0x05, 0x4c, 0x3a, 0xb9, 716 0x92, 0x51, 0x31, 0xd5, 0x5d, 0xc0, 0x24, 0x7e, 0x0a, 0xf9, 0x0f, 0x81, 0xec, 0xf3, 0x81, 0x0c, 717 0x38, 0x13, 0x8e, 0xad, 0x23, 0xee, 0xa6, 0x44, 0x7c, 0x15, 0xc8, 0xfe, 0x93, 0x89, 0xa2, 0x85, 718 0x1c, 0x83, 0x24, 0x11, 0xc5, 0x07, 0xb0, 0xb5, 0xd8, 0x48, 0xb5, 0x5d, 0xce, 0xe8, 0x58, 0x8f, 719 0xa0, 0x45, 0xd4, 0x11, 0x6f, 0x83, 0xf5, 0xde, 0x0f, 0x87, 0x54, 0xef, 0x20, 0x9b, 0x4c, 0x8c, 720 0x26, 0xba, 0x67, 0x24, 0xd5, 0xde, 0x8a, 0xda, 0x5c, 0xa3, 0x46, 0x97, 0xa8, 0xeb, 0x2b, 0xea, 721 0xcd, 0x35, 0xea, 0x5c, 0x52, 0xfd, 0x76, 0xae, 0x6e, 0xac, 0xa8, 0xed, 0x89, 0xba, 0x91, 0x54, 722 0xe7, 0xbd, 0x94, 0xc7, 0x9c, 0xa4, 0x3f, 0x03, 0xfb, 0xa2, 0x53, 0xd8, 0x81, 0x8d, 0x53, 0xea, 723 0xcb, 0x90, 0x8a, 0x29, 0x7c, 0x66, 0xe2, 0x3f, 0x20, 0x2b, 0x24, 0x67, 0x54, 0x4c, 0xff, 0xcd, 724 0xd4, 0x52, 0x69, 0x77, 0x38, 0x8f, 0x85, 0x5e, 0xd2, 0x36, 0x99, 0x18, 0xc5, 0x4d, 0xc8, 0x27, 725 0x9a, 0xb1, 0x6b, 0xe5, 0x3a, 0x85, 0xaf, 0x46, 0x6b, 0x03, 0x2c, 0x5f, 0x46, 0x9c, 0x37, 0x1f, 726 0x83, 0x39, 0x92, 0x51, 0xea, 0xca, 0xe9, 0x5c, 0xbd, 0xea, 0x14, 0xa3, 0xe9, 0x02, 0x1a, 0xa5, 727 0x2f, 0x2f, 0xaa, 0x93, 0x43, 0x23, 0xa1, 0xfd, 0x83, 0x54, 0xff, 0xae, 0x9e, 0x09, 0x34, 0x0a, 728 0x9a, 0xff, 0x81, 0x39, 0x1a, 0xa6, 0x0b, 0x7a, 0x25, 0xa3, 0x92, 0x21, 0xca, 0xb5, 0x55, 0x7f, 729 0x53, 0xeb, 0x05, 0xb2, 0x3f, 0x3c, 0x75, 0xdb, 0x3c, 0xaa, 0xbe, 0xeb, 0x0f, 0xa3, 0x41, 0x55, 730 0x0b, 0x63, 0xda, 0x0d, 0x69, 0x5b, 0x56, 0x03, 0x26, 0x69, 0xcc, 0xfc, 0xb0, 0x3a, 0x47, 0xfe, 731 0x08, 0x00, 0x00, 0xff, 0xff, 0x55, 0x22, 0xd4, 0xab, 0xc2, 0x09, 0x00, 0x00, 732} 733