github.com/schwarzm/garden-linux@v0.0.0-20150507151835-33bca2147c47/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto/testdata/test.pb.go (about) 1 // Code generated by protoc-gen-gogo. 2 // source: test.proto 3 // DO NOT EDIT! 4 5 /* 6 Package testdata is a generated protocol buffer package. 7 8 It is generated from these files: 9 test.proto 10 11 It has these top-level messages: 12 GoEnum 13 GoTestField 14 GoTest 15 GoSkipTest 16 NonPackedTest 17 PackedTest 18 MaxTag 19 OldMessage 20 NewMessage 21 InnerMessage 22 OtherMessage 23 MyMessage 24 Ext 25 MyMessageSet 26 Empty 27 MessageList 28 Strings 29 Defaults 30 SubDefaults 31 RepeatedEnum 32 MoreRepeated 33 GroupOld 34 GroupNew 35 FloatingPoint 36 */ 37 package testdata 38 39 import proto "code.google.com/p/gogoprotobuf/proto" 40 import math "math" 41 42 // Reference imports to suppress errors if they are not otherwise used. 43 var _ = proto.Marshal 44 var _ = math.Inf 45 46 type FOO int32 47 48 const ( 49 FOO_FOO1 FOO = 1 50 ) 51 52 var FOO_name = map[int32]string{ 53 1: "FOO1", 54 } 55 var FOO_value = map[string]int32{ 56 "FOO1": 1, 57 } 58 59 func (x FOO) Enum() *FOO { 60 p := new(FOO) 61 *p = x 62 return p 63 } 64 func (x FOO) String() string { 65 return proto.EnumName(FOO_name, int32(x)) 66 } 67 func (x *FOO) UnmarshalJSON(data []byte) error { 68 value, err := proto.UnmarshalJSONEnum(FOO_value, data, "FOO") 69 if err != nil { 70 return err 71 } 72 *x = FOO(value) 73 return nil 74 } 75 76 // An enum, for completeness. 77 type GoTest_KIND int32 78 79 const ( 80 GoTest_VOID GoTest_KIND = 0 81 // Basic types 82 GoTest_BOOL GoTest_KIND = 1 83 GoTest_BYTES GoTest_KIND = 2 84 GoTest_FINGERPRINT GoTest_KIND = 3 85 GoTest_FLOAT GoTest_KIND = 4 86 GoTest_INT GoTest_KIND = 5 87 GoTest_STRING GoTest_KIND = 6 88 GoTest_TIME GoTest_KIND = 7 89 // Groupings 90 GoTest_TUPLE GoTest_KIND = 8 91 GoTest_ARRAY GoTest_KIND = 9 92 GoTest_MAP GoTest_KIND = 10 93 // Table types 94 GoTest_TABLE GoTest_KIND = 11 95 // Functions 96 GoTest_FUNCTION GoTest_KIND = 12 97 ) 98 99 var GoTest_KIND_name = map[int32]string{ 100 0: "VOID", 101 1: "BOOL", 102 2: "BYTES", 103 3: "FINGERPRINT", 104 4: "FLOAT", 105 5: "INT", 106 6: "STRING", 107 7: "TIME", 108 8: "TUPLE", 109 9: "ARRAY", 110 10: "MAP", 111 11: "TABLE", 112 12: "FUNCTION", 113 } 114 var GoTest_KIND_value = map[string]int32{ 115 "VOID": 0, 116 "BOOL": 1, 117 "BYTES": 2, 118 "FINGERPRINT": 3, 119 "FLOAT": 4, 120 "INT": 5, 121 "STRING": 6, 122 "TIME": 7, 123 "TUPLE": 8, 124 "ARRAY": 9, 125 "MAP": 10, 126 "TABLE": 11, 127 "FUNCTION": 12, 128 } 129 130 func (x GoTest_KIND) Enum() *GoTest_KIND { 131 p := new(GoTest_KIND) 132 *p = x 133 return p 134 } 135 func (x GoTest_KIND) String() string { 136 return proto.EnumName(GoTest_KIND_name, int32(x)) 137 } 138 func (x *GoTest_KIND) UnmarshalJSON(data []byte) error { 139 value, err := proto.UnmarshalJSONEnum(GoTest_KIND_value, data, "GoTest_KIND") 140 if err != nil { 141 return err 142 } 143 *x = GoTest_KIND(value) 144 return nil 145 } 146 147 type MyMessage_Color int32 148 149 const ( 150 MyMessage_RED MyMessage_Color = 0 151 MyMessage_GREEN MyMessage_Color = 1 152 MyMessage_BLUE MyMessage_Color = 2 153 ) 154 155 var MyMessage_Color_name = map[int32]string{ 156 0: "RED", 157 1: "GREEN", 158 2: "BLUE", 159 } 160 var MyMessage_Color_value = map[string]int32{ 161 "RED": 0, 162 "GREEN": 1, 163 "BLUE": 2, 164 } 165 166 func (x MyMessage_Color) Enum() *MyMessage_Color { 167 p := new(MyMessage_Color) 168 *p = x 169 return p 170 } 171 func (x MyMessage_Color) String() string { 172 return proto.EnumName(MyMessage_Color_name, int32(x)) 173 } 174 func (x *MyMessage_Color) UnmarshalJSON(data []byte) error { 175 value, err := proto.UnmarshalJSONEnum(MyMessage_Color_value, data, "MyMessage_Color") 176 if err != nil { 177 return err 178 } 179 *x = MyMessage_Color(value) 180 return nil 181 } 182 183 type Defaults_Color int32 184 185 const ( 186 Defaults_RED Defaults_Color = 0 187 Defaults_GREEN Defaults_Color = 1 188 Defaults_BLUE Defaults_Color = 2 189 ) 190 191 var Defaults_Color_name = map[int32]string{ 192 0: "RED", 193 1: "GREEN", 194 2: "BLUE", 195 } 196 var Defaults_Color_value = map[string]int32{ 197 "RED": 0, 198 "GREEN": 1, 199 "BLUE": 2, 200 } 201 202 func (x Defaults_Color) Enum() *Defaults_Color { 203 p := new(Defaults_Color) 204 *p = x 205 return p 206 } 207 func (x Defaults_Color) String() string { 208 return proto.EnumName(Defaults_Color_name, int32(x)) 209 } 210 func (x *Defaults_Color) UnmarshalJSON(data []byte) error { 211 value, err := proto.UnmarshalJSONEnum(Defaults_Color_value, data, "Defaults_Color") 212 if err != nil { 213 return err 214 } 215 *x = Defaults_Color(value) 216 return nil 217 } 218 219 type RepeatedEnum_Color int32 220 221 const ( 222 RepeatedEnum_RED RepeatedEnum_Color = 1 223 ) 224 225 var RepeatedEnum_Color_name = map[int32]string{ 226 1: "RED", 227 } 228 var RepeatedEnum_Color_value = map[string]int32{ 229 "RED": 1, 230 } 231 232 func (x RepeatedEnum_Color) Enum() *RepeatedEnum_Color { 233 p := new(RepeatedEnum_Color) 234 *p = x 235 return p 236 } 237 func (x RepeatedEnum_Color) String() string { 238 return proto.EnumName(RepeatedEnum_Color_name, int32(x)) 239 } 240 func (x *RepeatedEnum_Color) UnmarshalJSON(data []byte) error { 241 value, err := proto.UnmarshalJSONEnum(RepeatedEnum_Color_value, data, "RepeatedEnum_Color") 242 if err != nil { 243 return err 244 } 245 *x = RepeatedEnum_Color(value) 246 return nil 247 } 248 249 type GoEnum struct { 250 Foo *FOO `protobuf:"varint,1,req,name=foo,enum=testdata.FOO" json:"foo,omitempty"` 251 XXX_unrecognized []byte `json:"-"` 252 } 253 254 func (m *GoEnum) Reset() { *m = GoEnum{} } 255 func (m *GoEnum) String() string { return proto.CompactTextString(m) } 256 func (*GoEnum) ProtoMessage() {} 257 258 func (m *GoEnum) GetFoo() FOO { 259 if m != nil && m.Foo != nil { 260 return *m.Foo 261 } 262 return FOO_FOO1 263 } 264 265 type GoTestField struct { 266 Label *string `protobuf:"bytes,1,req" json:"Label,omitempty"` 267 Type *string `protobuf:"bytes,2,req" json:"Type,omitempty"` 268 XXX_unrecognized []byte `json:"-"` 269 } 270 271 func (m *GoTestField) Reset() { *m = GoTestField{} } 272 func (m *GoTestField) String() string { return proto.CompactTextString(m) } 273 func (*GoTestField) ProtoMessage() {} 274 275 func (m *GoTestField) GetLabel() string { 276 if m != nil && m.Label != nil { 277 return *m.Label 278 } 279 return "" 280 } 281 282 func (m *GoTestField) GetType() string { 283 if m != nil && m.Type != nil { 284 return *m.Type 285 } 286 return "" 287 } 288 289 type GoTest struct { 290 // Some typical parameters 291 Kind *GoTest_KIND `protobuf:"varint,1,req,enum=testdata.GoTest_KIND" json:"Kind,omitempty"` 292 Table *string `protobuf:"bytes,2,opt" json:"Table,omitempty"` 293 Param *int32 `protobuf:"varint,3,opt" json:"Param,omitempty"` 294 // Required, repeated and optional foreign fields. 295 RequiredField *GoTestField `protobuf:"bytes,4,req" json:"RequiredField,omitempty"` 296 RepeatedField []*GoTestField `protobuf:"bytes,5,rep" json:"RepeatedField,omitempty"` 297 OptionalField *GoTestField `protobuf:"bytes,6,opt" json:"OptionalField,omitempty"` 298 // Required fields of all basic types 299 F_BoolRequired *bool `protobuf:"varint,10,req,name=F_Bool_required" json:"F_Bool_required,omitempty"` 300 F_Int32Required *int32 `protobuf:"varint,11,req,name=F_Int32_required" json:"F_Int32_required,omitempty"` 301 F_Int64Required *int64 `protobuf:"varint,12,req,name=F_Int64_required" json:"F_Int64_required,omitempty"` 302 F_Fixed32Required *uint32 `protobuf:"fixed32,13,req,name=F_Fixed32_required" json:"F_Fixed32_required,omitempty"` 303 F_Fixed64Required *uint64 `protobuf:"fixed64,14,req,name=F_Fixed64_required" json:"F_Fixed64_required,omitempty"` 304 F_Uint32Required *uint32 `protobuf:"varint,15,req,name=F_Uint32_required" json:"F_Uint32_required,omitempty"` 305 F_Uint64Required *uint64 `protobuf:"varint,16,req,name=F_Uint64_required" json:"F_Uint64_required,omitempty"` 306 F_FloatRequired *float32 `protobuf:"fixed32,17,req,name=F_Float_required" json:"F_Float_required,omitempty"` 307 F_DoubleRequired *float64 `protobuf:"fixed64,18,req,name=F_Double_required" json:"F_Double_required,omitempty"` 308 F_StringRequired *string `protobuf:"bytes,19,req,name=F_String_required" json:"F_String_required,omitempty"` 309 F_BytesRequired []byte `protobuf:"bytes,101,req,name=F_Bytes_required" json:"F_Bytes_required,omitempty"` 310 F_Sint32Required *int32 `protobuf:"zigzag32,102,req,name=F_Sint32_required" json:"F_Sint32_required,omitempty"` 311 F_Sint64Required *int64 `protobuf:"zigzag64,103,req,name=F_Sint64_required" json:"F_Sint64_required,omitempty"` 312 // Repeated fields of all basic types 313 F_BoolRepeated []bool `protobuf:"varint,20,rep,name=F_Bool_repeated" json:"F_Bool_repeated,omitempty"` 314 F_Int32Repeated []int32 `protobuf:"varint,21,rep,name=F_Int32_repeated" json:"F_Int32_repeated,omitempty"` 315 F_Int64Repeated []int64 `protobuf:"varint,22,rep,name=F_Int64_repeated" json:"F_Int64_repeated,omitempty"` 316 F_Fixed32Repeated []uint32 `protobuf:"fixed32,23,rep,name=F_Fixed32_repeated" json:"F_Fixed32_repeated,omitempty"` 317 F_Fixed64Repeated []uint64 `protobuf:"fixed64,24,rep,name=F_Fixed64_repeated" json:"F_Fixed64_repeated,omitempty"` 318 F_Uint32Repeated []uint32 `protobuf:"varint,25,rep,name=F_Uint32_repeated" json:"F_Uint32_repeated,omitempty"` 319 F_Uint64Repeated []uint64 `protobuf:"varint,26,rep,name=F_Uint64_repeated" json:"F_Uint64_repeated,omitempty"` 320 F_FloatRepeated []float32 `protobuf:"fixed32,27,rep,name=F_Float_repeated" json:"F_Float_repeated,omitempty"` 321 F_DoubleRepeated []float64 `protobuf:"fixed64,28,rep,name=F_Double_repeated" json:"F_Double_repeated,omitempty"` 322 F_StringRepeated []string `protobuf:"bytes,29,rep,name=F_String_repeated" json:"F_String_repeated,omitempty"` 323 F_BytesRepeated [][]byte `protobuf:"bytes,201,rep,name=F_Bytes_repeated" json:"F_Bytes_repeated,omitempty"` 324 F_Sint32Repeated []int32 `protobuf:"zigzag32,202,rep,name=F_Sint32_repeated" json:"F_Sint32_repeated,omitempty"` 325 F_Sint64Repeated []int64 `protobuf:"zigzag64,203,rep,name=F_Sint64_repeated" json:"F_Sint64_repeated,omitempty"` 326 // Optional fields of all basic types 327 F_BoolOptional *bool `protobuf:"varint,30,opt,name=F_Bool_optional" json:"F_Bool_optional,omitempty"` 328 F_Int32Optional *int32 `protobuf:"varint,31,opt,name=F_Int32_optional" json:"F_Int32_optional,omitempty"` 329 F_Int64Optional *int64 `protobuf:"varint,32,opt,name=F_Int64_optional" json:"F_Int64_optional,omitempty"` 330 F_Fixed32Optional *uint32 `protobuf:"fixed32,33,opt,name=F_Fixed32_optional" json:"F_Fixed32_optional,omitempty"` 331 F_Fixed64Optional *uint64 `protobuf:"fixed64,34,opt,name=F_Fixed64_optional" json:"F_Fixed64_optional,omitempty"` 332 F_Uint32Optional *uint32 `protobuf:"varint,35,opt,name=F_Uint32_optional" json:"F_Uint32_optional,omitempty"` 333 F_Uint64Optional *uint64 `protobuf:"varint,36,opt,name=F_Uint64_optional" json:"F_Uint64_optional,omitempty"` 334 F_FloatOptional *float32 `protobuf:"fixed32,37,opt,name=F_Float_optional" json:"F_Float_optional,omitempty"` 335 F_DoubleOptional *float64 `protobuf:"fixed64,38,opt,name=F_Double_optional" json:"F_Double_optional,omitempty"` 336 F_StringOptional *string `protobuf:"bytes,39,opt,name=F_String_optional" json:"F_String_optional,omitempty"` 337 F_BytesOptional []byte `protobuf:"bytes,301,opt,name=F_Bytes_optional" json:"F_Bytes_optional,omitempty"` 338 F_Sint32Optional *int32 `protobuf:"zigzag32,302,opt,name=F_Sint32_optional" json:"F_Sint32_optional,omitempty"` 339 F_Sint64Optional *int64 `protobuf:"zigzag64,303,opt,name=F_Sint64_optional" json:"F_Sint64_optional,omitempty"` 340 // Default-valued fields of all basic types 341 F_BoolDefaulted *bool `protobuf:"varint,40,opt,name=F_Bool_defaulted,def=1" json:"F_Bool_defaulted,omitempty"` 342 F_Int32Defaulted *int32 `protobuf:"varint,41,opt,name=F_Int32_defaulted,def=32" json:"F_Int32_defaulted,omitempty"` 343 F_Int64Defaulted *int64 `protobuf:"varint,42,opt,name=F_Int64_defaulted,def=64" json:"F_Int64_defaulted,omitempty"` 344 F_Fixed32Defaulted *uint32 `protobuf:"fixed32,43,opt,name=F_Fixed32_defaulted,def=320" json:"F_Fixed32_defaulted,omitempty"` 345 F_Fixed64Defaulted *uint64 `protobuf:"fixed64,44,opt,name=F_Fixed64_defaulted,def=640" json:"F_Fixed64_defaulted,omitempty"` 346 F_Uint32Defaulted *uint32 `protobuf:"varint,45,opt,name=F_Uint32_defaulted,def=3200" json:"F_Uint32_defaulted,omitempty"` 347 F_Uint64Defaulted *uint64 `protobuf:"varint,46,opt,name=F_Uint64_defaulted,def=6400" json:"F_Uint64_defaulted,omitempty"` 348 F_FloatDefaulted *float32 `protobuf:"fixed32,47,opt,name=F_Float_defaulted,def=314159" json:"F_Float_defaulted,omitempty"` 349 F_DoubleDefaulted *float64 `protobuf:"fixed64,48,opt,name=F_Double_defaulted,def=271828" json:"F_Double_defaulted,omitempty"` 350 F_StringDefaulted *string `protobuf:"bytes,49,opt,name=F_String_defaulted,def=hello, \"world!\"\n" json:"F_String_defaulted,omitempty"` 351 F_BytesDefaulted []byte `protobuf:"bytes,401,opt,name=F_Bytes_defaulted,def=Bignose" json:"F_Bytes_defaulted,omitempty"` 352 F_Sint32Defaulted *int32 `protobuf:"zigzag32,402,opt,name=F_Sint32_defaulted,def=-32" json:"F_Sint32_defaulted,omitempty"` 353 F_Sint64Defaulted *int64 `protobuf:"zigzag64,403,opt,name=F_Sint64_defaulted,def=-64" json:"F_Sint64_defaulted,omitempty"` 354 // Packed repeated fields (no string or bytes). 355 F_BoolRepeatedPacked []bool `protobuf:"varint,50,rep,packed,name=F_Bool_repeated_packed" json:"F_Bool_repeated_packed,omitempty"` 356 F_Int32RepeatedPacked []int32 `protobuf:"varint,51,rep,packed,name=F_Int32_repeated_packed" json:"F_Int32_repeated_packed,omitempty"` 357 F_Int64RepeatedPacked []int64 `protobuf:"varint,52,rep,packed,name=F_Int64_repeated_packed" json:"F_Int64_repeated_packed,omitempty"` 358 F_Fixed32RepeatedPacked []uint32 `protobuf:"fixed32,53,rep,packed,name=F_Fixed32_repeated_packed" json:"F_Fixed32_repeated_packed,omitempty"` 359 F_Fixed64RepeatedPacked []uint64 `protobuf:"fixed64,54,rep,packed,name=F_Fixed64_repeated_packed" json:"F_Fixed64_repeated_packed,omitempty"` 360 F_Uint32RepeatedPacked []uint32 `protobuf:"varint,55,rep,packed,name=F_Uint32_repeated_packed" json:"F_Uint32_repeated_packed,omitempty"` 361 F_Uint64RepeatedPacked []uint64 `protobuf:"varint,56,rep,packed,name=F_Uint64_repeated_packed" json:"F_Uint64_repeated_packed,omitempty"` 362 F_FloatRepeatedPacked []float32 `protobuf:"fixed32,57,rep,packed,name=F_Float_repeated_packed" json:"F_Float_repeated_packed,omitempty"` 363 F_DoubleRepeatedPacked []float64 `protobuf:"fixed64,58,rep,packed,name=F_Double_repeated_packed" json:"F_Double_repeated_packed,omitempty"` 364 F_Sint32RepeatedPacked []int32 `protobuf:"zigzag32,502,rep,packed,name=F_Sint32_repeated_packed" json:"F_Sint32_repeated_packed,omitempty"` 365 F_Sint64RepeatedPacked []int64 `protobuf:"zigzag64,503,rep,packed,name=F_Sint64_repeated_packed" json:"F_Sint64_repeated_packed,omitempty"` 366 Requiredgroup *GoTest_RequiredGroup `protobuf:"group,70,req,name=RequiredGroup" json:"requiredgroup,omitempty"` 367 Repeatedgroup []*GoTest_RepeatedGroup `protobuf:"group,80,rep,name=RepeatedGroup" json:"repeatedgroup,omitempty"` 368 Optionalgroup *GoTest_OptionalGroup `protobuf:"group,90,opt,name=OptionalGroup" json:"optionalgroup,omitempty"` 369 XXX_unrecognized []byte `json:"-"` 370 } 371 372 func (m *GoTest) Reset() { *m = GoTest{} } 373 func (m *GoTest) String() string { return proto.CompactTextString(m) } 374 func (*GoTest) ProtoMessage() {} 375 376 const Default_GoTest_F_BoolDefaulted bool = true 377 const Default_GoTest_F_Int32Defaulted int32 = 32 378 const Default_GoTest_F_Int64Defaulted int64 = 64 379 const Default_GoTest_F_Fixed32Defaulted uint32 = 320 380 const Default_GoTest_F_Fixed64Defaulted uint64 = 640 381 const Default_GoTest_F_Uint32Defaulted uint32 = 3200 382 const Default_GoTest_F_Uint64Defaulted uint64 = 6400 383 const Default_GoTest_F_FloatDefaulted float32 = 314159 384 const Default_GoTest_F_DoubleDefaulted float64 = 271828 385 const Default_GoTest_F_StringDefaulted string = "hello, \"world!\"\n" 386 387 var Default_GoTest_F_BytesDefaulted []byte = []byte("Bignose") 388 389 const Default_GoTest_F_Sint32Defaulted int32 = -32 390 const Default_GoTest_F_Sint64Defaulted int64 = -64 391 392 func (m *GoTest) GetKind() GoTest_KIND { 393 if m != nil && m.Kind != nil { 394 return *m.Kind 395 } 396 return GoTest_VOID 397 } 398 399 func (m *GoTest) GetTable() string { 400 if m != nil && m.Table != nil { 401 return *m.Table 402 } 403 return "" 404 } 405 406 func (m *GoTest) GetParam() int32 { 407 if m != nil && m.Param != nil { 408 return *m.Param 409 } 410 return 0 411 } 412 413 func (m *GoTest) GetRequiredField() *GoTestField { 414 if m != nil { 415 return m.RequiredField 416 } 417 return nil 418 } 419 420 func (m *GoTest) GetRepeatedField() []*GoTestField { 421 if m != nil { 422 return m.RepeatedField 423 } 424 return nil 425 } 426 427 func (m *GoTest) GetOptionalField() *GoTestField { 428 if m != nil { 429 return m.OptionalField 430 } 431 return nil 432 } 433 434 func (m *GoTest) GetF_BoolRequired() bool { 435 if m != nil && m.F_BoolRequired != nil { 436 return *m.F_BoolRequired 437 } 438 return false 439 } 440 441 func (m *GoTest) GetF_Int32Required() int32 { 442 if m != nil && m.F_Int32Required != nil { 443 return *m.F_Int32Required 444 } 445 return 0 446 } 447 448 func (m *GoTest) GetF_Int64Required() int64 { 449 if m != nil && m.F_Int64Required != nil { 450 return *m.F_Int64Required 451 } 452 return 0 453 } 454 455 func (m *GoTest) GetF_Fixed32Required() uint32 { 456 if m != nil && m.F_Fixed32Required != nil { 457 return *m.F_Fixed32Required 458 } 459 return 0 460 } 461 462 func (m *GoTest) GetF_Fixed64Required() uint64 { 463 if m != nil && m.F_Fixed64Required != nil { 464 return *m.F_Fixed64Required 465 } 466 return 0 467 } 468 469 func (m *GoTest) GetF_Uint32Required() uint32 { 470 if m != nil && m.F_Uint32Required != nil { 471 return *m.F_Uint32Required 472 } 473 return 0 474 } 475 476 func (m *GoTest) GetF_Uint64Required() uint64 { 477 if m != nil && m.F_Uint64Required != nil { 478 return *m.F_Uint64Required 479 } 480 return 0 481 } 482 483 func (m *GoTest) GetF_FloatRequired() float32 { 484 if m != nil && m.F_FloatRequired != nil { 485 return *m.F_FloatRequired 486 } 487 return 0 488 } 489 490 func (m *GoTest) GetF_DoubleRequired() float64 { 491 if m != nil && m.F_DoubleRequired != nil { 492 return *m.F_DoubleRequired 493 } 494 return 0 495 } 496 497 func (m *GoTest) GetF_StringRequired() string { 498 if m != nil && m.F_StringRequired != nil { 499 return *m.F_StringRequired 500 } 501 return "" 502 } 503 504 func (m *GoTest) GetF_BytesRequired() []byte { 505 if m != nil { 506 return m.F_BytesRequired 507 } 508 return nil 509 } 510 511 func (m *GoTest) GetF_Sint32Required() int32 { 512 if m != nil && m.F_Sint32Required != nil { 513 return *m.F_Sint32Required 514 } 515 return 0 516 } 517 518 func (m *GoTest) GetF_Sint64Required() int64 { 519 if m != nil && m.F_Sint64Required != nil { 520 return *m.F_Sint64Required 521 } 522 return 0 523 } 524 525 func (m *GoTest) GetF_BoolRepeated() []bool { 526 if m != nil { 527 return m.F_BoolRepeated 528 } 529 return nil 530 } 531 532 func (m *GoTest) GetF_Int32Repeated() []int32 { 533 if m != nil { 534 return m.F_Int32Repeated 535 } 536 return nil 537 } 538 539 func (m *GoTest) GetF_Int64Repeated() []int64 { 540 if m != nil { 541 return m.F_Int64Repeated 542 } 543 return nil 544 } 545 546 func (m *GoTest) GetF_Fixed32Repeated() []uint32 { 547 if m != nil { 548 return m.F_Fixed32Repeated 549 } 550 return nil 551 } 552 553 func (m *GoTest) GetF_Fixed64Repeated() []uint64 { 554 if m != nil { 555 return m.F_Fixed64Repeated 556 } 557 return nil 558 } 559 560 func (m *GoTest) GetF_Uint32Repeated() []uint32 { 561 if m != nil { 562 return m.F_Uint32Repeated 563 } 564 return nil 565 } 566 567 func (m *GoTest) GetF_Uint64Repeated() []uint64 { 568 if m != nil { 569 return m.F_Uint64Repeated 570 } 571 return nil 572 } 573 574 func (m *GoTest) GetF_FloatRepeated() []float32 { 575 if m != nil { 576 return m.F_FloatRepeated 577 } 578 return nil 579 } 580 581 func (m *GoTest) GetF_DoubleRepeated() []float64 { 582 if m != nil { 583 return m.F_DoubleRepeated 584 } 585 return nil 586 } 587 588 func (m *GoTest) GetF_StringRepeated() []string { 589 if m != nil { 590 return m.F_StringRepeated 591 } 592 return nil 593 } 594 595 func (m *GoTest) GetF_BytesRepeated() [][]byte { 596 if m != nil { 597 return m.F_BytesRepeated 598 } 599 return nil 600 } 601 602 func (m *GoTest) GetF_Sint32Repeated() []int32 { 603 if m != nil { 604 return m.F_Sint32Repeated 605 } 606 return nil 607 } 608 609 func (m *GoTest) GetF_Sint64Repeated() []int64 { 610 if m != nil { 611 return m.F_Sint64Repeated 612 } 613 return nil 614 } 615 616 func (m *GoTest) GetF_BoolOptional() bool { 617 if m != nil && m.F_BoolOptional != nil { 618 return *m.F_BoolOptional 619 } 620 return false 621 } 622 623 func (m *GoTest) GetF_Int32Optional() int32 { 624 if m != nil && m.F_Int32Optional != nil { 625 return *m.F_Int32Optional 626 } 627 return 0 628 } 629 630 func (m *GoTest) GetF_Int64Optional() int64 { 631 if m != nil && m.F_Int64Optional != nil { 632 return *m.F_Int64Optional 633 } 634 return 0 635 } 636 637 func (m *GoTest) GetF_Fixed32Optional() uint32 { 638 if m != nil && m.F_Fixed32Optional != nil { 639 return *m.F_Fixed32Optional 640 } 641 return 0 642 } 643 644 func (m *GoTest) GetF_Fixed64Optional() uint64 { 645 if m != nil && m.F_Fixed64Optional != nil { 646 return *m.F_Fixed64Optional 647 } 648 return 0 649 } 650 651 func (m *GoTest) GetF_Uint32Optional() uint32 { 652 if m != nil && m.F_Uint32Optional != nil { 653 return *m.F_Uint32Optional 654 } 655 return 0 656 } 657 658 func (m *GoTest) GetF_Uint64Optional() uint64 { 659 if m != nil && m.F_Uint64Optional != nil { 660 return *m.F_Uint64Optional 661 } 662 return 0 663 } 664 665 func (m *GoTest) GetF_FloatOptional() float32 { 666 if m != nil && m.F_FloatOptional != nil { 667 return *m.F_FloatOptional 668 } 669 return 0 670 } 671 672 func (m *GoTest) GetF_DoubleOptional() float64 { 673 if m != nil && m.F_DoubleOptional != nil { 674 return *m.F_DoubleOptional 675 } 676 return 0 677 } 678 679 func (m *GoTest) GetF_StringOptional() string { 680 if m != nil && m.F_StringOptional != nil { 681 return *m.F_StringOptional 682 } 683 return "" 684 } 685 686 func (m *GoTest) GetF_BytesOptional() []byte { 687 if m != nil { 688 return m.F_BytesOptional 689 } 690 return nil 691 } 692 693 func (m *GoTest) GetF_Sint32Optional() int32 { 694 if m != nil && m.F_Sint32Optional != nil { 695 return *m.F_Sint32Optional 696 } 697 return 0 698 } 699 700 func (m *GoTest) GetF_Sint64Optional() int64 { 701 if m != nil && m.F_Sint64Optional != nil { 702 return *m.F_Sint64Optional 703 } 704 return 0 705 } 706 707 func (m *GoTest) GetF_BoolDefaulted() bool { 708 if m != nil && m.F_BoolDefaulted != nil { 709 return *m.F_BoolDefaulted 710 } 711 return Default_GoTest_F_BoolDefaulted 712 } 713 714 func (m *GoTest) GetF_Int32Defaulted() int32 { 715 if m != nil && m.F_Int32Defaulted != nil { 716 return *m.F_Int32Defaulted 717 } 718 return Default_GoTest_F_Int32Defaulted 719 } 720 721 func (m *GoTest) GetF_Int64Defaulted() int64 { 722 if m != nil && m.F_Int64Defaulted != nil { 723 return *m.F_Int64Defaulted 724 } 725 return Default_GoTest_F_Int64Defaulted 726 } 727 728 func (m *GoTest) GetF_Fixed32Defaulted() uint32 { 729 if m != nil && m.F_Fixed32Defaulted != nil { 730 return *m.F_Fixed32Defaulted 731 } 732 return Default_GoTest_F_Fixed32Defaulted 733 } 734 735 func (m *GoTest) GetF_Fixed64Defaulted() uint64 { 736 if m != nil && m.F_Fixed64Defaulted != nil { 737 return *m.F_Fixed64Defaulted 738 } 739 return Default_GoTest_F_Fixed64Defaulted 740 } 741 742 func (m *GoTest) GetF_Uint32Defaulted() uint32 { 743 if m != nil && m.F_Uint32Defaulted != nil { 744 return *m.F_Uint32Defaulted 745 } 746 return Default_GoTest_F_Uint32Defaulted 747 } 748 749 func (m *GoTest) GetF_Uint64Defaulted() uint64 { 750 if m != nil && m.F_Uint64Defaulted != nil { 751 return *m.F_Uint64Defaulted 752 } 753 return Default_GoTest_F_Uint64Defaulted 754 } 755 756 func (m *GoTest) GetF_FloatDefaulted() float32 { 757 if m != nil && m.F_FloatDefaulted != nil { 758 return *m.F_FloatDefaulted 759 } 760 return Default_GoTest_F_FloatDefaulted 761 } 762 763 func (m *GoTest) GetF_DoubleDefaulted() float64 { 764 if m != nil && m.F_DoubleDefaulted != nil { 765 return *m.F_DoubleDefaulted 766 } 767 return Default_GoTest_F_DoubleDefaulted 768 } 769 770 func (m *GoTest) GetF_StringDefaulted() string { 771 if m != nil && m.F_StringDefaulted != nil { 772 return *m.F_StringDefaulted 773 } 774 return Default_GoTest_F_StringDefaulted 775 } 776 777 func (m *GoTest) GetF_BytesDefaulted() []byte { 778 if m != nil && m.F_BytesDefaulted != nil { 779 return m.F_BytesDefaulted 780 } 781 return append([]byte(nil), Default_GoTest_F_BytesDefaulted...) 782 } 783 784 func (m *GoTest) GetF_Sint32Defaulted() int32 { 785 if m != nil && m.F_Sint32Defaulted != nil { 786 return *m.F_Sint32Defaulted 787 } 788 return Default_GoTest_F_Sint32Defaulted 789 } 790 791 func (m *GoTest) GetF_Sint64Defaulted() int64 { 792 if m != nil && m.F_Sint64Defaulted != nil { 793 return *m.F_Sint64Defaulted 794 } 795 return Default_GoTest_F_Sint64Defaulted 796 } 797 798 func (m *GoTest) GetF_BoolRepeatedPacked() []bool { 799 if m != nil { 800 return m.F_BoolRepeatedPacked 801 } 802 return nil 803 } 804 805 func (m *GoTest) GetF_Int32RepeatedPacked() []int32 { 806 if m != nil { 807 return m.F_Int32RepeatedPacked 808 } 809 return nil 810 } 811 812 func (m *GoTest) GetF_Int64RepeatedPacked() []int64 { 813 if m != nil { 814 return m.F_Int64RepeatedPacked 815 } 816 return nil 817 } 818 819 func (m *GoTest) GetF_Fixed32RepeatedPacked() []uint32 { 820 if m != nil { 821 return m.F_Fixed32RepeatedPacked 822 } 823 return nil 824 } 825 826 func (m *GoTest) GetF_Fixed64RepeatedPacked() []uint64 { 827 if m != nil { 828 return m.F_Fixed64RepeatedPacked 829 } 830 return nil 831 } 832 833 func (m *GoTest) GetF_Uint32RepeatedPacked() []uint32 { 834 if m != nil { 835 return m.F_Uint32RepeatedPacked 836 } 837 return nil 838 } 839 840 func (m *GoTest) GetF_Uint64RepeatedPacked() []uint64 { 841 if m != nil { 842 return m.F_Uint64RepeatedPacked 843 } 844 return nil 845 } 846 847 func (m *GoTest) GetF_FloatRepeatedPacked() []float32 { 848 if m != nil { 849 return m.F_FloatRepeatedPacked 850 } 851 return nil 852 } 853 854 func (m *GoTest) GetF_DoubleRepeatedPacked() []float64 { 855 if m != nil { 856 return m.F_DoubleRepeatedPacked 857 } 858 return nil 859 } 860 861 func (m *GoTest) GetF_Sint32RepeatedPacked() []int32 { 862 if m != nil { 863 return m.F_Sint32RepeatedPacked 864 } 865 return nil 866 } 867 868 func (m *GoTest) GetF_Sint64RepeatedPacked() []int64 { 869 if m != nil { 870 return m.F_Sint64RepeatedPacked 871 } 872 return nil 873 } 874 875 func (m *GoTest) GetRequiredgroup() *GoTest_RequiredGroup { 876 if m != nil { 877 return m.Requiredgroup 878 } 879 return nil 880 } 881 882 func (m *GoTest) GetRepeatedgroup() []*GoTest_RepeatedGroup { 883 if m != nil { 884 return m.Repeatedgroup 885 } 886 return nil 887 } 888 889 func (m *GoTest) GetOptionalgroup() *GoTest_OptionalGroup { 890 if m != nil { 891 return m.Optionalgroup 892 } 893 return nil 894 } 895 896 // Required, repeated, and optional groups. 897 type GoTest_RequiredGroup struct { 898 RequiredField *string `protobuf:"bytes,71,req" json:"RequiredField,omitempty"` 899 XXX_unrecognized []byte `json:"-"` 900 } 901 902 func (m *GoTest_RequiredGroup) Reset() { *m = GoTest_RequiredGroup{} } 903 func (m *GoTest_RequiredGroup) String() string { return proto.CompactTextString(m) } 904 func (*GoTest_RequiredGroup) ProtoMessage() {} 905 906 func (m *GoTest_RequiredGroup) GetRequiredField() string { 907 if m != nil && m.RequiredField != nil { 908 return *m.RequiredField 909 } 910 return "" 911 } 912 913 type GoTest_RepeatedGroup struct { 914 RequiredField *string `protobuf:"bytes,81,req" json:"RequiredField,omitempty"` 915 XXX_unrecognized []byte `json:"-"` 916 } 917 918 func (m *GoTest_RepeatedGroup) Reset() { *m = GoTest_RepeatedGroup{} } 919 func (m *GoTest_RepeatedGroup) String() string { return proto.CompactTextString(m) } 920 func (*GoTest_RepeatedGroup) ProtoMessage() {} 921 922 func (m *GoTest_RepeatedGroup) GetRequiredField() string { 923 if m != nil && m.RequiredField != nil { 924 return *m.RequiredField 925 } 926 return "" 927 } 928 929 type GoTest_OptionalGroup struct { 930 RequiredField *string `protobuf:"bytes,91,req" json:"RequiredField,omitempty"` 931 XXX_unrecognized []byte `json:"-"` 932 } 933 934 func (m *GoTest_OptionalGroup) Reset() { *m = GoTest_OptionalGroup{} } 935 func (m *GoTest_OptionalGroup) String() string { return proto.CompactTextString(m) } 936 func (*GoTest_OptionalGroup) ProtoMessage() {} 937 938 func (m *GoTest_OptionalGroup) GetRequiredField() string { 939 if m != nil && m.RequiredField != nil { 940 return *m.RequiredField 941 } 942 return "" 943 } 944 945 // For testing skipping of unrecognized fields. 946 // Numbers are all big, larger than tag numbers in GoTestField, 947 // the message used in the corresponding test. 948 type GoSkipTest struct { 949 SkipInt32 *int32 `protobuf:"varint,11,req,name=skip_int32" json:"skip_int32,omitempty"` 950 SkipFixed32 *uint32 `protobuf:"fixed32,12,req,name=skip_fixed32" json:"skip_fixed32,omitempty"` 951 SkipFixed64 *uint64 `protobuf:"fixed64,13,req,name=skip_fixed64" json:"skip_fixed64,omitempty"` 952 SkipString *string `protobuf:"bytes,14,req,name=skip_string" json:"skip_string,omitempty"` 953 Skipgroup *GoSkipTest_SkipGroup `protobuf:"group,15,req,name=SkipGroup" json:"skipgroup,omitempty"` 954 XXX_unrecognized []byte `json:"-"` 955 } 956 957 func (m *GoSkipTest) Reset() { *m = GoSkipTest{} } 958 func (m *GoSkipTest) String() string { return proto.CompactTextString(m) } 959 func (*GoSkipTest) ProtoMessage() {} 960 961 func (m *GoSkipTest) GetSkipInt32() int32 { 962 if m != nil && m.SkipInt32 != nil { 963 return *m.SkipInt32 964 } 965 return 0 966 } 967 968 func (m *GoSkipTest) GetSkipFixed32() uint32 { 969 if m != nil && m.SkipFixed32 != nil { 970 return *m.SkipFixed32 971 } 972 return 0 973 } 974 975 func (m *GoSkipTest) GetSkipFixed64() uint64 { 976 if m != nil && m.SkipFixed64 != nil { 977 return *m.SkipFixed64 978 } 979 return 0 980 } 981 982 func (m *GoSkipTest) GetSkipString() string { 983 if m != nil && m.SkipString != nil { 984 return *m.SkipString 985 } 986 return "" 987 } 988 989 func (m *GoSkipTest) GetSkipgroup() *GoSkipTest_SkipGroup { 990 if m != nil { 991 return m.Skipgroup 992 } 993 return nil 994 } 995 996 type GoSkipTest_SkipGroup struct { 997 GroupInt32 *int32 `protobuf:"varint,16,req,name=group_int32" json:"group_int32,omitempty"` 998 GroupString *string `protobuf:"bytes,17,req,name=group_string" json:"group_string,omitempty"` 999 XXX_unrecognized []byte `json:"-"` 1000 } 1001 1002 func (m *GoSkipTest_SkipGroup) Reset() { *m = GoSkipTest_SkipGroup{} } 1003 func (m *GoSkipTest_SkipGroup) String() string { return proto.CompactTextString(m) } 1004 func (*GoSkipTest_SkipGroup) ProtoMessage() {} 1005 1006 func (m *GoSkipTest_SkipGroup) GetGroupInt32() int32 { 1007 if m != nil && m.GroupInt32 != nil { 1008 return *m.GroupInt32 1009 } 1010 return 0 1011 } 1012 1013 func (m *GoSkipTest_SkipGroup) GetGroupString() string { 1014 if m != nil && m.GroupString != nil { 1015 return *m.GroupString 1016 } 1017 return "" 1018 } 1019 1020 // For testing packed/non-packed decoder switching. 1021 // A serialized instance of one should be deserializable as the other. 1022 type NonPackedTest struct { 1023 A []int32 `protobuf:"varint,1,rep,name=a" json:"a,omitempty"` 1024 XXX_unrecognized []byte `json:"-"` 1025 } 1026 1027 func (m *NonPackedTest) Reset() { *m = NonPackedTest{} } 1028 func (m *NonPackedTest) String() string { return proto.CompactTextString(m) } 1029 func (*NonPackedTest) ProtoMessage() {} 1030 1031 func (m *NonPackedTest) GetA() []int32 { 1032 if m != nil { 1033 return m.A 1034 } 1035 return nil 1036 } 1037 1038 type PackedTest struct { 1039 B []int32 `protobuf:"varint,1,rep,packed,name=b" json:"b,omitempty"` 1040 XXX_unrecognized []byte `json:"-"` 1041 } 1042 1043 func (m *PackedTest) Reset() { *m = PackedTest{} } 1044 func (m *PackedTest) String() string { return proto.CompactTextString(m) } 1045 func (*PackedTest) ProtoMessage() {} 1046 1047 func (m *PackedTest) GetB() []int32 { 1048 if m != nil { 1049 return m.B 1050 } 1051 return nil 1052 } 1053 1054 type MaxTag struct { 1055 // Maximum possible tag number. 1056 LastField *string `protobuf:"bytes,536870911,opt,name=last_field" json:"last_field,omitempty"` 1057 XXX_unrecognized []byte `json:"-"` 1058 } 1059 1060 func (m *MaxTag) Reset() { *m = MaxTag{} } 1061 func (m *MaxTag) String() string { return proto.CompactTextString(m) } 1062 func (*MaxTag) ProtoMessage() {} 1063 1064 func (m *MaxTag) GetLastField() string { 1065 if m != nil && m.LastField != nil { 1066 return *m.LastField 1067 } 1068 return "" 1069 } 1070 1071 type OldMessage struct { 1072 Nested *OldMessage_Nested `protobuf:"bytes,1,opt,name=nested" json:"nested,omitempty"` 1073 XXX_unrecognized []byte `json:"-"` 1074 } 1075 1076 func (m *OldMessage) Reset() { *m = OldMessage{} } 1077 func (m *OldMessage) String() string { return proto.CompactTextString(m) } 1078 func (*OldMessage) ProtoMessage() {} 1079 1080 func (m *OldMessage) GetNested() *OldMessage_Nested { 1081 if m != nil { 1082 return m.Nested 1083 } 1084 return nil 1085 } 1086 1087 type OldMessage_Nested struct { 1088 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` 1089 XXX_unrecognized []byte `json:"-"` 1090 } 1091 1092 func (m *OldMessage_Nested) Reset() { *m = OldMessage_Nested{} } 1093 func (m *OldMessage_Nested) String() string { return proto.CompactTextString(m) } 1094 func (*OldMessage_Nested) ProtoMessage() {} 1095 1096 func (m *OldMessage_Nested) GetName() string { 1097 if m != nil && m.Name != nil { 1098 return *m.Name 1099 } 1100 return "" 1101 } 1102 1103 // NewMessage is wire compatible with OldMessage; 1104 // imagine it as a future version. 1105 type NewMessage struct { 1106 Nested *NewMessage_Nested `protobuf:"bytes,1,opt,name=nested" json:"nested,omitempty"` 1107 XXX_unrecognized []byte `json:"-"` 1108 } 1109 1110 func (m *NewMessage) Reset() { *m = NewMessage{} } 1111 func (m *NewMessage) String() string { return proto.CompactTextString(m) } 1112 func (*NewMessage) ProtoMessage() {} 1113 1114 func (m *NewMessage) GetNested() *NewMessage_Nested { 1115 if m != nil { 1116 return m.Nested 1117 } 1118 return nil 1119 } 1120 1121 type NewMessage_Nested struct { 1122 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` 1123 FoodGroup *string `protobuf:"bytes,2,opt,name=food_group" json:"food_group,omitempty"` 1124 XXX_unrecognized []byte `json:"-"` 1125 } 1126 1127 func (m *NewMessage_Nested) Reset() { *m = NewMessage_Nested{} } 1128 func (m *NewMessage_Nested) String() string { return proto.CompactTextString(m) } 1129 func (*NewMessage_Nested) ProtoMessage() {} 1130 1131 func (m *NewMessage_Nested) GetName() string { 1132 if m != nil && m.Name != nil { 1133 return *m.Name 1134 } 1135 return "" 1136 } 1137 1138 func (m *NewMessage_Nested) GetFoodGroup() string { 1139 if m != nil && m.FoodGroup != nil { 1140 return *m.FoodGroup 1141 } 1142 return "" 1143 } 1144 1145 type InnerMessage struct { 1146 Host *string `protobuf:"bytes,1,req,name=host" json:"host,omitempty"` 1147 Port *int32 `protobuf:"varint,2,opt,name=port,def=4000" json:"port,omitempty"` 1148 Connected *bool `protobuf:"varint,3,opt,name=connected" json:"connected,omitempty"` 1149 XXX_unrecognized []byte `json:"-"` 1150 } 1151 1152 func (m *InnerMessage) Reset() { *m = InnerMessage{} } 1153 func (m *InnerMessage) String() string { return proto.CompactTextString(m) } 1154 func (*InnerMessage) ProtoMessage() {} 1155 1156 const Default_InnerMessage_Port int32 = 4000 1157 1158 func (m *InnerMessage) GetHost() string { 1159 if m != nil && m.Host != nil { 1160 return *m.Host 1161 } 1162 return "" 1163 } 1164 1165 func (m *InnerMessage) GetPort() int32 { 1166 if m != nil && m.Port != nil { 1167 return *m.Port 1168 } 1169 return Default_InnerMessage_Port 1170 } 1171 1172 func (m *InnerMessage) GetConnected() bool { 1173 if m != nil && m.Connected != nil { 1174 return *m.Connected 1175 } 1176 return false 1177 } 1178 1179 type OtherMessage struct { 1180 Key *int64 `protobuf:"varint,1,opt,name=key" json:"key,omitempty"` 1181 Value []byte `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` 1182 Weight *float32 `protobuf:"fixed32,3,opt,name=weight" json:"weight,omitempty"` 1183 Inner *InnerMessage `protobuf:"bytes,4,opt,name=inner" json:"inner,omitempty"` 1184 XXX_unrecognized []byte `json:"-"` 1185 } 1186 1187 func (m *OtherMessage) Reset() { *m = OtherMessage{} } 1188 func (m *OtherMessage) String() string { return proto.CompactTextString(m) } 1189 func (*OtherMessage) ProtoMessage() {} 1190 1191 func (m *OtherMessage) GetKey() int64 { 1192 if m != nil && m.Key != nil { 1193 return *m.Key 1194 } 1195 return 0 1196 } 1197 1198 func (m *OtherMessage) GetValue() []byte { 1199 if m != nil { 1200 return m.Value 1201 } 1202 return nil 1203 } 1204 1205 func (m *OtherMessage) GetWeight() float32 { 1206 if m != nil && m.Weight != nil { 1207 return *m.Weight 1208 } 1209 return 0 1210 } 1211 1212 func (m *OtherMessage) GetInner() *InnerMessage { 1213 if m != nil { 1214 return m.Inner 1215 } 1216 return nil 1217 } 1218 1219 type MyMessage struct { 1220 Count *int32 `protobuf:"varint,1,req,name=count" json:"count,omitempty"` 1221 Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` 1222 Quote *string `protobuf:"bytes,3,opt,name=quote" json:"quote,omitempty"` 1223 Pet []string `protobuf:"bytes,4,rep,name=pet" json:"pet,omitempty"` 1224 Inner *InnerMessage `protobuf:"bytes,5,opt,name=inner" json:"inner,omitempty"` 1225 Others []*OtherMessage `protobuf:"bytes,6,rep,name=others" json:"others,omitempty"` 1226 RepInner []*InnerMessage `protobuf:"bytes,12,rep,name=rep_inner" json:"rep_inner,omitempty"` 1227 Bikeshed *MyMessage_Color `protobuf:"varint,7,opt,name=bikeshed,enum=testdata.MyMessage_Color" json:"bikeshed,omitempty"` 1228 Somegroup *MyMessage_SomeGroup `protobuf:"group,8,opt,name=SomeGroup" json:"somegroup,omitempty"` 1229 // This field becomes [][]byte in the generated code. 1230 RepBytes [][]byte `protobuf:"bytes,10,rep,name=rep_bytes" json:"rep_bytes,omitempty"` 1231 Bigfloat *float64 `protobuf:"fixed64,11,opt,name=bigfloat" json:"bigfloat,omitempty"` 1232 XXX_extensions map[int32]proto.Extension `json:"-"` 1233 XXX_unrecognized []byte `json:"-"` 1234 } 1235 1236 func (m *MyMessage) Reset() { *m = MyMessage{} } 1237 func (m *MyMessage) String() string { return proto.CompactTextString(m) } 1238 func (*MyMessage) ProtoMessage() {} 1239 1240 var extRange_MyMessage = []proto.ExtensionRange{ 1241 {100, 536870911}, 1242 } 1243 1244 func (*MyMessage) ExtensionRangeArray() []proto.ExtensionRange { 1245 return extRange_MyMessage 1246 } 1247 func (m *MyMessage) ExtensionMap() map[int32]proto.Extension { 1248 if m.XXX_extensions == nil { 1249 m.XXX_extensions = make(map[int32]proto.Extension) 1250 } 1251 return m.XXX_extensions 1252 } 1253 1254 func (m *MyMessage) GetCount() int32 { 1255 if m != nil && m.Count != nil { 1256 return *m.Count 1257 } 1258 return 0 1259 } 1260 1261 func (m *MyMessage) GetName() string { 1262 if m != nil && m.Name != nil { 1263 return *m.Name 1264 } 1265 return "" 1266 } 1267 1268 func (m *MyMessage) GetQuote() string { 1269 if m != nil && m.Quote != nil { 1270 return *m.Quote 1271 } 1272 return "" 1273 } 1274 1275 func (m *MyMessage) GetPet() []string { 1276 if m != nil { 1277 return m.Pet 1278 } 1279 return nil 1280 } 1281 1282 func (m *MyMessage) GetInner() *InnerMessage { 1283 if m != nil { 1284 return m.Inner 1285 } 1286 return nil 1287 } 1288 1289 func (m *MyMessage) GetOthers() []*OtherMessage { 1290 if m != nil { 1291 return m.Others 1292 } 1293 return nil 1294 } 1295 1296 func (m *MyMessage) GetRepInner() []*InnerMessage { 1297 if m != nil { 1298 return m.RepInner 1299 } 1300 return nil 1301 } 1302 1303 func (m *MyMessage) GetBikeshed() MyMessage_Color { 1304 if m != nil && m.Bikeshed != nil { 1305 return *m.Bikeshed 1306 } 1307 return MyMessage_RED 1308 } 1309 1310 func (m *MyMessage) GetSomegroup() *MyMessage_SomeGroup { 1311 if m != nil { 1312 return m.Somegroup 1313 } 1314 return nil 1315 } 1316 1317 func (m *MyMessage) GetRepBytes() [][]byte { 1318 if m != nil { 1319 return m.RepBytes 1320 } 1321 return nil 1322 } 1323 1324 func (m *MyMessage) GetBigfloat() float64 { 1325 if m != nil && m.Bigfloat != nil { 1326 return *m.Bigfloat 1327 } 1328 return 0 1329 } 1330 1331 type MyMessage_SomeGroup struct { 1332 GroupField *int32 `protobuf:"varint,9,opt,name=group_field" json:"group_field,omitempty"` 1333 XXX_unrecognized []byte `json:"-"` 1334 } 1335 1336 func (m *MyMessage_SomeGroup) Reset() { *m = MyMessage_SomeGroup{} } 1337 func (m *MyMessage_SomeGroup) String() string { return proto.CompactTextString(m) } 1338 func (*MyMessage_SomeGroup) ProtoMessage() {} 1339 1340 func (m *MyMessage_SomeGroup) GetGroupField() int32 { 1341 if m != nil && m.GroupField != nil { 1342 return *m.GroupField 1343 } 1344 return 0 1345 } 1346 1347 type Ext struct { 1348 Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"` 1349 XXX_unrecognized []byte `json:"-"` 1350 } 1351 1352 func (m *Ext) Reset() { *m = Ext{} } 1353 func (m *Ext) String() string { return proto.CompactTextString(m) } 1354 func (*Ext) ProtoMessage() {} 1355 1356 func (m *Ext) GetData() string { 1357 if m != nil && m.Data != nil { 1358 return *m.Data 1359 } 1360 return "" 1361 } 1362 1363 var E_Ext_More = &proto.ExtensionDesc{ 1364 ExtendedType: (*MyMessage)(nil), 1365 ExtensionType: (*Ext)(nil), 1366 Field: 103, 1367 Name: "testdata.Ext.more", 1368 Tag: "bytes,103,opt,name=more", 1369 } 1370 1371 var E_Ext_Text = &proto.ExtensionDesc{ 1372 ExtendedType: (*MyMessage)(nil), 1373 ExtensionType: (*string)(nil), 1374 Field: 104, 1375 Name: "testdata.Ext.text", 1376 Tag: "bytes,104,opt,name=text", 1377 } 1378 1379 var E_Ext_Number = &proto.ExtensionDesc{ 1380 ExtendedType: (*MyMessage)(nil), 1381 ExtensionType: (*int32)(nil), 1382 Field: 105, 1383 Name: "testdata.Ext.number", 1384 Tag: "varint,105,opt,name=number", 1385 } 1386 1387 type MyMessageSet struct { 1388 XXX_extensions map[int32]proto.Extension `json:"-"` 1389 XXX_unrecognized []byte `json:"-"` 1390 } 1391 1392 func (m *MyMessageSet) Reset() { *m = MyMessageSet{} } 1393 func (m *MyMessageSet) String() string { return proto.CompactTextString(m) } 1394 func (*MyMessageSet) ProtoMessage() {} 1395 1396 func (m *MyMessageSet) Marshal() ([]byte, error) { 1397 return proto.MarshalMessageSet(m.ExtensionMap()) 1398 } 1399 func (m *MyMessageSet) Unmarshal(buf []byte) error { 1400 return proto.UnmarshalMessageSet(buf, m.ExtensionMap()) 1401 } 1402 1403 // ensure MyMessageSet satisfies proto.Marshaler and proto.Unmarshaler 1404 var _ proto.Marshaler = (*MyMessageSet)(nil) 1405 var _ proto.Unmarshaler = (*MyMessageSet)(nil) 1406 1407 var extRange_MyMessageSet = []proto.ExtensionRange{ 1408 {100, 2147483646}, 1409 } 1410 1411 func (*MyMessageSet) ExtensionRangeArray() []proto.ExtensionRange { 1412 return extRange_MyMessageSet 1413 } 1414 func (m *MyMessageSet) ExtensionMap() map[int32]proto.Extension { 1415 if m.XXX_extensions == nil { 1416 m.XXX_extensions = make(map[int32]proto.Extension) 1417 } 1418 return m.XXX_extensions 1419 } 1420 1421 type Empty struct { 1422 XXX_unrecognized []byte `json:"-"` 1423 } 1424 1425 func (m *Empty) Reset() { *m = Empty{} } 1426 func (m *Empty) String() string { return proto.CompactTextString(m) } 1427 func (*Empty) ProtoMessage() {} 1428 1429 type MessageList struct { 1430 Message []*MessageList_Message `protobuf:"group,1,rep" json:"message,omitempty"` 1431 XXX_unrecognized []byte `json:"-"` 1432 } 1433 1434 func (m *MessageList) Reset() { *m = MessageList{} } 1435 func (m *MessageList) String() string { return proto.CompactTextString(m) } 1436 func (*MessageList) ProtoMessage() {} 1437 1438 func (m *MessageList) GetMessage() []*MessageList_Message { 1439 if m != nil { 1440 return m.Message 1441 } 1442 return nil 1443 } 1444 1445 type MessageList_Message struct { 1446 Name *string `protobuf:"bytes,2,req,name=name" json:"name,omitempty"` 1447 Count *int32 `protobuf:"varint,3,req,name=count" json:"count,omitempty"` 1448 XXX_unrecognized []byte `json:"-"` 1449 } 1450 1451 func (m *MessageList_Message) Reset() { *m = MessageList_Message{} } 1452 func (m *MessageList_Message) String() string { return proto.CompactTextString(m) } 1453 func (*MessageList_Message) ProtoMessage() {} 1454 1455 func (m *MessageList_Message) GetName() string { 1456 if m != nil && m.Name != nil { 1457 return *m.Name 1458 } 1459 return "" 1460 } 1461 1462 func (m *MessageList_Message) GetCount() int32 { 1463 if m != nil && m.Count != nil { 1464 return *m.Count 1465 } 1466 return 0 1467 } 1468 1469 type Strings struct { 1470 StringField *string `protobuf:"bytes,1,opt,name=string_field" json:"string_field,omitempty"` 1471 BytesField []byte `protobuf:"bytes,2,opt,name=bytes_field" json:"bytes_field,omitempty"` 1472 XXX_unrecognized []byte `json:"-"` 1473 } 1474 1475 func (m *Strings) Reset() { *m = Strings{} } 1476 func (m *Strings) String() string { return proto.CompactTextString(m) } 1477 func (*Strings) ProtoMessage() {} 1478 1479 func (m *Strings) GetStringField() string { 1480 if m != nil && m.StringField != nil { 1481 return *m.StringField 1482 } 1483 return "" 1484 } 1485 1486 func (m *Strings) GetBytesField() []byte { 1487 if m != nil { 1488 return m.BytesField 1489 } 1490 return nil 1491 } 1492 1493 type Defaults struct { 1494 // Default-valued fields of all basic types. 1495 // Same as GoTest, but copied here to make testing easier. 1496 F_Bool *bool `protobuf:"varint,1,opt,def=1" json:"F_Bool,omitempty"` 1497 F_Int32 *int32 `protobuf:"varint,2,opt,def=32" json:"F_Int32,omitempty"` 1498 F_Int64 *int64 `protobuf:"varint,3,opt,def=64" json:"F_Int64,omitempty"` 1499 F_Fixed32 *uint32 `protobuf:"fixed32,4,opt,def=320" json:"F_Fixed32,omitempty"` 1500 F_Fixed64 *uint64 `protobuf:"fixed64,5,opt,def=640" json:"F_Fixed64,omitempty"` 1501 F_Uint32 *uint32 `protobuf:"varint,6,opt,def=3200" json:"F_Uint32,omitempty"` 1502 F_Uint64 *uint64 `protobuf:"varint,7,opt,def=6400" json:"F_Uint64,omitempty"` 1503 F_Float *float32 `protobuf:"fixed32,8,opt,def=314159" json:"F_Float,omitempty"` 1504 F_Double *float64 `protobuf:"fixed64,9,opt,def=271828" json:"F_Double,omitempty"` 1505 F_String *string `protobuf:"bytes,10,opt,def=hello, \"world!\"\n" json:"F_String,omitempty"` 1506 F_Bytes []byte `protobuf:"bytes,11,opt,def=Bignose" json:"F_Bytes,omitempty"` 1507 F_Sint32 *int32 `protobuf:"zigzag32,12,opt,def=-32" json:"F_Sint32,omitempty"` 1508 F_Sint64 *int64 `protobuf:"zigzag64,13,opt,def=-64" json:"F_Sint64,omitempty"` 1509 F_Enum *Defaults_Color `protobuf:"varint,14,opt,enum=testdata.Defaults_Color,def=1" json:"F_Enum,omitempty"` 1510 // More fields with crazy defaults. 1511 F_Pinf *float32 `protobuf:"fixed32,15,opt,def=inf" json:"F_Pinf,omitempty"` 1512 F_Ninf *float32 `protobuf:"fixed32,16,opt,def=-inf" json:"F_Ninf,omitempty"` 1513 F_Nan *float32 `protobuf:"fixed32,17,opt,def=nan" json:"F_Nan,omitempty"` 1514 // Sub-message. 1515 Sub *SubDefaults `protobuf:"bytes,18,opt,name=sub" json:"sub,omitempty"` 1516 XXX_unrecognized []byte `json:"-"` 1517 } 1518 1519 func (m *Defaults) Reset() { *m = Defaults{} } 1520 func (m *Defaults) String() string { return proto.CompactTextString(m) } 1521 func (*Defaults) ProtoMessage() {} 1522 1523 const Default_Defaults_F_Bool bool = true 1524 const Default_Defaults_F_Int32 int32 = 32 1525 const Default_Defaults_F_Int64 int64 = 64 1526 const Default_Defaults_F_Fixed32 uint32 = 320 1527 const Default_Defaults_F_Fixed64 uint64 = 640 1528 const Default_Defaults_F_Uint32 uint32 = 3200 1529 const Default_Defaults_F_Uint64 uint64 = 6400 1530 const Default_Defaults_F_Float float32 = 314159 1531 const Default_Defaults_F_Double float64 = 271828 1532 const Default_Defaults_F_String string = "hello, \"world!\"\n" 1533 1534 var Default_Defaults_F_Bytes []byte = []byte("Bignose") 1535 1536 const Default_Defaults_F_Sint32 int32 = -32 1537 const Default_Defaults_F_Sint64 int64 = -64 1538 const Default_Defaults_F_Enum Defaults_Color = Defaults_GREEN 1539 1540 var Default_Defaults_F_Pinf float32 = float32(math.Inf(1)) 1541 var Default_Defaults_F_Ninf float32 = float32(math.Inf(-1)) 1542 var Default_Defaults_F_Nan float32 = float32(math.NaN()) 1543 1544 func (m *Defaults) GetF_Bool() bool { 1545 if m != nil && m.F_Bool != nil { 1546 return *m.F_Bool 1547 } 1548 return Default_Defaults_F_Bool 1549 } 1550 1551 func (m *Defaults) GetF_Int32() int32 { 1552 if m != nil && m.F_Int32 != nil { 1553 return *m.F_Int32 1554 } 1555 return Default_Defaults_F_Int32 1556 } 1557 1558 func (m *Defaults) GetF_Int64() int64 { 1559 if m != nil && m.F_Int64 != nil { 1560 return *m.F_Int64 1561 } 1562 return Default_Defaults_F_Int64 1563 } 1564 1565 func (m *Defaults) GetF_Fixed32() uint32 { 1566 if m != nil && m.F_Fixed32 != nil { 1567 return *m.F_Fixed32 1568 } 1569 return Default_Defaults_F_Fixed32 1570 } 1571 1572 func (m *Defaults) GetF_Fixed64() uint64 { 1573 if m != nil && m.F_Fixed64 != nil { 1574 return *m.F_Fixed64 1575 } 1576 return Default_Defaults_F_Fixed64 1577 } 1578 1579 func (m *Defaults) GetF_Uint32() uint32 { 1580 if m != nil && m.F_Uint32 != nil { 1581 return *m.F_Uint32 1582 } 1583 return Default_Defaults_F_Uint32 1584 } 1585 1586 func (m *Defaults) GetF_Uint64() uint64 { 1587 if m != nil && m.F_Uint64 != nil { 1588 return *m.F_Uint64 1589 } 1590 return Default_Defaults_F_Uint64 1591 } 1592 1593 func (m *Defaults) GetF_Float() float32 { 1594 if m != nil && m.F_Float != nil { 1595 return *m.F_Float 1596 } 1597 return Default_Defaults_F_Float 1598 } 1599 1600 func (m *Defaults) GetF_Double() float64 { 1601 if m != nil && m.F_Double != nil { 1602 return *m.F_Double 1603 } 1604 return Default_Defaults_F_Double 1605 } 1606 1607 func (m *Defaults) GetF_String() string { 1608 if m != nil && m.F_String != nil { 1609 return *m.F_String 1610 } 1611 return Default_Defaults_F_String 1612 } 1613 1614 func (m *Defaults) GetF_Bytes() []byte { 1615 if m != nil && m.F_Bytes != nil { 1616 return m.F_Bytes 1617 } 1618 return append([]byte(nil), Default_Defaults_F_Bytes...) 1619 } 1620 1621 func (m *Defaults) GetF_Sint32() int32 { 1622 if m != nil && m.F_Sint32 != nil { 1623 return *m.F_Sint32 1624 } 1625 return Default_Defaults_F_Sint32 1626 } 1627 1628 func (m *Defaults) GetF_Sint64() int64 { 1629 if m != nil && m.F_Sint64 != nil { 1630 return *m.F_Sint64 1631 } 1632 return Default_Defaults_F_Sint64 1633 } 1634 1635 func (m *Defaults) GetF_Enum() Defaults_Color { 1636 if m != nil && m.F_Enum != nil { 1637 return *m.F_Enum 1638 } 1639 return Default_Defaults_F_Enum 1640 } 1641 1642 func (m *Defaults) GetF_Pinf() float32 { 1643 if m != nil && m.F_Pinf != nil { 1644 return *m.F_Pinf 1645 } 1646 return Default_Defaults_F_Pinf 1647 } 1648 1649 func (m *Defaults) GetF_Ninf() float32 { 1650 if m != nil && m.F_Ninf != nil { 1651 return *m.F_Ninf 1652 } 1653 return Default_Defaults_F_Ninf 1654 } 1655 1656 func (m *Defaults) GetF_Nan() float32 { 1657 if m != nil && m.F_Nan != nil { 1658 return *m.F_Nan 1659 } 1660 return Default_Defaults_F_Nan 1661 } 1662 1663 func (m *Defaults) GetSub() *SubDefaults { 1664 if m != nil { 1665 return m.Sub 1666 } 1667 return nil 1668 } 1669 1670 type SubDefaults struct { 1671 N *int64 `protobuf:"varint,1,opt,name=n,def=7" json:"n,omitempty"` 1672 XXX_unrecognized []byte `json:"-"` 1673 } 1674 1675 func (m *SubDefaults) Reset() { *m = SubDefaults{} } 1676 func (m *SubDefaults) String() string { return proto.CompactTextString(m) } 1677 func (*SubDefaults) ProtoMessage() {} 1678 1679 const Default_SubDefaults_N int64 = 7 1680 1681 func (m *SubDefaults) GetN() int64 { 1682 if m != nil && m.N != nil { 1683 return *m.N 1684 } 1685 return Default_SubDefaults_N 1686 } 1687 1688 type RepeatedEnum struct { 1689 Color []RepeatedEnum_Color `protobuf:"varint,1,rep,name=color,enum=testdata.RepeatedEnum_Color" json:"color,omitempty"` 1690 XXX_unrecognized []byte `json:"-"` 1691 } 1692 1693 func (m *RepeatedEnum) Reset() { *m = RepeatedEnum{} } 1694 func (m *RepeatedEnum) String() string { return proto.CompactTextString(m) } 1695 func (*RepeatedEnum) ProtoMessage() {} 1696 1697 func (m *RepeatedEnum) GetColor() []RepeatedEnum_Color { 1698 if m != nil { 1699 return m.Color 1700 } 1701 return nil 1702 } 1703 1704 type MoreRepeated struct { 1705 Bools []bool `protobuf:"varint,1,rep,name=bools" json:"bools,omitempty"` 1706 BoolsPacked []bool `protobuf:"varint,2,rep,packed,name=bools_packed" json:"bools_packed,omitempty"` 1707 Ints []int32 `protobuf:"varint,3,rep,name=ints" json:"ints,omitempty"` 1708 IntsPacked []int32 `protobuf:"varint,4,rep,packed,name=ints_packed" json:"ints_packed,omitempty"` 1709 Int64SPacked []int64 `protobuf:"varint,7,rep,packed,name=int64s_packed" json:"int64s_packed,omitempty"` 1710 Strings []string `protobuf:"bytes,5,rep,name=strings" json:"strings,omitempty"` 1711 Fixeds []uint32 `protobuf:"fixed32,6,rep,name=fixeds" json:"fixeds,omitempty"` 1712 XXX_unrecognized []byte `json:"-"` 1713 } 1714 1715 func (m *MoreRepeated) Reset() { *m = MoreRepeated{} } 1716 func (m *MoreRepeated) String() string { return proto.CompactTextString(m) } 1717 func (*MoreRepeated) ProtoMessage() {} 1718 1719 func (m *MoreRepeated) GetBools() []bool { 1720 if m != nil { 1721 return m.Bools 1722 } 1723 return nil 1724 } 1725 1726 func (m *MoreRepeated) GetBoolsPacked() []bool { 1727 if m != nil { 1728 return m.BoolsPacked 1729 } 1730 return nil 1731 } 1732 1733 func (m *MoreRepeated) GetInts() []int32 { 1734 if m != nil { 1735 return m.Ints 1736 } 1737 return nil 1738 } 1739 1740 func (m *MoreRepeated) GetIntsPacked() []int32 { 1741 if m != nil { 1742 return m.IntsPacked 1743 } 1744 return nil 1745 } 1746 1747 func (m *MoreRepeated) GetInt64SPacked() []int64 { 1748 if m != nil { 1749 return m.Int64SPacked 1750 } 1751 return nil 1752 } 1753 1754 func (m *MoreRepeated) GetStrings() []string { 1755 if m != nil { 1756 return m.Strings 1757 } 1758 return nil 1759 } 1760 1761 func (m *MoreRepeated) GetFixeds() []uint32 { 1762 if m != nil { 1763 return m.Fixeds 1764 } 1765 return nil 1766 } 1767 1768 type GroupOld struct { 1769 G *GroupOld_G `protobuf:"group,101,opt" json:"g,omitempty"` 1770 XXX_unrecognized []byte `json:"-"` 1771 } 1772 1773 func (m *GroupOld) Reset() { *m = GroupOld{} } 1774 func (m *GroupOld) String() string { return proto.CompactTextString(m) } 1775 func (*GroupOld) ProtoMessage() {} 1776 1777 func (m *GroupOld) GetG() *GroupOld_G { 1778 if m != nil { 1779 return m.G 1780 } 1781 return nil 1782 } 1783 1784 type GroupOld_G struct { 1785 X *int32 `protobuf:"varint,2,opt,name=x" json:"x,omitempty"` 1786 XXX_unrecognized []byte `json:"-"` 1787 } 1788 1789 func (m *GroupOld_G) Reset() { *m = GroupOld_G{} } 1790 func (m *GroupOld_G) String() string { return proto.CompactTextString(m) } 1791 func (*GroupOld_G) ProtoMessage() {} 1792 1793 func (m *GroupOld_G) GetX() int32 { 1794 if m != nil && m.X != nil { 1795 return *m.X 1796 } 1797 return 0 1798 } 1799 1800 type GroupNew struct { 1801 G *GroupNew_G `protobuf:"group,101,opt" json:"g,omitempty"` 1802 XXX_unrecognized []byte `json:"-"` 1803 } 1804 1805 func (m *GroupNew) Reset() { *m = GroupNew{} } 1806 func (m *GroupNew) String() string { return proto.CompactTextString(m) } 1807 func (*GroupNew) ProtoMessage() {} 1808 1809 func (m *GroupNew) GetG() *GroupNew_G { 1810 if m != nil { 1811 return m.G 1812 } 1813 return nil 1814 } 1815 1816 type GroupNew_G struct { 1817 X *int32 `protobuf:"varint,2,opt,name=x" json:"x,omitempty"` 1818 Y *int32 `protobuf:"varint,3,opt,name=y" json:"y,omitempty"` 1819 XXX_unrecognized []byte `json:"-"` 1820 } 1821 1822 func (m *GroupNew_G) Reset() { *m = GroupNew_G{} } 1823 func (m *GroupNew_G) String() string { return proto.CompactTextString(m) } 1824 func (*GroupNew_G) ProtoMessage() {} 1825 1826 func (m *GroupNew_G) GetX() int32 { 1827 if m != nil && m.X != nil { 1828 return *m.X 1829 } 1830 return 0 1831 } 1832 1833 func (m *GroupNew_G) GetY() int32 { 1834 if m != nil && m.Y != nil { 1835 return *m.Y 1836 } 1837 return 0 1838 } 1839 1840 type FloatingPoint struct { 1841 F *float64 `protobuf:"fixed64,1,req,name=f" json:"f,omitempty"` 1842 XXX_unrecognized []byte `json:"-"` 1843 } 1844 1845 func (m *FloatingPoint) Reset() { *m = FloatingPoint{} } 1846 func (m *FloatingPoint) String() string { return proto.CompactTextString(m) } 1847 func (*FloatingPoint) ProtoMessage() {} 1848 1849 func (m *FloatingPoint) GetF() float64 { 1850 if m != nil && m.F != nil { 1851 return *m.F 1852 } 1853 return 0 1854 } 1855 1856 var E_Greeting = &proto.ExtensionDesc{ 1857 ExtendedType: (*MyMessage)(nil), 1858 ExtensionType: ([]string)(nil), 1859 Field: 106, 1860 Name: "testdata.greeting", 1861 Tag: "bytes,106,rep,name=greeting", 1862 } 1863 1864 var E_X201 = &proto.ExtensionDesc{ 1865 ExtendedType: (*MyMessageSet)(nil), 1866 ExtensionType: (*Empty)(nil), 1867 Field: 201, 1868 Name: "testdata.x201", 1869 Tag: "bytes,201,opt,name=x201", 1870 } 1871 1872 var E_X202 = &proto.ExtensionDesc{ 1873 ExtendedType: (*MyMessageSet)(nil), 1874 ExtensionType: (*Empty)(nil), 1875 Field: 202, 1876 Name: "testdata.x202", 1877 Tag: "bytes,202,opt,name=x202", 1878 } 1879 1880 var E_X203 = &proto.ExtensionDesc{ 1881 ExtendedType: (*MyMessageSet)(nil), 1882 ExtensionType: (*Empty)(nil), 1883 Field: 203, 1884 Name: "testdata.x203", 1885 Tag: "bytes,203,opt,name=x203", 1886 } 1887 1888 var E_X204 = &proto.ExtensionDesc{ 1889 ExtendedType: (*MyMessageSet)(nil), 1890 ExtensionType: (*Empty)(nil), 1891 Field: 204, 1892 Name: "testdata.x204", 1893 Tag: "bytes,204,opt,name=x204", 1894 } 1895 1896 var E_X205 = &proto.ExtensionDesc{ 1897 ExtendedType: (*MyMessageSet)(nil), 1898 ExtensionType: (*Empty)(nil), 1899 Field: 205, 1900 Name: "testdata.x205", 1901 Tag: "bytes,205,opt,name=x205", 1902 } 1903 1904 var E_X206 = &proto.ExtensionDesc{ 1905 ExtendedType: (*MyMessageSet)(nil), 1906 ExtensionType: (*Empty)(nil), 1907 Field: 206, 1908 Name: "testdata.x206", 1909 Tag: "bytes,206,opt,name=x206", 1910 } 1911 1912 var E_X207 = &proto.ExtensionDesc{ 1913 ExtendedType: (*MyMessageSet)(nil), 1914 ExtensionType: (*Empty)(nil), 1915 Field: 207, 1916 Name: "testdata.x207", 1917 Tag: "bytes,207,opt,name=x207", 1918 } 1919 1920 var E_X208 = &proto.ExtensionDesc{ 1921 ExtendedType: (*MyMessageSet)(nil), 1922 ExtensionType: (*Empty)(nil), 1923 Field: 208, 1924 Name: "testdata.x208", 1925 Tag: "bytes,208,opt,name=x208", 1926 } 1927 1928 var E_X209 = &proto.ExtensionDesc{ 1929 ExtendedType: (*MyMessageSet)(nil), 1930 ExtensionType: (*Empty)(nil), 1931 Field: 209, 1932 Name: "testdata.x209", 1933 Tag: "bytes,209,opt,name=x209", 1934 } 1935 1936 var E_X210 = &proto.ExtensionDesc{ 1937 ExtendedType: (*MyMessageSet)(nil), 1938 ExtensionType: (*Empty)(nil), 1939 Field: 210, 1940 Name: "testdata.x210", 1941 Tag: "bytes,210,opt,name=x210", 1942 } 1943 1944 var E_X211 = &proto.ExtensionDesc{ 1945 ExtendedType: (*MyMessageSet)(nil), 1946 ExtensionType: (*Empty)(nil), 1947 Field: 211, 1948 Name: "testdata.x211", 1949 Tag: "bytes,211,opt,name=x211", 1950 } 1951 1952 var E_X212 = &proto.ExtensionDesc{ 1953 ExtendedType: (*MyMessageSet)(nil), 1954 ExtensionType: (*Empty)(nil), 1955 Field: 212, 1956 Name: "testdata.x212", 1957 Tag: "bytes,212,opt,name=x212", 1958 } 1959 1960 var E_X213 = &proto.ExtensionDesc{ 1961 ExtendedType: (*MyMessageSet)(nil), 1962 ExtensionType: (*Empty)(nil), 1963 Field: 213, 1964 Name: "testdata.x213", 1965 Tag: "bytes,213,opt,name=x213", 1966 } 1967 1968 var E_X214 = &proto.ExtensionDesc{ 1969 ExtendedType: (*MyMessageSet)(nil), 1970 ExtensionType: (*Empty)(nil), 1971 Field: 214, 1972 Name: "testdata.x214", 1973 Tag: "bytes,214,opt,name=x214", 1974 } 1975 1976 var E_X215 = &proto.ExtensionDesc{ 1977 ExtendedType: (*MyMessageSet)(nil), 1978 ExtensionType: (*Empty)(nil), 1979 Field: 215, 1980 Name: "testdata.x215", 1981 Tag: "bytes,215,opt,name=x215", 1982 } 1983 1984 var E_X216 = &proto.ExtensionDesc{ 1985 ExtendedType: (*MyMessageSet)(nil), 1986 ExtensionType: (*Empty)(nil), 1987 Field: 216, 1988 Name: "testdata.x216", 1989 Tag: "bytes,216,opt,name=x216", 1990 } 1991 1992 var E_X217 = &proto.ExtensionDesc{ 1993 ExtendedType: (*MyMessageSet)(nil), 1994 ExtensionType: (*Empty)(nil), 1995 Field: 217, 1996 Name: "testdata.x217", 1997 Tag: "bytes,217,opt,name=x217", 1998 } 1999 2000 var E_X218 = &proto.ExtensionDesc{ 2001 ExtendedType: (*MyMessageSet)(nil), 2002 ExtensionType: (*Empty)(nil), 2003 Field: 218, 2004 Name: "testdata.x218", 2005 Tag: "bytes,218,opt,name=x218", 2006 } 2007 2008 var E_X219 = &proto.ExtensionDesc{ 2009 ExtendedType: (*MyMessageSet)(nil), 2010 ExtensionType: (*Empty)(nil), 2011 Field: 219, 2012 Name: "testdata.x219", 2013 Tag: "bytes,219,opt,name=x219", 2014 } 2015 2016 var E_X220 = &proto.ExtensionDesc{ 2017 ExtendedType: (*MyMessageSet)(nil), 2018 ExtensionType: (*Empty)(nil), 2019 Field: 220, 2020 Name: "testdata.x220", 2021 Tag: "bytes,220,opt,name=x220", 2022 } 2023 2024 var E_X221 = &proto.ExtensionDesc{ 2025 ExtendedType: (*MyMessageSet)(nil), 2026 ExtensionType: (*Empty)(nil), 2027 Field: 221, 2028 Name: "testdata.x221", 2029 Tag: "bytes,221,opt,name=x221", 2030 } 2031 2032 var E_X222 = &proto.ExtensionDesc{ 2033 ExtendedType: (*MyMessageSet)(nil), 2034 ExtensionType: (*Empty)(nil), 2035 Field: 222, 2036 Name: "testdata.x222", 2037 Tag: "bytes,222,opt,name=x222", 2038 } 2039 2040 var E_X223 = &proto.ExtensionDesc{ 2041 ExtendedType: (*MyMessageSet)(nil), 2042 ExtensionType: (*Empty)(nil), 2043 Field: 223, 2044 Name: "testdata.x223", 2045 Tag: "bytes,223,opt,name=x223", 2046 } 2047 2048 var E_X224 = &proto.ExtensionDesc{ 2049 ExtendedType: (*MyMessageSet)(nil), 2050 ExtensionType: (*Empty)(nil), 2051 Field: 224, 2052 Name: "testdata.x224", 2053 Tag: "bytes,224,opt,name=x224", 2054 } 2055 2056 var E_X225 = &proto.ExtensionDesc{ 2057 ExtendedType: (*MyMessageSet)(nil), 2058 ExtensionType: (*Empty)(nil), 2059 Field: 225, 2060 Name: "testdata.x225", 2061 Tag: "bytes,225,opt,name=x225", 2062 } 2063 2064 var E_X226 = &proto.ExtensionDesc{ 2065 ExtendedType: (*MyMessageSet)(nil), 2066 ExtensionType: (*Empty)(nil), 2067 Field: 226, 2068 Name: "testdata.x226", 2069 Tag: "bytes,226,opt,name=x226", 2070 } 2071 2072 var E_X227 = &proto.ExtensionDesc{ 2073 ExtendedType: (*MyMessageSet)(nil), 2074 ExtensionType: (*Empty)(nil), 2075 Field: 227, 2076 Name: "testdata.x227", 2077 Tag: "bytes,227,opt,name=x227", 2078 } 2079 2080 var E_X228 = &proto.ExtensionDesc{ 2081 ExtendedType: (*MyMessageSet)(nil), 2082 ExtensionType: (*Empty)(nil), 2083 Field: 228, 2084 Name: "testdata.x228", 2085 Tag: "bytes,228,opt,name=x228", 2086 } 2087 2088 var E_X229 = &proto.ExtensionDesc{ 2089 ExtendedType: (*MyMessageSet)(nil), 2090 ExtensionType: (*Empty)(nil), 2091 Field: 229, 2092 Name: "testdata.x229", 2093 Tag: "bytes,229,opt,name=x229", 2094 } 2095 2096 var E_X230 = &proto.ExtensionDesc{ 2097 ExtendedType: (*MyMessageSet)(nil), 2098 ExtensionType: (*Empty)(nil), 2099 Field: 230, 2100 Name: "testdata.x230", 2101 Tag: "bytes,230,opt,name=x230", 2102 } 2103 2104 var E_X231 = &proto.ExtensionDesc{ 2105 ExtendedType: (*MyMessageSet)(nil), 2106 ExtensionType: (*Empty)(nil), 2107 Field: 231, 2108 Name: "testdata.x231", 2109 Tag: "bytes,231,opt,name=x231", 2110 } 2111 2112 var E_X232 = &proto.ExtensionDesc{ 2113 ExtendedType: (*MyMessageSet)(nil), 2114 ExtensionType: (*Empty)(nil), 2115 Field: 232, 2116 Name: "testdata.x232", 2117 Tag: "bytes,232,opt,name=x232", 2118 } 2119 2120 var E_X233 = &proto.ExtensionDesc{ 2121 ExtendedType: (*MyMessageSet)(nil), 2122 ExtensionType: (*Empty)(nil), 2123 Field: 233, 2124 Name: "testdata.x233", 2125 Tag: "bytes,233,opt,name=x233", 2126 } 2127 2128 var E_X234 = &proto.ExtensionDesc{ 2129 ExtendedType: (*MyMessageSet)(nil), 2130 ExtensionType: (*Empty)(nil), 2131 Field: 234, 2132 Name: "testdata.x234", 2133 Tag: "bytes,234,opt,name=x234", 2134 } 2135 2136 var E_X235 = &proto.ExtensionDesc{ 2137 ExtendedType: (*MyMessageSet)(nil), 2138 ExtensionType: (*Empty)(nil), 2139 Field: 235, 2140 Name: "testdata.x235", 2141 Tag: "bytes,235,opt,name=x235", 2142 } 2143 2144 var E_X236 = &proto.ExtensionDesc{ 2145 ExtendedType: (*MyMessageSet)(nil), 2146 ExtensionType: (*Empty)(nil), 2147 Field: 236, 2148 Name: "testdata.x236", 2149 Tag: "bytes,236,opt,name=x236", 2150 } 2151 2152 var E_X237 = &proto.ExtensionDesc{ 2153 ExtendedType: (*MyMessageSet)(nil), 2154 ExtensionType: (*Empty)(nil), 2155 Field: 237, 2156 Name: "testdata.x237", 2157 Tag: "bytes,237,opt,name=x237", 2158 } 2159 2160 var E_X238 = &proto.ExtensionDesc{ 2161 ExtendedType: (*MyMessageSet)(nil), 2162 ExtensionType: (*Empty)(nil), 2163 Field: 238, 2164 Name: "testdata.x238", 2165 Tag: "bytes,238,opt,name=x238", 2166 } 2167 2168 var E_X239 = &proto.ExtensionDesc{ 2169 ExtendedType: (*MyMessageSet)(nil), 2170 ExtensionType: (*Empty)(nil), 2171 Field: 239, 2172 Name: "testdata.x239", 2173 Tag: "bytes,239,opt,name=x239", 2174 } 2175 2176 var E_X240 = &proto.ExtensionDesc{ 2177 ExtendedType: (*MyMessageSet)(nil), 2178 ExtensionType: (*Empty)(nil), 2179 Field: 240, 2180 Name: "testdata.x240", 2181 Tag: "bytes,240,opt,name=x240", 2182 } 2183 2184 var E_X241 = &proto.ExtensionDesc{ 2185 ExtendedType: (*MyMessageSet)(nil), 2186 ExtensionType: (*Empty)(nil), 2187 Field: 241, 2188 Name: "testdata.x241", 2189 Tag: "bytes,241,opt,name=x241", 2190 } 2191 2192 var E_X242 = &proto.ExtensionDesc{ 2193 ExtendedType: (*MyMessageSet)(nil), 2194 ExtensionType: (*Empty)(nil), 2195 Field: 242, 2196 Name: "testdata.x242", 2197 Tag: "bytes,242,opt,name=x242", 2198 } 2199 2200 var E_X243 = &proto.ExtensionDesc{ 2201 ExtendedType: (*MyMessageSet)(nil), 2202 ExtensionType: (*Empty)(nil), 2203 Field: 243, 2204 Name: "testdata.x243", 2205 Tag: "bytes,243,opt,name=x243", 2206 } 2207 2208 var E_X244 = &proto.ExtensionDesc{ 2209 ExtendedType: (*MyMessageSet)(nil), 2210 ExtensionType: (*Empty)(nil), 2211 Field: 244, 2212 Name: "testdata.x244", 2213 Tag: "bytes,244,opt,name=x244", 2214 } 2215 2216 var E_X245 = &proto.ExtensionDesc{ 2217 ExtendedType: (*MyMessageSet)(nil), 2218 ExtensionType: (*Empty)(nil), 2219 Field: 245, 2220 Name: "testdata.x245", 2221 Tag: "bytes,245,opt,name=x245", 2222 } 2223 2224 var E_X246 = &proto.ExtensionDesc{ 2225 ExtendedType: (*MyMessageSet)(nil), 2226 ExtensionType: (*Empty)(nil), 2227 Field: 246, 2228 Name: "testdata.x246", 2229 Tag: "bytes,246,opt,name=x246", 2230 } 2231 2232 var E_X247 = &proto.ExtensionDesc{ 2233 ExtendedType: (*MyMessageSet)(nil), 2234 ExtensionType: (*Empty)(nil), 2235 Field: 247, 2236 Name: "testdata.x247", 2237 Tag: "bytes,247,opt,name=x247", 2238 } 2239 2240 var E_X248 = &proto.ExtensionDesc{ 2241 ExtendedType: (*MyMessageSet)(nil), 2242 ExtensionType: (*Empty)(nil), 2243 Field: 248, 2244 Name: "testdata.x248", 2245 Tag: "bytes,248,opt,name=x248", 2246 } 2247 2248 var E_X249 = &proto.ExtensionDesc{ 2249 ExtendedType: (*MyMessageSet)(nil), 2250 ExtensionType: (*Empty)(nil), 2251 Field: 249, 2252 Name: "testdata.x249", 2253 Tag: "bytes,249,opt,name=x249", 2254 } 2255 2256 var E_X250 = &proto.ExtensionDesc{ 2257 ExtendedType: (*MyMessageSet)(nil), 2258 ExtensionType: (*Empty)(nil), 2259 Field: 250, 2260 Name: "testdata.x250", 2261 Tag: "bytes,250,opt,name=x250", 2262 } 2263 2264 func init() { 2265 proto.RegisterEnum("testdata.FOO", FOO_name, FOO_value) 2266 proto.RegisterEnum("testdata.GoTest_KIND", GoTest_KIND_name, GoTest_KIND_value) 2267 proto.RegisterEnum("testdata.MyMessage_Color", MyMessage_Color_name, MyMessage_Color_value) 2268 proto.RegisterEnum("testdata.Defaults_Color", Defaults_Color_name, Defaults_Color_value) 2269 proto.RegisterEnum("testdata.RepeatedEnum_Color", RepeatedEnum_Color_name, RepeatedEnum_Color_value) 2270 proto.RegisterExtension(E_Ext_More) 2271 proto.RegisterExtension(E_Ext_Text) 2272 proto.RegisterExtension(E_Ext_Number) 2273 proto.RegisterExtension(E_Greeting) 2274 proto.RegisterExtension(E_X201) 2275 proto.RegisterExtension(E_X202) 2276 proto.RegisterExtension(E_X203) 2277 proto.RegisterExtension(E_X204) 2278 proto.RegisterExtension(E_X205) 2279 proto.RegisterExtension(E_X206) 2280 proto.RegisterExtension(E_X207) 2281 proto.RegisterExtension(E_X208) 2282 proto.RegisterExtension(E_X209) 2283 proto.RegisterExtension(E_X210) 2284 proto.RegisterExtension(E_X211) 2285 proto.RegisterExtension(E_X212) 2286 proto.RegisterExtension(E_X213) 2287 proto.RegisterExtension(E_X214) 2288 proto.RegisterExtension(E_X215) 2289 proto.RegisterExtension(E_X216) 2290 proto.RegisterExtension(E_X217) 2291 proto.RegisterExtension(E_X218) 2292 proto.RegisterExtension(E_X219) 2293 proto.RegisterExtension(E_X220) 2294 proto.RegisterExtension(E_X221) 2295 proto.RegisterExtension(E_X222) 2296 proto.RegisterExtension(E_X223) 2297 proto.RegisterExtension(E_X224) 2298 proto.RegisterExtension(E_X225) 2299 proto.RegisterExtension(E_X226) 2300 proto.RegisterExtension(E_X227) 2301 proto.RegisterExtension(E_X228) 2302 proto.RegisterExtension(E_X229) 2303 proto.RegisterExtension(E_X230) 2304 proto.RegisterExtension(E_X231) 2305 proto.RegisterExtension(E_X232) 2306 proto.RegisterExtension(E_X233) 2307 proto.RegisterExtension(E_X234) 2308 proto.RegisterExtension(E_X235) 2309 proto.RegisterExtension(E_X236) 2310 proto.RegisterExtension(E_X237) 2311 proto.RegisterExtension(E_X238) 2312 proto.RegisterExtension(E_X239) 2313 proto.RegisterExtension(E_X240) 2314 proto.RegisterExtension(E_X241) 2315 proto.RegisterExtension(E_X242) 2316 proto.RegisterExtension(E_X243) 2317 proto.RegisterExtension(E_X244) 2318 proto.RegisterExtension(E_X245) 2319 proto.RegisterExtension(E_X246) 2320 proto.RegisterExtension(E_X247) 2321 proto.RegisterExtension(E_X248) 2322 proto.RegisterExtension(E_X249) 2323 proto.RegisterExtension(E_X250) 2324 }