github.com/syumai/protoreflect@v1.7.1-0.20200810020253-2ac7e3b3a321/internal/testprotos/desc_test_defaults.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.12.0 5 // source: desc_test_defaults.proto 6 7 package testprotos 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 math "math" 14 reflect "reflect" 15 sync "sync" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 // This is a compile-time assertion that a sufficiently up-to-date version 26 // of the legacy proto package is being used. 27 const _ = proto.ProtoPackageIsVersion4 28 29 type Color int32 30 31 const ( 32 Color_RED Color = 0 33 Color_GREEN Color = 1 34 Color_BLUE Color = 2 35 ) 36 37 // Enum value maps for Color. 38 var ( 39 Color_name = map[int32]string{ 40 0: "RED", 41 1: "GREEN", 42 2: "BLUE", 43 } 44 Color_value = map[string]int32{ 45 "RED": 0, 46 "GREEN": 1, 47 "BLUE": 2, 48 } 49 ) 50 51 func (x Color) Enum() *Color { 52 p := new(Color) 53 *p = x 54 return p 55 } 56 57 func (x Color) String() string { 58 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 59 } 60 61 func (Color) Descriptor() protoreflect.EnumDescriptor { 62 return file_desc_test_defaults_proto_enumTypes[0].Descriptor() 63 } 64 65 func (Color) Type() protoreflect.EnumType { 66 return &file_desc_test_defaults_proto_enumTypes[0] 67 } 68 69 func (x Color) Number() protoreflect.EnumNumber { 70 return protoreflect.EnumNumber(x) 71 } 72 73 // Deprecated: Do not use. 74 func (x *Color) UnmarshalJSON(b []byte) error { 75 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 76 if err != nil { 77 return err 78 } 79 *x = Color(num) 80 return nil 81 } 82 83 // Deprecated: Use Color.Descriptor instead. 84 func (Color) EnumDescriptor() ([]byte, []int) { 85 return file_desc_test_defaults_proto_rawDescGZIP(), []int{0} 86 } 87 88 type Number int32 89 90 const ( 91 Number_ZERO Number = 0 92 Number_ZED Number = 0 93 Number_NIL Number = 0 94 Number_NULL Number = 0 95 Number_ONE Number = 1 96 Number_UNO Number = 1 97 Number_TWO Number = 2 98 Number_DOS Number = 2 99 ) 100 101 // Enum value maps for Number. 102 var ( 103 Number_name = map[int32]string{ 104 0: "ZERO", 105 // Duplicate value: 0: "ZED", 106 // Duplicate value: 0: "NIL", 107 // Duplicate value: 0: "NULL", 108 1: "ONE", 109 // Duplicate value: 1: "UNO", 110 2: "TWO", 111 // Duplicate value: 2: "DOS", 112 } 113 Number_value = map[string]int32{ 114 "ZERO": 0, 115 "ZED": 0, 116 "NIL": 0, 117 "NULL": 0, 118 "ONE": 1, 119 "UNO": 1, 120 "TWO": 2, 121 "DOS": 2, 122 } 123 ) 124 125 func (x Number) Enum() *Number { 126 p := new(Number) 127 *p = x 128 return p 129 } 130 131 func (x Number) String() string { 132 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 133 } 134 135 func (Number) Descriptor() protoreflect.EnumDescriptor { 136 return file_desc_test_defaults_proto_enumTypes[1].Descriptor() 137 } 138 139 func (Number) Type() protoreflect.EnumType { 140 return &file_desc_test_defaults_proto_enumTypes[1] 141 } 142 143 func (x Number) Number() protoreflect.EnumNumber { 144 return protoreflect.EnumNumber(x) 145 } 146 147 // Deprecated: Do not use. 148 func (x *Number) UnmarshalJSON(b []byte) error { 149 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 150 if err != nil { 151 return err 152 } 153 *x = Number(num) 154 return nil 155 } 156 157 // Deprecated: Use Number.Descriptor instead. 158 func (Number) EnumDescriptor() ([]byte, []int) { 159 return file_desc_test_defaults_proto_rawDescGZIP(), []int{1} 160 } 161 162 type PrimitiveDefaults struct { 163 state protoimpl.MessageState 164 sizeCache protoimpl.SizeCache 165 unknownFields protoimpl.UnknownFields 166 167 // simple default 168 Fl32 *float32 `protobuf:"fixed32,1,opt,name=fl32,def=3.14159" json:"fl32,omitempty"` 169 Fl64 *float64 `protobuf:"fixed64,2,opt,name=fl64,def=3.14159" json:"fl64,omitempty"` 170 // exponent notation 171 Fl32D *float32 `protobuf:"fixed32,3,opt,name=fl32d,def=6.022141e+23" json:"fl32d,omitempty"` 172 Fl64D *float64 `protobuf:"fixed64,4,opt,name=fl64d,def=6.022140857e+23" json:"fl64d,omitempty"` 173 // special values: inf, -inf, and nan 174 Fl32Inf *float32 `protobuf:"fixed32,5,opt,name=fl32inf,def=inf" json:"fl32inf,omitempty"` 175 Fl64Inf *float64 `protobuf:"fixed64,6,opt,name=fl64inf,def=inf" json:"fl64inf,omitempty"` 176 Fl32NegInf *float32 `protobuf:"fixed32,7,opt,name=fl32negInf,def=-inf" json:"fl32negInf,omitempty"` 177 Fl64NegInf *float64 `protobuf:"fixed64,8,opt,name=fl64negInf,def=-inf" json:"fl64negInf,omitempty"` 178 Fl32Nan *float32 `protobuf:"fixed32,9,opt,name=fl32nan,def=nan" json:"fl32nan,omitempty"` 179 Fl64Nan *float64 `protobuf:"fixed64,10,opt,name=fl64nan,def=nan" json:"fl64nan,omitempty"` 180 Bl1 *bool `protobuf:"varint,11,opt,name=bl1,def=1" json:"bl1,omitempty"` 181 Bl2 *bool `protobuf:"varint,12,opt,name=bl2,def=0" json:"bl2,omitempty"` 182 // signed 183 I32 *int32 `protobuf:"varint,13,opt,name=i32,def=10101" json:"i32,omitempty"` 184 I32N *int32 `protobuf:"varint,14,opt,name=i32n,def=-10101" json:"i32n,omitempty"` 185 I32X *int32 `protobuf:"varint,15,opt,name=i32x,def=131586" json:"i32x,omitempty"` 186 I32Xn *int32 `protobuf:"varint,16,opt,name=i32xn,def=-131586" json:"i32xn,omitempty"` 187 I64 *int64 `protobuf:"varint,17,opt,name=i64,def=10101" json:"i64,omitempty"` 188 I64N *int64 `protobuf:"varint,18,opt,name=i64n,def=-10101" json:"i64n,omitempty"` 189 I64X *int64 `protobuf:"varint,19,opt,name=i64x,def=131586" json:"i64x,omitempty"` 190 I64Xn *int64 `protobuf:"varint,20,opt,name=i64xn,def=-131586" json:"i64xn,omitempty"` 191 I32S *int32 `protobuf:"zigzag32,21,opt,name=i32s,def=10101" json:"i32s,omitempty"` 192 I32Sn *int32 `protobuf:"zigzag32,22,opt,name=i32sn,def=-10101" json:"i32sn,omitempty"` 193 I32Sx *int32 `protobuf:"zigzag32,23,opt,name=i32sx,def=131586" json:"i32sx,omitempty"` 194 I32Sxn *int32 `protobuf:"zigzag32,24,opt,name=i32sxn,def=-131586" json:"i32sxn,omitempty"` 195 I64S *int64 `protobuf:"zigzag64,25,opt,name=i64s,def=10101" json:"i64s,omitempty"` 196 I64Sn *int64 `protobuf:"zigzag64,26,opt,name=i64sn,def=-10101" json:"i64sn,omitempty"` 197 I64Sx *int64 `protobuf:"zigzag64,27,opt,name=i64sx,def=131586" json:"i64sx,omitempty"` 198 I64Sxn *int64 `protobuf:"zigzag64,28,opt,name=i64sxn,def=-131586" json:"i64sxn,omitempty"` 199 I32F *int32 `protobuf:"fixed32,29,opt,name=i32f,def=10101" json:"i32f,omitempty"` 200 I32Fn *int32 `protobuf:"fixed32,30,opt,name=i32fn,def=-10101" json:"i32fn,omitempty"` 201 I32Fx *int32 `protobuf:"fixed32,31,opt,name=i32fx,def=131586" json:"i32fx,omitempty"` 202 I32Fxn *int32 `protobuf:"fixed32,32,opt,name=i32fxn,def=-131586" json:"i32fxn,omitempty"` 203 I64F *int64 `protobuf:"fixed64,33,opt,name=i64f,def=10101" json:"i64f,omitempty"` 204 I64Fn *int64 `protobuf:"fixed64,34,opt,name=i64fn,def=-10101" json:"i64fn,omitempty"` 205 I64Fx *int64 `protobuf:"fixed64,35,opt,name=i64fx,def=131586" json:"i64fx,omitempty"` 206 I64Fxn *int64 `protobuf:"fixed64,36,opt,name=i64fxn,def=-131586" json:"i64fxn,omitempty"` 207 // unsigned 208 U32 *uint32 `protobuf:"varint,37,opt,name=u32,def=10101" json:"u32,omitempty"` 209 U32X *uint32 `protobuf:"varint,38,opt,name=u32x,def=131586" json:"u32x,omitempty"` 210 U64 *uint64 `protobuf:"varint,39,opt,name=u64,def=10101" json:"u64,omitempty"` 211 U64X *uint64 `protobuf:"varint,40,opt,name=u64x,def=131586" json:"u64x,omitempty"` 212 U32F *uint32 `protobuf:"fixed32,41,opt,name=u32f,def=10101" json:"u32f,omitempty"` 213 U32Fx *uint32 `protobuf:"fixed32,42,opt,name=u32fx,def=131586" json:"u32fx,omitempty"` 214 U64F *uint64 `protobuf:"fixed64,43,opt,name=u64f,def=10101" json:"u64f,omitempty"` 215 U64Fx *uint64 `protobuf:"fixed64,44,opt,name=u64fx,def=131586" json:"u64fx,omitempty"` 216 } 217 218 // Default values for PrimitiveDefaults fields. 219 const ( 220 Default_PrimitiveDefaults_Fl32 = float32(3.141590118408203) 221 Default_PrimitiveDefaults_Fl64 = float64(3.14159) 222 Default_PrimitiveDefaults_Fl32D = float32(6.022141003837819e+23) 223 Default_PrimitiveDefaults_Fl64D = float64(6.022140857e+23) 224 Default_PrimitiveDefaults_Bl1 = bool(true) 225 Default_PrimitiveDefaults_Bl2 = bool(false) 226 Default_PrimitiveDefaults_I32 = int32(10101) 227 Default_PrimitiveDefaults_I32N = int32(-10101) 228 Default_PrimitiveDefaults_I32X = int32(131586) 229 Default_PrimitiveDefaults_I32Xn = int32(-131586) 230 Default_PrimitiveDefaults_I64 = int64(10101) 231 Default_PrimitiveDefaults_I64N = int64(-10101) 232 Default_PrimitiveDefaults_I64X = int64(131586) 233 Default_PrimitiveDefaults_I64Xn = int64(-131586) 234 Default_PrimitiveDefaults_I32S = int32(10101) 235 Default_PrimitiveDefaults_I32Sn = int32(-10101) 236 Default_PrimitiveDefaults_I32Sx = int32(131586) 237 Default_PrimitiveDefaults_I32Sxn = int32(-131586) 238 Default_PrimitiveDefaults_I64S = int64(10101) 239 Default_PrimitiveDefaults_I64Sn = int64(-10101) 240 Default_PrimitiveDefaults_I64Sx = int64(131586) 241 Default_PrimitiveDefaults_I64Sxn = int64(-131586) 242 Default_PrimitiveDefaults_I32F = int32(10101) 243 Default_PrimitiveDefaults_I32Fn = int32(-10101) 244 Default_PrimitiveDefaults_I32Fx = int32(131586) 245 Default_PrimitiveDefaults_I32Fxn = int32(-131586) 246 Default_PrimitiveDefaults_I64F = int64(10101) 247 Default_PrimitiveDefaults_I64Fn = int64(-10101) 248 Default_PrimitiveDefaults_I64Fx = int64(131586) 249 Default_PrimitiveDefaults_I64Fxn = int64(-131586) 250 Default_PrimitiveDefaults_U32 = uint32(10101) 251 Default_PrimitiveDefaults_U32X = uint32(131586) 252 Default_PrimitiveDefaults_U64 = uint64(10101) 253 Default_PrimitiveDefaults_U64X = uint64(131586) 254 Default_PrimitiveDefaults_U32F = uint32(10101) 255 Default_PrimitiveDefaults_U32Fx = uint32(131586) 256 Default_PrimitiveDefaults_U64F = uint64(10101) 257 Default_PrimitiveDefaults_U64Fx = uint64(131586) 258 ) 259 260 // Default values for PrimitiveDefaults fields. 261 var ( 262 Default_PrimitiveDefaults_Fl32Inf = float32(math.Inf(+1)) 263 Default_PrimitiveDefaults_Fl64Inf = float64(math.Inf(+1)) 264 Default_PrimitiveDefaults_Fl32NegInf = float32(math.Inf(-1)) 265 Default_PrimitiveDefaults_Fl64NegInf = float64(math.Inf(-1)) 266 Default_PrimitiveDefaults_Fl32Nan = float32(math.NaN()) 267 Default_PrimitiveDefaults_Fl64Nan = float64(math.NaN()) 268 ) 269 270 func (x *PrimitiveDefaults) Reset() { 271 *x = PrimitiveDefaults{} 272 if protoimpl.UnsafeEnabled { 273 mi := &file_desc_test_defaults_proto_msgTypes[0] 274 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 275 ms.StoreMessageInfo(mi) 276 } 277 } 278 279 func (x *PrimitiveDefaults) String() string { 280 return protoimpl.X.MessageStringOf(x) 281 } 282 283 func (*PrimitiveDefaults) ProtoMessage() {} 284 285 func (x *PrimitiveDefaults) ProtoReflect() protoreflect.Message { 286 mi := &file_desc_test_defaults_proto_msgTypes[0] 287 if protoimpl.UnsafeEnabled && x != nil { 288 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 289 if ms.LoadMessageInfo() == nil { 290 ms.StoreMessageInfo(mi) 291 } 292 return ms 293 } 294 return mi.MessageOf(x) 295 } 296 297 // Deprecated: Use PrimitiveDefaults.ProtoReflect.Descriptor instead. 298 func (*PrimitiveDefaults) Descriptor() ([]byte, []int) { 299 return file_desc_test_defaults_proto_rawDescGZIP(), []int{0} 300 } 301 302 func (x *PrimitiveDefaults) GetFl32() float32 { 303 if x != nil && x.Fl32 != nil { 304 return *x.Fl32 305 } 306 return Default_PrimitiveDefaults_Fl32 307 } 308 309 func (x *PrimitiveDefaults) GetFl64() float64 { 310 if x != nil && x.Fl64 != nil { 311 return *x.Fl64 312 } 313 return Default_PrimitiveDefaults_Fl64 314 } 315 316 func (x *PrimitiveDefaults) GetFl32D() float32 { 317 if x != nil && x.Fl32D != nil { 318 return *x.Fl32D 319 } 320 return Default_PrimitiveDefaults_Fl32D 321 } 322 323 func (x *PrimitiveDefaults) GetFl64D() float64 { 324 if x != nil && x.Fl64D != nil { 325 return *x.Fl64D 326 } 327 return Default_PrimitiveDefaults_Fl64D 328 } 329 330 func (x *PrimitiveDefaults) GetFl32Inf() float32 { 331 if x != nil && x.Fl32Inf != nil { 332 return *x.Fl32Inf 333 } 334 return Default_PrimitiveDefaults_Fl32Inf 335 } 336 337 func (x *PrimitiveDefaults) GetFl64Inf() float64 { 338 if x != nil && x.Fl64Inf != nil { 339 return *x.Fl64Inf 340 } 341 return Default_PrimitiveDefaults_Fl64Inf 342 } 343 344 func (x *PrimitiveDefaults) GetFl32NegInf() float32 { 345 if x != nil && x.Fl32NegInf != nil { 346 return *x.Fl32NegInf 347 } 348 return Default_PrimitiveDefaults_Fl32NegInf 349 } 350 351 func (x *PrimitiveDefaults) GetFl64NegInf() float64 { 352 if x != nil && x.Fl64NegInf != nil { 353 return *x.Fl64NegInf 354 } 355 return Default_PrimitiveDefaults_Fl64NegInf 356 } 357 358 func (x *PrimitiveDefaults) GetFl32Nan() float32 { 359 if x != nil && x.Fl32Nan != nil { 360 return *x.Fl32Nan 361 } 362 return Default_PrimitiveDefaults_Fl32Nan 363 } 364 365 func (x *PrimitiveDefaults) GetFl64Nan() float64 { 366 if x != nil && x.Fl64Nan != nil { 367 return *x.Fl64Nan 368 } 369 return Default_PrimitiveDefaults_Fl64Nan 370 } 371 372 func (x *PrimitiveDefaults) GetBl1() bool { 373 if x != nil && x.Bl1 != nil { 374 return *x.Bl1 375 } 376 return Default_PrimitiveDefaults_Bl1 377 } 378 379 func (x *PrimitiveDefaults) GetBl2() bool { 380 if x != nil && x.Bl2 != nil { 381 return *x.Bl2 382 } 383 return Default_PrimitiveDefaults_Bl2 384 } 385 386 func (x *PrimitiveDefaults) GetI32() int32 { 387 if x != nil && x.I32 != nil { 388 return *x.I32 389 } 390 return Default_PrimitiveDefaults_I32 391 } 392 393 func (x *PrimitiveDefaults) GetI32N() int32 { 394 if x != nil && x.I32N != nil { 395 return *x.I32N 396 } 397 return Default_PrimitiveDefaults_I32N 398 } 399 400 func (x *PrimitiveDefaults) GetI32X() int32 { 401 if x != nil && x.I32X != nil { 402 return *x.I32X 403 } 404 return Default_PrimitiveDefaults_I32X 405 } 406 407 func (x *PrimitiveDefaults) GetI32Xn() int32 { 408 if x != nil && x.I32Xn != nil { 409 return *x.I32Xn 410 } 411 return Default_PrimitiveDefaults_I32Xn 412 } 413 414 func (x *PrimitiveDefaults) GetI64() int64 { 415 if x != nil && x.I64 != nil { 416 return *x.I64 417 } 418 return Default_PrimitiveDefaults_I64 419 } 420 421 func (x *PrimitiveDefaults) GetI64N() int64 { 422 if x != nil && x.I64N != nil { 423 return *x.I64N 424 } 425 return Default_PrimitiveDefaults_I64N 426 } 427 428 func (x *PrimitiveDefaults) GetI64X() int64 { 429 if x != nil && x.I64X != nil { 430 return *x.I64X 431 } 432 return Default_PrimitiveDefaults_I64X 433 } 434 435 func (x *PrimitiveDefaults) GetI64Xn() int64 { 436 if x != nil && x.I64Xn != nil { 437 return *x.I64Xn 438 } 439 return Default_PrimitiveDefaults_I64Xn 440 } 441 442 func (x *PrimitiveDefaults) GetI32S() int32 { 443 if x != nil && x.I32S != nil { 444 return *x.I32S 445 } 446 return Default_PrimitiveDefaults_I32S 447 } 448 449 func (x *PrimitiveDefaults) GetI32Sn() int32 { 450 if x != nil && x.I32Sn != nil { 451 return *x.I32Sn 452 } 453 return Default_PrimitiveDefaults_I32Sn 454 } 455 456 func (x *PrimitiveDefaults) GetI32Sx() int32 { 457 if x != nil && x.I32Sx != nil { 458 return *x.I32Sx 459 } 460 return Default_PrimitiveDefaults_I32Sx 461 } 462 463 func (x *PrimitiveDefaults) GetI32Sxn() int32 { 464 if x != nil && x.I32Sxn != nil { 465 return *x.I32Sxn 466 } 467 return Default_PrimitiveDefaults_I32Sxn 468 } 469 470 func (x *PrimitiveDefaults) GetI64S() int64 { 471 if x != nil && x.I64S != nil { 472 return *x.I64S 473 } 474 return Default_PrimitiveDefaults_I64S 475 } 476 477 func (x *PrimitiveDefaults) GetI64Sn() int64 { 478 if x != nil && x.I64Sn != nil { 479 return *x.I64Sn 480 } 481 return Default_PrimitiveDefaults_I64Sn 482 } 483 484 func (x *PrimitiveDefaults) GetI64Sx() int64 { 485 if x != nil && x.I64Sx != nil { 486 return *x.I64Sx 487 } 488 return Default_PrimitiveDefaults_I64Sx 489 } 490 491 func (x *PrimitiveDefaults) GetI64Sxn() int64 { 492 if x != nil && x.I64Sxn != nil { 493 return *x.I64Sxn 494 } 495 return Default_PrimitiveDefaults_I64Sxn 496 } 497 498 func (x *PrimitiveDefaults) GetI32F() int32 { 499 if x != nil && x.I32F != nil { 500 return *x.I32F 501 } 502 return Default_PrimitiveDefaults_I32F 503 } 504 505 func (x *PrimitiveDefaults) GetI32Fn() int32 { 506 if x != nil && x.I32Fn != nil { 507 return *x.I32Fn 508 } 509 return Default_PrimitiveDefaults_I32Fn 510 } 511 512 func (x *PrimitiveDefaults) GetI32Fx() int32 { 513 if x != nil && x.I32Fx != nil { 514 return *x.I32Fx 515 } 516 return Default_PrimitiveDefaults_I32Fx 517 } 518 519 func (x *PrimitiveDefaults) GetI32Fxn() int32 { 520 if x != nil && x.I32Fxn != nil { 521 return *x.I32Fxn 522 } 523 return Default_PrimitiveDefaults_I32Fxn 524 } 525 526 func (x *PrimitiveDefaults) GetI64F() int64 { 527 if x != nil && x.I64F != nil { 528 return *x.I64F 529 } 530 return Default_PrimitiveDefaults_I64F 531 } 532 533 func (x *PrimitiveDefaults) GetI64Fn() int64 { 534 if x != nil && x.I64Fn != nil { 535 return *x.I64Fn 536 } 537 return Default_PrimitiveDefaults_I64Fn 538 } 539 540 func (x *PrimitiveDefaults) GetI64Fx() int64 { 541 if x != nil && x.I64Fx != nil { 542 return *x.I64Fx 543 } 544 return Default_PrimitiveDefaults_I64Fx 545 } 546 547 func (x *PrimitiveDefaults) GetI64Fxn() int64 { 548 if x != nil && x.I64Fxn != nil { 549 return *x.I64Fxn 550 } 551 return Default_PrimitiveDefaults_I64Fxn 552 } 553 554 func (x *PrimitiveDefaults) GetU32() uint32 { 555 if x != nil && x.U32 != nil { 556 return *x.U32 557 } 558 return Default_PrimitiveDefaults_U32 559 } 560 561 func (x *PrimitiveDefaults) GetU32X() uint32 { 562 if x != nil && x.U32X != nil { 563 return *x.U32X 564 } 565 return Default_PrimitiveDefaults_U32X 566 } 567 568 func (x *PrimitiveDefaults) GetU64() uint64 { 569 if x != nil && x.U64 != nil { 570 return *x.U64 571 } 572 return Default_PrimitiveDefaults_U64 573 } 574 575 func (x *PrimitiveDefaults) GetU64X() uint64 { 576 if x != nil && x.U64X != nil { 577 return *x.U64X 578 } 579 return Default_PrimitiveDefaults_U64X 580 } 581 582 func (x *PrimitiveDefaults) GetU32F() uint32 { 583 if x != nil && x.U32F != nil { 584 return *x.U32F 585 } 586 return Default_PrimitiveDefaults_U32F 587 } 588 589 func (x *PrimitiveDefaults) GetU32Fx() uint32 { 590 if x != nil && x.U32Fx != nil { 591 return *x.U32Fx 592 } 593 return Default_PrimitiveDefaults_U32Fx 594 } 595 596 func (x *PrimitiveDefaults) GetU64F() uint64 { 597 if x != nil && x.U64F != nil { 598 return *x.U64F 599 } 600 return Default_PrimitiveDefaults_U64F 601 } 602 603 func (x *PrimitiveDefaults) GetU64Fx() uint64 { 604 if x != nil && x.U64Fx != nil { 605 return *x.U64Fx 606 } 607 return Default_PrimitiveDefaults_U64Fx 608 } 609 610 type StringAndBytesDefaults struct { 611 state protoimpl.MessageState 612 sizeCache protoimpl.SizeCache 613 unknownFields protoimpl.UnknownFields 614 615 Dq *string `protobuf:"bytes,1,opt,name=dq,def=this is a string with \"nested quotes\"" json:"dq,omitempty"` 616 Sq *string `protobuf:"bytes,2,opt,name=sq,def=this is a string with \"nested quotes\"" json:"sq,omitempty"` 617 EscapedBytes []byte `protobuf:"bytes,3,opt,name=escaped_bytes,json=escapedBytes,def=\\000\\001\\007\\010\\014\\n\\r\\t\\013\\\\\\'\\\"\\376" json:"escaped_bytes,omitempty"` 618 Utf8String *string `protobuf:"bytes,4,opt,name=utf8_string,json=utf8String,def=ሴ" json:"utf8_string,omitempty"` // this is utf-8 for \u1234 619 StringWithZero *string `protobuf:"bytes,5,opt,name=string_with_zero,json=stringWithZero,def=hel\x00lo" json:"string_with_zero,omitempty"` 620 BytesWithZero []byte `protobuf:"bytes,6,opt,name=bytes_with_zero,json=bytesWithZero,def=wor\\000ld" json:"bytes_with_zero,omitempty"` 621 ReallyLongString *string `protobuf:"bytes,7,opt,name=really_long_string,json=reallyLongString,def=this is a really long string constant, so it spans multiple lines! it also tests support for multi-line string literals in option values" json:"really_long_string,omitempty"` 622 } 623 624 // Default values for StringAndBytesDefaults fields. 625 const ( 626 Default_StringAndBytesDefaults_Dq = string("this is a string with \"nested quotes\"") 627 Default_StringAndBytesDefaults_Sq = string("this is a string with \"nested quotes\"") 628 Default_StringAndBytesDefaults_Utf8String = string("ሴ") 629 Default_StringAndBytesDefaults_StringWithZero = string("hel\x00lo") 630 Default_StringAndBytesDefaults_ReallyLongString = string("this is a really long string constant, so it spans multiple lines! it also tests support for multi-line string literals in option values") 631 ) 632 633 // Default values for StringAndBytesDefaults fields. 634 var ( 635 Default_StringAndBytesDefaults_EscapedBytes = []byte("\x00\x01\a\b\f\n\r\t\v\\'\"\xfe") 636 Default_StringAndBytesDefaults_BytesWithZero = []byte("wor\x00ld") 637 ) 638 639 func (x *StringAndBytesDefaults) Reset() { 640 *x = StringAndBytesDefaults{} 641 if protoimpl.UnsafeEnabled { 642 mi := &file_desc_test_defaults_proto_msgTypes[1] 643 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 644 ms.StoreMessageInfo(mi) 645 } 646 } 647 648 func (x *StringAndBytesDefaults) String() string { 649 return protoimpl.X.MessageStringOf(x) 650 } 651 652 func (*StringAndBytesDefaults) ProtoMessage() {} 653 654 func (x *StringAndBytesDefaults) ProtoReflect() protoreflect.Message { 655 mi := &file_desc_test_defaults_proto_msgTypes[1] 656 if protoimpl.UnsafeEnabled && x != nil { 657 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 658 if ms.LoadMessageInfo() == nil { 659 ms.StoreMessageInfo(mi) 660 } 661 return ms 662 } 663 return mi.MessageOf(x) 664 } 665 666 // Deprecated: Use StringAndBytesDefaults.ProtoReflect.Descriptor instead. 667 func (*StringAndBytesDefaults) Descriptor() ([]byte, []int) { 668 return file_desc_test_defaults_proto_rawDescGZIP(), []int{1} 669 } 670 671 func (x *StringAndBytesDefaults) GetDq() string { 672 if x != nil && x.Dq != nil { 673 return *x.Dq 674 } 675 return Default_StringAndBytesDefaults_Dq 676 } 677 678 func (x *StringAndBytesDefaults) GetSq() string { 679 if x != nil && x.Sq != nil { 680 return *x.Sq 681 } 682 return Default_StringAndBytesDefaults_Sq 683 } 684 685 func (x *StringAndBytesDefaults) GetEscapedBytes() []byte { 686 if x != nil && x.EscapedBytes != nil { 687 return x.EscapedBytes 688 } 689 return append([]byte(nil), Default_StringAndBytesDefaults_EscapedBytes...) 690 } 691 692 func (x *StringAndBytesDefaults) GetUtf8String() string { 693 if x != nil && x.Utf8String != nil { 694 return *x.Utf8String 695 } 696 return Default_StringAndBytesDefaults_Utf8String 697 } 698 699 func (x *StringAndBytesDefaults) GetStringWithZero() string { 700 if x != nil && x.StringWithZero != nil { 701 return *x.StringWithZero 702 } 703 return Default_StringAndBytesDefaults_StringWithZero 704 } 705 706 func (x *StringAndBytesDefaults) GetBytesWithZero() []byte { 707 if x != nil && x.BytesWithZero != nil { 708 return x.BytesWithZero 709 } 710 return append([]byte(nil), Default_StringAndBytesDefaults_BytesWithZero...) 711 } 712 713 func (x *StringAndBytesDefaults) GetReallyLongString() string { 714 if x != nil && x.ReallyLongString != nil { 715 return *x.ReallyLongString 716 } 717 return Default_StringAndBytesDefaults_ReallyLongString 718 } 719 720 type EnumDefaults struct { 721 state protoimpl.MessageState 722 sizeCache protoimpl.SizeCache 723 unknownFields protoimpl.UnknownFields 724 725 Red *Color `protobuf:"varint,1,opt,name=red,enum=testprotos.Color,def=0" json:"red,omitempty"` 726 Green *Color `protobuf:"varint,2,opt,name=green,enum=testprotos.Color,def=1" json:"green,omitempty"` 727 Blue *Color `protobuf:"varint,3,opt,name=blue,enum=testprotos.Color,def=2" json:"blue,omitempty"` 728 Zero *Number `protobuf:"varint,4,opt,name=zero,enum=testprotos.Number,def=0" json:"zero,omitempty"` 729 Zed *Number `protobuf:"varint,5,opt,name=zed,enum=testprotos.Number,def=0" json:"zed,omitempty"` 730 One *Number `protobuf:"varint,6,opt,name=one,enum=testprotos.Number,def=1" json:"one,omitempty"` 731 Dos *Number `protobuf:"varint,7,opt,name=dos,enum=testprotos.Number,def=2" json:"dos,omitempty"` 732 } 733 734 // Default values for EnumDefaults fields. 735 const ( 736 Default_EnumDefaults_Red = Color_RED 737 Default_EnumDefaults_Green = Color_GREEN 738 Default_EnumDefaults_Blue = Color_BLUE 739 Default_EnumDefaults_Zero = Number_ZERO 740 Default_EnumDefaults_Zed = Number_ZED 741 Default_EnumDefaults_One = Number_ONE 742 Default_EnumDefaults_Dos = Number_DOS 743 ) 744 745 func (x *EnumDefaults) Reset() { 746 *x = EnumDefaults{} 747 if protoimpl.UnsafeEnabled { 748 mi := &file_desc_test_defaults_proto_msgTypes[2] 749 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 750 ms.StoreMessageInfo(mi) 751 } 752 } 753 754 func (x *EnumDefaults) String() string { 755 return protoimpl.X.MessageStringOf(x) 756 } 757 758 func (*EnumDefaults) ProtoMessage() {} 759 760 func (x *EnumDefaults) ProtoReflect() protoreflect.Message { 761 mi := &file_desc_test_defaults_proto_msgTypes[2] 762 if protoimpl.UnsafeEnabled && x != nil { 763 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 764 if ms.LoadMessageInfo() == nil { 765 ms.StoreMessageInfo(mi) 766 } 767 return ms 768 } 769 return mi.MessageOf(x) 770 } 771 772 // Deprecated: Use EnumDefaults.ProtoReflect.Descriptor instead. 773 func (*EnumDefaults) Descriptor() ([]byte, []int) { 774 return file_desc_test_defaults_proto_rawDescGZIP(), []int{2} 775 } 776 777 func (x *EnumDefaults) GetRed() Color { 778 if x != nil && x.Red != nil { 779 return *x.Red 780 } 781 return Default_EnumDefaults_Red 782 } 783 784 func (x *EnumDefaults) GetGreen() Color { 785 if x != nil && x.Green != nil { 786 return *x.Green 787 } 788 return Default_EnumDefaults_Green 789 } 790 791 func (x *EnumDefaults) GetBlue() Color { 792 if x != nil && x.Blue != nil { 793 return *x.Blue 794 } 795 return Default_EnumDefaults_Blue 796 } 797 798 func (x *EnumDefaults) GetZero() Number { 799 if x != nil && x.Zero != nil { 800 return *x.Zero 801 } 802 return Default_EnumDefaults_Zero 803 } 804 805 func (x *EnumDefaults) GetZed() Number { 806 if x != nil && x.Zed != nil { 807 return *x.Zed 808 } 809 return Default_EnumDefaults_Zed 810 } 811 812 func (x *EnumDefaults) GetOne() Number { 813 if x != nil && x.One != nil { 814 return *x.One 815 } 816 return Default_EnumDefaults_One 817 } 818 819 func (x *EnumDefaults) GetDos() Number { 820 if x != nil && x.Dos != nil { 821 return *x.Dos 822 } 823 return Default_EnumDefaults_Dos 824 } 825 826 type MoarFloats struct { 827 state protoimpl.MessageState 828 sizeCache protoimpl.SizeCache 829 unknownFields protoimpl.UnknownFields 830 831 A *float32 `protobuf:"fixed32,1,opt,name=a,def=1" json:"a,omitempty"` 832 B *float32 `protobuf:"fixed32,2,opt,name=b,def=1" json:"b,omitempty"` 833 C *float32 `protobuf:"fixed32,3,opt,name=c,def=1.01" json:"c,omitempty"` 834 D *float32 `protobuf:"fixed32,4,opt,name=d,def=0.1" json:"d,omitempty"` 835 E *float32 `protobuf:"fixed32,5,opt,name=e,def=100000" json:"e,omitempty"` 836 F *float32 `protobuf:"fixed32,6,opt,name=f,def=1e-05" json:"f,omitempty"` 837 } 838 839 // Default values for MoarFloats fields. 840 const ( 841 Default_MoarFloats_A = float32(1) 842 Default_MoarFloats_B = float32(1) 843 Default_MoarFloats_C = float32(1.0099999904632568) 844 Default_MoarFloats_D = float32(0.10000000149011612) 845 Default_MoarFloats_E = float32(100000) 846 Default_MoarFloats_F = float32(9.999999747378752e-06) 847 ) 848 849 func (x *MoarFloats) Reset() { 850 *x = MoarFloats{} 851 if protoimpl.UnsafeEnabled { 852 mi := &file_desc_test_defaults_proto_msgTypes[3] 853 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 854 ms.StoreMessageInfo(mi) 855 } 856 } 857 858 func (x *MoarFloats) String() string { 859 return protoimpl.X.MessageStringOf(x) 860 } 861 862 func (*MoarFloats) ProtoMessage() {} 863 864 func (x *MoarFloats) ProtoReflect() protoreflect.Message { 865 mi := &file_desc_test_defaults_proto_msgTypes[3] 866 if protoimpl.UnsafeEnabled && x != nil { 867 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 868 if ms.LoadMessageInfo() == nil { 869 ms.StoreMessageInfo(mi) 870 } 871 return ms 872 } 873 return mi.MessageOf(x) 874 } 875 876 // Deprecated: Use MoarFloats.ProtoReflect.Descriptor instead. 877 func (*MoarFloats) Descriptor() ([]byte, []int) { 878 return file_desc_test_defaults_proto_rawDescGZIP(), []int{3} 879 } 880 881 func (x *MoarFloats) GetA() float32 { 882 if x != nil && x.A != nil { 883 return *x.A 884 } 885 return Default_MoarFloats_A 886 } 887 888 func (x *MoarFloats) GetB() float32 { 889 if x != nil && x.B != nil { 890 return *x.B 891 } 892 return Default_MoarFloats_B 893 } 894 895 func (x *MoarFloats) GetC() float32 { 896 if x != nil && x.C != nil { 897 return *x.C 898 } 899 return Default_MoarFloats_C 900 } 901 902 func (x *MoarFloats) GetD() float32 { 903 if x != nil && x.D != nil { 904 return *x.D 905 } 906 return Default_MoarFloats_D 907 } 908 909 func (x *MoarFloats) GetE() float32 { 910 if x != nil && x.E != nil { 911 return *x.E 912 } 913 return Default_MoarFloats_E 914 } 915 916 func (x *MoarFloats) GetF() float32 { 917 if x != nil && x.F != nil { 918 return *x.F 919 } 920 return Default_MoarFloats_F 921 } 922 923 var File_desc_test_defaults_proto protoreflect.FileDescriptor 924 925 var file_desc_test_defaults_proto_rawDesc = []byte{ 926 0x0a, 0x18, 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x61, 927 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, 0x73, 0x74, 928 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x22, 0xad, 0x0a, 0x0a, 0x11, 0x50, 0x72, 0x69, 0x6d, 0x69, 929 0x74, 0x69, 0x76, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x04, 930 0x66, 0x6c, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x07, 0x33, 0x2e, 0x31, 0x34, 931 0x31, 0x35, 0x39, 0x52, 0x04, 0x66, 0x6c, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x04, 0x66, 0x6c, 0x36, 932 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x3a, 0x07, 0x33, 0x2e, 0x31, 0x34, 0x31, 0x35, 0x39, 933 0x52, 0x04, 0x66, 0x6c, 0x36, 0x34, 0x12, 0x22, 0x0a, 0x05, 0x66, 0x6c, 0x33, 0x32, 0x64, 0x18, 934 0x03, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x0c, 0x36, 0x2e, 0x30, 0x32, 0x32, 0x31, 0x34, 0x31, 0x65, 935 0x2b, 0x32, 0x33, 0x52, 0x05, 0x66, 0x6c, 0x33, 0x32, 0x64, 0x12, 0x25, 0x0a, 0x05, 0x66, 0x6c, 936 0x36, 0x34, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x3a, 0x0f, 0x36, 0x2e, 0x30, 0x32, 0x32, 937 0x31, 0x34, 0x30, 0x38, 0x35, 0x37, 0x65, 0x2b, 0x32, 0x33, 0x52, 0x05, 0x66, 0x6c, 0x36, 0x34, 938 0x64, 0x12, 0x1d, 0x0a, 0x07, 0x66, 0x6c, 0x33, 0x32, 0x69, 0x6e, 0x66, 0x18, 0x05, 0x20, 0x01, 939 0x28, 0x02, 0x3a, 0x03, 0x69, 0x6e, 0x66, 0x52, 0x07, 0x66, 0x6c, 0x33, 0x32, 0x69, 0x6e, 0x66, 940 0x12, 0x1d, 0x0a, 0x07, 0x66, 0x6c, 0x36, 0x34, 0x69, 0x6e, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 941 0x01, 0x3a, 0x03, 0x69, 0x6e, 0x66, 0x52, 0x07, 0x66, 0x6c, 0x36, 0x34, 0x69, 0x6e, 0x66, 0x12, 942 0x24, 0x0a, 0x0a, 0x66, 0x6c, 0x33, 0x32, 0x6e, 0x65, 0x67, 0x49, 0x6e, 0x66, 0x18, 0x07, 0x20, 943 0x01, 0x28, 0x02, 0x3a, 0x04, 0x2d, 0x69, 0x6e, 0x66, 0x52, 0x0a, 0x66, 0x6c, 0x33, 0x32, 0x6e, 944 0x65, 0x67, 0x49, 0x6e, 0x66, 0x12, 0x24, 0x0a, 0x0a, 0x66, 0x6c, 0x36, 0x34, 0x6e, 0x65, 0x67, 945 0x49, 0x6e, 0x66, 0x18, 0x08, 0x20, 0x01, 0x28, 0x01, 0x3a, 0x04, 0x2d, 0x69, 0x6e, 0x66, 0x52, 946 0x0a, 0x66, 0x6c, 0x36, 0x34, 0x6e, 0x65, 0x67, 0x49, 0x6e, 0x66, 0x12, 0x1d, 0x0a, 0x07, 0x66, 947 0x6c, 0x33, 0x32, 0x6e, 0x61, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x03, 0x6e, 0x61, 948 0x6e, 0x52, 0x07, 0x66, 0x6c, 0x33, 0x32, 0x6e, 0x61, 0x6e, 0x12, 0x1d, 0x0a, 0x07, 0x66, 0x6c, 949 0x36, 0x34, 0x6e, 0x61, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x01, 0x3a, 0x03, 0x6e, 0x61, 0x6e, 950 0x52, 0x07, 0x66, 0x6c, 0x36, 0x34, 0x6e, 0x61, 0x6e, 0x12, 0x16, 0x0a, 0x03, 0x62, 0x6c, 0x31, 951 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x04, 0x74, 0x72, 0x75, 0x65, 0x52, 0x03, 0x62, 0x6c, 952 0x31, 0x12, 0x17, 0x0a, 0x03, 0x62, 0x6c, 0x32, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 953 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x03, 0x62, 0x6c, 0x32, 0x12, 0x17, 0x0a, 0x03, 0x69, 0x33, 954 0x32, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x05, 0x31, 0x30, 0x31, 0x30, 0x31, 0x52, 0x03, 955 0x69, 0x33, 0x32, 0x12, 0x1a, 0x0a, 0x04, 0x69, 0x33, 0x32, 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 956 0x05, 0x3a, 0x06, 0x2d, 0x31, 0x30, 0x31, 0x30, 0x31, 0x52, 0x04, 0x69, 0x33, 0x32, 0x6e, 0x12, 957 0x1a, 0x0a, 0x04, 0x69, 0x33, 0x32, 0x78, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x06, 0x31, 958 0x33, 0x31, 0x35, 0x38, 0x36, 0x52, 0x04, 0x69, 0x33, 0x32, 0x78, 0x12, 0x1d, 0x0a, 0x05, 0x69, 959 0x33, 0x32, 0x78, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x07, 0x2d, 0x31, 0x33, 0x31, 960 0x35, 0x38, 0x36, 0x52, 0x05, 0x69, 0x33, 0x32, 0x78, 0x6e, 0x12, 0x17, 0x0a, 0x03, 0x69, 0x36, 961 0x34, 0x18, 0x11, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x05, 0x31, 0x30, 0x31, 0x30, 0x31, 0x52, 0x03, 962 0x69, 0x36, 0x34, 0x12, 0x1a, 0x0a, 0x04, 0x69, 0x36, 0x34, 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 963 0x03, 0x3a, 0x06, 0x2d, 0x31, 0x30, 0x31, 0x30, 0x31, 0x52, 0x04, 0x69, 0x36, 0x34, 0x6e, 0x12, 964 0x1a, 0x0a, 0x04, 0x69, 0x36, 0x34, 0x78, 0x18, 0x13, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x06, 0x31, 965 0x33, 0x31, 0x35, 0x38, 0x36, 0x52, 0x04, 0x69, 0x36, 0x34, 0x78, 0x12, 0x1d, 0x0a, 0x05, 0x69, 966 0x36, 0x34, 0x78, 0x6e, 0x18, 0x14, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x07, 0x2d, 0x31, 0x33, 0x31, 967 0x35, 0x38, 0x36, 0x52, 0x05, 0x69, 0x36, 0x34, 0x78, 0x6e, 0x12, 0x19, 0x0a, 0x04, 0x69, 0x33, 968 0x32, 0x73, 0x18, 0x15, 0x20, 0x01, 0x28, 0x11, 0x3a, 0x05, 0x31, 0x30, 0x31, 0x30, 0x31, 0x52, 969 0x04, 0x69, 0x33, 0x32, 0x73, 0x12, 0x1c, 0x0a, 0x05, 0x69, 0x33, 0x32, 0x73, 0x6e, 0x18, 0x16, 970 0x20, 0x01, 0x28, 0x11, 0x3a, 0x06, 0x2d, 0x31, 0x30, 0x31, 0x30, 0x31, 0x52, 0x05, 0x69, 0x33, 971 0x32, 0x73, 0x6e, 0x12, 0x1c, 0x0a, 0x05, 0x69, 0x33, 0x32, 0x73, 0x78, 0x18, 0x17, 0x20, 0x01, 972 0x28, 0x11, 0x3a, 0x06, 0x31, 0x33, 0x31, 0x35, 0x38, 0x36, 0x52, 0x05, 0x69, 0x33, 0x32, 0x73, 973 0x78, 0x12, 0x1f, 0x0a, 0x06, 0x69, 0x33, 0x32, 0x73, 0x78, 0x6e, 0x18, 0x18, 0x20, 0x01, 0x28, 974 0x11, 0x3a, 0x07, 0x2d, 0x31, 0x33, 0x31, 0x35, 0x38, 0x36, 0x52, 0x06, 0x69, 0x33, 0x32, 0x73, 975 0x78, 0x6e, 0x12, 0x19, 0x0a, 0x04, 0x69, 0x36, 0x34, 0x73, 0x18, 0x19, 0x20, 0x01, 0x28, 0x12, 976 0x3a, 0x05, 0x31, 0x30, 0x31, 0x30, 0x31, 0x52, 0x04, 0x69, 0x36, 0x34, 0x73, 0x12, 0x1c, 0x0a, 977 0x05, 0x69, 0x36, 0x34, 0x73, 0x6e, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x12, 0x3a, 0x06, 0x2d, 0x31, 978 0x30, 0x31, 0x30, 0x31, 0x52, 0x05, 0x69, 0x36, 0x34, 0x73, 0x6e, 0x12, 0x1c, 0x0a, 0x05, 0x69, 979 0x36, 0x34, 0x73, 0x78, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x12, 0x3a, 0x06, 0x31, 0x33, 0x31, 0x35, 980 0x38, 0x36, 0x52, 0x05, 0x69, 0x36, 0x34, 0x73, 0x78, 0x12, 0x1f, 0x0a, 0x06, 0x69, 0x36, 0x34, 981 0x73, 0x78, 0x6e, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x12, 0x3a, 0x07, 0x2d, 0x31, 0x33, 0x31, 0x35, 982 0x38, 0x36, 0x52, 0x06, 0x69, 0x36, 0x34, 0x73, 0x78, 0x6e, 0x12, 0x19, 0x0a, 0x04, 0x69, 0x33, 983 0x32, 0x66, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x0f, 0x3a, 0x05, 0x31, 0x30, 0x31, 0x30, 0x31, 0x52, 984 0x04, 0x69, 0x33, 0x32, 0x66, 0x12, 0x1c, 0x0a, 0x05, 0x69, 0x33, 0x32, 0x66, 0x6e, 0x18, 0x1e, 985 0x20, 0x01, 0x28, 0x0f, 0x3a, 0x06, 0x2d, 0x31, 0x30, 0x31, 0x30, 0x31, 0x52, 0x05, 0x69, 0x33, 986 0x32, 0x66, 0x6e, 0x12, 0x1c, 0x0a, 0x05, 0x69, 0x33, 0x32, 0x66, 0x78, 0x18, 0x1f, 0x20, 0x01, 987 0x28, 0x0f, 0x3a, 0x06, 0x31, 0x33, 0x31, 0x35, 0x38, 0x36, 0x52, 0x05, 0x69, 0x33, 0x32, 0x66, 988 0x78, 0x12, 0x1f, 0x0a, 0x06, 0x69, 0x33, 0x32, 0x66, 0x78, 0x6e, 0x18, 0x20, 0x20, 0x01, 0x28, 989 0x0f, 0x3a, 0x07, 0x2d, 0x31, 0x33, 0x31, 0x35, 0x38, 0x36, 0x52, 0x06, 0x69, 0x33, 0x32, 0x66, 990 0x78, 0x6e, 0x12, 0x19, 0x0a, 0x04, 0x69, 0x36, 0x34, 0x66, 0x18, 0x21, 0x20, 0x01, 0x28, 0x10, 991 0x3a, 0x05, 0x31, 0x30, 0x31, 0x30, 0x31, 0x52, 0x04, 0x69, 0x36, 0x34, 0x66, 0x12, 0x1c, 0x0a, 992 0x05, 0x69, 0x36, 0x34, 0x66, 0x6e, 0x18, 0x22, 0x20, 0x01, 0x28, 0x10, 0x3a, 0x06, 0x2d, 0x31, 993 0x30, 0x31, 0x30, 0x31, 0x52, 0x05, 0x69, 0x36, 0x34, 0x66, 0x6e, 0x12, 0x1c, 0x0a, 0x05, 0x69, 994 0x36, 0x34, 0x66, 0x78, 0x18, 0x23, 0x20, 0x01, 0x28, 0x10, 0x3a, 0x06, 0x31, 0x33, 0x31, 0x35, 995 0x38, 0x36, 0x52, 0x05, 0x69, 0x36, 0x34, 0x66, 0x78, 0x12, 0x1f, 0x0a, 0x06, 0x69, 0x36, 0x34, 996 0x66, 0x78, 0x6e, 0x18, 0x24, 0x20, 0x01, 0x28, 0x10, 0x3a, 0x07, 0x2d, 0x31, 0x33, 0x31, 0x35, 997 0x38, 0x36, 0x52, 0x06, 0x69, 0x36, 0x34, 0x66, 0x78, 0x6e, 0x12, 0x17, 0x0a, 0x03, 0x75, 0x33, 998 0x32, 0x18, 0x25, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x05, 0x31, 0x30, 0x31, 0x30, 0x31, 0x52, 0x03, 999 0x75, 0x33, 0x32, 0x12, 0x1a, 0x0a, 0x04, 0x75, 0x33, 0x32, 0x78, 0x18, 0x26, 0x20, 0x01, 0x28, 1000 0x0d, 0x3a, 0x06, 0x31, 0x33, 0x31, 0x35, 0x38, 0x36, 0x52, 0x04, 0x75, 0x33, 0x32, 0x78, 0x12, 1001 0x17, 0x0a, 0x03, 0x75, 0x36, 0x34, 0x18, 0x27, 0x20, 0x01, 0x28, 0x04, 0x3a, 0x05, 0x31, 0x30, 1002 0x31, 0x30, 0x31, 0x52, 0x03, 0x75, 0x36, 0x34, 0x12, 0x1a, 0x0a, 0x04, 0x75, 0x36, 0x34, 0x78, 1003 0x18, 0x28, 0x20, 0x01, 0x28, 0x04, 0x3a, 0x06, 0x31, 0x33, 0x31, 0x35, 0x38, 0x36, 0x52, 0x04, 1004 0x75, 0x36, 0x34, 0x78, 0x12, 0x19, 0x0a, 0x04, 0x75, 0x33, 0x32, 0x66, 0x18, 0x29, 0x20, 0x01, 1005 0x28, 0x07, 0x3a, 0x05, 0x31, 0x30, 0x31, 0x30, 0x31, 0x52, 0x04, 0x75, 0x33, 0x32, 0x66, 0x12, 1006 0x1c, 0x0a, 0x05, 0x75, 0x33, 0x32, 0x66, 0x78, 0x18, 0x2a, 0x20, 0x01, 0x28, 0x07, 0x3a, 0x06, 1007 0x31, 0x33, 0x31, 0x35, 0x38, 0x36, 0x52, 0x05, 0x75, 0x33, 0x32, 0x66, 0x78, 0x12, 0x19, 0x0a, 1008 0x04, 0x75, 0x36, 0x34, 0x66, 0x18, 0x2b, 0x20, 0x01, 0x28, 0x06, 0x3a, 0x05, 0x31, 0x30, 0x31, 1009 0x30, 0x31, 0x52, 0x04, 0x75, 0x36, 0x34, 0x66, 0x12, 0x1c, 0x0a, 0x05, 0x75, 0x36, 0x34, 0x66, 1010 0x78, 0x18, 0x2c, 0x20, 0x01, 0x28, 0x06, 0x3a, 0x06, 0x31, 0x33, 0x31, 0x35, 0x38, 0x36, 0x52, 1011 0x05, 0x75, 0x36, 0x34, 0x66, 0x78, 0x22, 0x9a, 0x04, 0x0a, 0x16, 0x53, 0x74, 0x72, 0x69, 0x6e, 1012 0x67, 0x41, 0x6e, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 1013 0x73, 0x12, 0x35, 0x0a, 0x02, 0x64, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x25, 0x74, 1014 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x20, 1015 0x77, 0x69, 0x74, 0x68, 0x20, 0x22, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x20, 0x71, 0x75, 0x6f, 1016 0x74, 0x65, 0x73, 0x22, 0x52, 0x02, 0x64, 0x71, 0x12, 0x35, 0x0a, 0x02, 0x73, 0x71, 0x18, 0x02, 1017 0x20, 0x01, 0x28, 0x09, 0x3a, 0x25, 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 1018 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x22, 0x6e, 0x65, 0x73, 1019 0x74, 0x65, 0x64, 0x20, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x73, 0x22, 0x52, 0x02, 0x73, 0x71, 0x12, 1020 0x4d, 0x0a, 0x0d, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 1021 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x3a, 0x28, 0x5c, 0x30, 0x30, 0x30, 0x5c, 0x30, 0x30, 0x31, 1022 0x5c, 0x30, 0x30, 0x37, 0x5c, 0x30, 0x31, 0x30, 0x5c, 0x30, 0x31, 0x34, 0x5c, 0x6e, 0x5c, 0x72, 1023 0x5c, 0x74, 0x5c, 0x30, 0x31, 0x33, 0x5c, 0x5c, 0x5c, 0x27, 0x5c, 0x22, 0x5c, 0x33, 0x37, 0x36, 1024 0x52, 0x0c, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x24, 1025 0x0a, 0x0b, 0x75, 0x74, 0x66, 0x38, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 1026 0x01, 0x28, 0x09, 0x3a, 0x03, 0xe1, 0x88, 0xb4, 0x52, 0x0a, 0x75, 0x74, 0x66, 0x38, 0x53, 0x74, 1027 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x10, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x77, 1028 0x69, 0x74, 0x68, 0x5f, 0x7a, 0x65, 0x72, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x06, 1029 0x68, 0x65, 0x6c, 0x00, 0x6c, 0x6f, 0x52, 0x0e, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x57, 0x69, 1030 0x74, 0x68, 0x5a, 0x65, 0x72, 0x6f, 0x12, 0x31, 0x0a, 0x0f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 1031 0x77, 0x69, 0x74, 0x68, 0x5f, 0x7a, 0x65, 0x72, 0x6f, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x3a, 1032 0x09, 0x77, 0x6f, 0x72, 0x5c, 0x30, 0x30, 0x30, 0x6c, 0x64, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 1033 0x73, 0x57, 0x69, 0x74, 0x68, 0x5a, 0x65, 0x72, 0x6f, 0x12, 0xb7, 0x01, 0x0a, 0x12, 0x72, 0x65, 1034 0x61, 0x6c, 0x6c, 0x79, 0x5f, 0x6c, 0x6f, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 1035 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x88, 0x01, 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 1036 0x20, 0x61, 0x20, 0x72, 0x65, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x6c, 0x6f, 0x6e, 0x67, 0x20, 0x73, 1037 0x74, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x2c, 0x20, 1038 0x73, 0x6f, 0x20, 0x69, 0x74, 0x20, 0x73, 0x70, 0x61, 0x6e, 0x73, 0x20, 0x6d, 0x75, 0x6c, 0x74, 1039 0x69, 0x70, 0x6c, 0x65, 0x20, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x21, 0x20, 0x69, 0x74, 0x20, 0x61, 1040 0x6c, 0x73, 0x6f, 0x20, 0x74, 0x65, 0x73, 0x74, 0x73, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 1041 0x74, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x2d, 0x6c, 0x69, 0x6e, 0x65, 1042 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 1043 0x20, 0x69, 0x6e, 0x20, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 1044 0x73, 0x52, 0x10, 0x72, 0x65, 0x61, 0x6c, 0x6c, 0x79, 0x4c, 0x6f, 0x6e, 0x67, 0x53, 0x74, 0x72, 1045 0x69, 0x6e, 0x67, 0x22, 0xc4, 0x02, 0x0a, 0x0c, 0x45, 0x6e, 0x75, 0x6d, 0x44, 0x65, 0x66, 0x61, 1046 0x75, 0x6c, 0x74, 0x73, 0x12, 0x28, 0x0a, 0x03, 0x72, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 1047 0x0e, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x43, 1048 0x6f, 0x6c, 0x6f, 0x72, 0x3a, 0x03, 0x52, 0x45, 0x44, 0x52, 0x03, 0x72, 0x65, 0x64, 0x12, 0x2e, 1049 0x0a, 0x05, 0x67, 0x72, 0x65, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 1050 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 1051 0x3a, 0x05, 0x47, 0x52, 0x45, 0x45, 0x4e, 0x52, 0x05, 0x67, 0x72, 0x65, 0x65, 0x6e, 0x12, 0x2b, 1052 0x0a, 0x04, 0x62, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74, 1053 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x3a, 1054 0x04, 0x42, 0x4c, 0x55, 0x45, 0x52, 0x04, 0x62, 0x6c, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x04, 0x7a, 1055 0x65, 0x72, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 1056 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x3a, 0x04, 0x5a, 1057 0x45, 0x52, 0x4f, 0x52, 0x04, 0x7a, 0x65, 0x72, 0x6f, 0x12, 0x29, 0x0a, 0x03, 0x7a, 0x65, 0x64, 1058 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 1059 0x74, 0x6f, 0x73, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x3a, 0x03, 0x5a, 0x45, 0x44, 0x52, 1060 0x03, 0x7a, 0x65, 0x64, 0x12, 0x29, 0x0a, 0x03, 0x6f, 0x6e, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 1061 0x0e, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4e, 1062 0x75, 0x6d, 0x62, 0x65, 0x72, 0x3a, 0x03, 0x4f, 0x4e, 0x45, 0x52, 0x03, 0x6f, 0x6e, 0x65, 0x12, 1063 0x29, 0x0a, 0x03, 0x64, 0x6f, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x74, 1064 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 1065 0x3a, 0x03, 0x44, 0x4f, 0x53, 0x52, 0x03, 0x64, 0x6f, 0x73, 0x22, 0x80, 0x01, 0x0a, 0x0a, 0x4d, 1066 0x6f, 0x61, 0x72, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x73, 0x12, 0x0f, 0x0a, 0x01, 0x61, 0x18, 0x01, 1067 0x20, 0x01, 0x28, 0x02, 0x3a, 0x01, 0x31, 0x52, 0x01, 0x61, 0x12, 0x0f, 0x0a, 0x01, 0x62, 0x18, 1068 0x02, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x01, 0x31, 0x52, 0x01, 0x62, 0x12, 0x12, 0x0a, 0x01, 0x63, 1069 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x04, 0x31, 0x2e, 0x30, 0x31, 0x52, 0x01, 0x63, 0x12, 1070 0x11, 0x0a, 0x01, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x03, 0x30, 0x2e, 0x31, 0x52, 1071 0x01, 0x64, 0x12, 0x14, 0x0a, 0x01, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x06, 0x31, 1072 0x30, 0x30, 0x30, 0x30, 0x30, 0x52, 0x01, 0x65, 0x12, 0x13, 0x0a, 0x01, 0x66, 0x18, 0x06, 0x20, 1073 0x01, 0x28, 0x02, 0x3a, 0x05, 0x31, 0x65, 0x2d, 0x30, 0x35, 0x52, 0x01, 0x66, 0x2a, 0x25, 0x0a, 1074 0x05, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x07, 0x0a, 0x03, 0x52, 0x45, 0x44, 0x10, 0x00, 0x12, 1075 0x09, 0x0a, 0x05, 0x47, 0x52, 0x45, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4c, 1076 0x55, 0x45, 0x10, 0x02, 0x2a, 0x56, 0x0a, 0x06, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x08, 1077 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x5a, 0x45, 0x44, 0x10, 1078 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4e, 0x49, 0x4c, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x55, 1079 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 1080 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x12, 1081 0x07, 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x1a, 0x02, 0x10, 0x01, 0x42, 0x33, 0x5a, 0x31, 1082 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6a, 0x68, 0x75, 0x6d, 0x70, 1083 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x69, 0x6e, 1084 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 1085 0x73, 1086 } 1087 1088 var ( 1089 file_desc_test_defaults_proto_rawDescOnce sync.Once 1090 file_desc_test_defaults_proto_rawDescData = file_desc_test_defaults_proto_rawDesc 1091 ) 1092 1093 func file_desc_test_defaults_proto_rawDescGZIP() []byte { 1094 file_desc_test_defaults_proto_rawDescOnce.Do(func() { 1095 file_desc_test_defaults_proto_rawDescData = protoimpl.X.CompressGZIP(file_desc_test_defaults_proto_rawDescData) 1096 }) 1097 return file_desc_test_defaults_proto_rawDescData 1098 } 1099 1100 var file_desc_test_defaults_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 1101 var file_desc_test_defaults_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 1102 var file_desc_test_defaults_proto_goTypes = []interface{}{ 1103 (Color)(0), // 0: testprotos.Color 1104 (Number)(0), // 1: testprotos.Number 1105 (*PrimitiveDefaults)(nil), // 2: testprotos.PrimitiveDefaults 1106 (*StringAndBytesDefaults)(nil), // 3: testprotos.StringAndBytesDefaults 1107 (*EnumDefaults)(nil), // 4: testprotos.EnumDefaults 1108 (*MoarFloats)(nil), // 5: testprotos.MoarFloats 1109 } 1110 var file_desc_test_defaults_proto_depIdxs = []int32{ 1111 0, // 0: testprotos.EnumDefaults.red:type_name -> testprotos.Color 1112 0, // 1: testprotos.EnumDefaults.green:type_name -> testprotos.Color 1113 0, // 2: testprotos.EnumDefaults.blue:type_name -> testprotos.Color 1114 1, // 3: testprotos.EnumDefaults.zero:type_name -> testprotos.Number 1115 1, // 4: testprotos.EnumDefaults.zed:type_name -> testprotos.Number 1116 1, // 5: testprotos.EnumDefaults.one:type_name -> testprotos.Number 1117 1, // 6: testprotos.EnumDefaults.dos:type_name -> testprotos.Number 1118 7, // [7:7] is the sub-list for method output_type 1119 7, // [7:7] is the sub-list for method input_type 1120 7, // [7:7] is the sub-list for extension type_name 1121 7, // [7:7] is the sub-list for extension extendee 1122 0, // [0:7] is the sub-list for field type_name 1123 } 1124 1125 func init() { file_desc_test_defaults_proto_init() } 1126 func file_desc_test_defaults_proto_init() { 1127 if File_desc_test_defaults_proto != nil { 1128 return 1129 } 1130 if !protoimpl.UnsafeEnabled { 1131 file_desc_test_defaults_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1132 switch v := v.(*PrimitiveDefaults); i { 1133 case 0: 1134 return &v.state 1135 case 1: 1136 return &v.sizeCache 1137 case 2: 1138 return &v.unknownFields 1139 default: 1140 return nil 1141 } 1142 } 1143 file_desc_test_defaults_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1144 switch v := v.(*StringAndBytesDefaults); i { 1145 case 0: 1146 return &v.state 1147 case 1: 1148 return &v.sizeCache 1149 case 2: 1150 return &v.unknownFields 1151 default: 1152 return nil 1153 } 1154 } 1155 file_desc_test_defaults_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1156 switch v := v.(*EnumDefaults); i { 1157 case 0: 1158 return &v.state 1159 case 1: 1160 return &v.sizeCache 1161 case 2: 1162 return &v.unknownFields 1163 default: 1164 return nil 1165 } 1166 } 1167 file_desc_test_defaults_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1168 switch v := v.(*MoarFloats); i { 1169 case 0: 1170 return &v.state 1171 case 1: 1172 return &v.sizeCache 1173 case 2: 1174 return &v.unknownFields 1175 default: 1176 return nil 1177 } 1178 } 1179 } 1180 type x struct{} 1181 out := protoimpl.TypeBuilder{ 1182 File: protoimpl.DescBuilder{ 1183 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1184 RawDescriptor: file_desc_test_defaults_proto_rawDesc, 1185 NumEnums: 2, 1186 NumMessages: 4, 1187 NumExtensions: 0, 1188 NumServices: 0, 1189 }, 1190 GoTypes: file_desc_test_defaults_proto_goTypes, 1191 DependencyIndexes: file_desc_test_defaults_proto_depIdxs, 1192 EnumInfos: file_desc_test_defaults_proto_enumTypes, 1193 MessageInfos: file_desc_test_defaults_proto_msgTypes, 1194 }.Build() 1195 File_desc_test_defaults_proto = out.File 1196 file_desc_test_defaults_proto_rawDesc = nil 1197 file_desc_test_defaults_proto_goTypes = nil 1198 file_desc_test_defaults_proto_depIdxs = nil 1199 }