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