go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/common/proto/google/descutil/internal/util.pb.go (about) 1 // vim: noexpandtab 2 3 // Code generated by protoc-gen-go. DO NOT EDIT. 4 // versions: 5 // protoc-gen-go v1.31.0 6 // protoc v3.21.7 7 // source: go.chromium.org/luci/common/proto/google/descutil/internal/util.proto 8 9 package internal 10 11 import prpc "go.chromium.org/luci/grpc/prpc" 12 13 import ( 14 context "context" 15 grpc "google.golang.org/grpc" 16 codes "google.golang.org/grpc/codes" 17 status "google.golang.org/grpc/status" 18 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 19 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 20 descriptorpb "google.golang.org/protobuf/types/descriptorpb" 21 reflect "reflect" 22 sync "sync" 23 ) 24 25 const ( 26 // Verify that this generated code is sufficiently up-to-date. 27 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 28 // Verify that runtime/protoimpl is sufficiently up-to-date. 29 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 30 ) 31 32 // Enum comment. 33 // next line. 34 type E1 int32 35 36 const ( 37 // V0 38 // next line. 39 E1_V0 E1 = 0 40 // V1 41 // next line. 42 E1_V1 E1 = 1 43 ) 44 45 // Enum value maps for E1. 46 var ( 47 E1_name = map[int32]string{ 48 0: "V0", 49 1: "V1", 50 } 51 E1_value = map[string]int32{ 52 "V0": 0, 53 "V1": 1, 54 } 55 ) 56 57 func (x E1) Enum() *E1 { 58 p := new(E1) 59 *p = x 60 return p 61 } 62 63 func (x E1) String() string { 64 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 65 } 66 67 func (E1) Descriptor() protoreflect.EnumDescriptor { 68 return file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_enumTypes[0].Descriptor() 69 } 70 71 func (E1) Type() protoreflect.EnumType { 72 return &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_enumTypes[0] 73 } 74 75 func (x E1) Number() protoreflect.EnumNumber { 76 return protoreflect.EnumNumber(x) 77 } 78 79 // Deprecated: Use E1.Descriptor instead. 80 func (E1) EnumDescriptor() ([]byte, []int) { 81 return file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDescGZIP(), []int{0} 82 } 83 84 type NestedMessageParent_NestedEnum int32 85 86 const ( 87 NestedMessageParent_V0 NestedMessageParent_NestedEnum = 0 88 NestedMessageParent_V1 NestedMessageParent_NestedEnum = 1 89 ) 90 91 // Enum value maps for NestedMessageParent_NestedEnum. 92 var ( 93 NestedMessageParent_NestedEnum_name = map[int32]string{ 94 0: "V0", 95 1: "V1", 96 } 97 NestedMessageParent_NestedEnum_value = map[string]int32{ 98 "V0": 0, 99 "V1": 1, 100 } 101 ) 102 103 func (x NestedMessageParent_NestedEnum) Enum() *NestedMessageParent_NestedEnum { 104 p := new(NestedMessageParent_NestedEnum) 105 *p = x 106 return p 107 } 108 109 func (x NestedMessageParent_NestedEnum) String() string { 110 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 111 } 112 113 func (NestedMessageParent_NestedEnum) Descriptor() protoreflect.EnumDescriptor { 114 return file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_enumTypes[1].Descriptor() 115 } 116 117 func (NestedMessageParent_NestedEnum) Type() protoreflect.EnumType { 118 return &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_enumTypes[1] 119 } 120 121 func (x NestedMessageParent_NestedEnum) Number() protoreflect.EnumNumber { 122 return protoreflect.EnumNumber(x) 123 } 124 125 // Deprecated: Use NestedMessageParent_NestedEnum.Descriptor instead. 126 func (NestedMessageParent_NestedEnum) EnumDescriptor() ([]byte, []int) { 127 return file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDescGZIP(), []int{4, 0} 128 } 129 130 type SuperExt struct { 131 state protoimpl.MessageState 132 sizeCache protoimpl.SizeCache 133 unknownFields protoimpl.UnknownFields 134 135 A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` 136 B string `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"` 137 } 138 139 func (x *SuperExt) Reset() { 140 *x = SuperExt{} 141 if protoimpl.UnsafeEnabled { 142 mi := &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[0] 143 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 144 ms.StoreMessageInfo(mi) 145 } 146 } 147 148 func (x *SuperExt) String() string { 149 return protoimpl.X.MessageStringOf(x) 150 } 151 152 func (*SuperExt) ProtoMessage() {} 153 154 func (x *SuperExt) ProtoReflect() protoreflect.Message { 155 mi := &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[0] 156 if protoimpl.UnsafeEnabled && x != nil { 157 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 158 if ms.LoadMessageInfo() == nil { 159 ms.StoreMessageInfo(mi) 160 } 161 return ms 162 } 163 return mi.MessageOf(x) 164 } 165 166 // Deprecated: Use SuperExt.ProtoReflect.Descriptor instead. 167 func (*SuperExt) Descriptor() ([]byte, []int) { 168 return file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDescGZIP(), []int{0} 169 } 170 171 func (x *SuperExt) GetA() string { 172 if x != nil { 173 return x.A 174 } 175 return "" 176 } 177 178 func (x *SuperExt) GetB() string { 179 if x != nil { 180 return x.B 181 } 182 return "" 183 } 184 185 // M1 186 // next line. 187 type M1 struct { 188 state protoimpl.MessageState 189 sizeCache protoimpl.SizeCache 190 unknownFields protoimpl.UnknownFields 191 192 // f1 193 // next line. 194 F1 string `protobuf:"bytes,1,opt,name=f1,json=foof,proto3" json:"f1,omitempty"` 195 Meep []int64 `protobuf:"varint,2,rep,name=meep,proto3" json:"meep,omitempty"` 196 RegularSnakeCase bool `protobuf:"varint,3,opt,name=regular_snake_case,json=regularSnakeCase,proto3" json:"regular_snake_case,omitempty"` 197 OnlyJsonName bool `protobuf:"varint,4,opt,name=only_json_name,json=cool,proto3" json:"only_json_name,omitempty"` 198 } 199 200 func (x *M1) Reset() { 201 *x = M1{} 202 if protoimpl.UnsafeEnabled { 203 mi := &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[1] 204 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 205 ms.StoreMessageInfo(mi) 206 } 207 } 208 209 func (x *M1) String() string { 210 return protoimpl.X.MessageStringOf(x) 211 } 212 213 func (*M1) ProtoMessage() {} 214 215 func (x *M1) ProtoReflect() protoreflect.Message { 216 mi := &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[1] 217 if protoimpl.UnsafeEnabled && x != nil { 218 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 219 if ms.LoadMessageInfo() == nil { 220 ms.StoreMessageInfo(mi) 221 } 222 return ms 223 } 224 return mi.MessageOf(x) 225 } 226 227 // Deprecated: Use M1.ProtoReflect.Descriptor instead. 228 func (*M1) Descriptor() ([]byte, []int) { 229 return file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDescGZIP(), []int{1} 230 } 231 232 func (x *M1) GetF1() string { 233 if x != nil { 234 return x.F1 235 } 236 return "" 237 } 238 239 func (x *M1) GetMeep() []int64 { 240 if x != nil { 241 return x.Meep 242 } 243 return nil 244 } 245 246 func (x *M1) GetRegularSnakeCase() bool { 247 if x != nil { 248 return x.RegularSnakeCase 249 } 250 return false 251 } 252 253 func (x *M1) GetOnlyJsonName() bool { 254 if x != nil { 255 return x.OnlyJsonName 256 } 257 return false 258 } 259 260 // M2 261 // next line. 262 // 263 // Deprecated: Marked as deprecated in go.chromium.org/luci/common/proto/google/descutil/internal/util.proto. 264 type M2 struct { 265 state protoimpl.MessageState 266 sizeCache protoimpl.SizeCache 267 unknownFields protoimpl.UnknownFields 268 269 // f1 270 // next line. 271 F1 []*M1 `protobuf:"bytes,1,rep,name=f1,proto3" json:"f1,omitempty"` 272 // f2 273 // next line. 274 F2 E1 `protobuf:"varint,2,opt,name=f2,proto3,enum=descutil.E1" json:"f2,omitempty"` 275 } 276 277 func (x *M2) Reset() { 278 *x = M2{} 279 if protoimpl.UnsafeEnabled { 280 mi := &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[2] 281 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 282 ms.StoreMessageInfo(mi) 283 } 284 } 285 286 func (x *M2) String() string { 287 return protoimpl.X.MessageStringOf(x) 288 } 289 290 func (*M2) ProtoMessage() {} 291 292 func (x *M2) ProtoReflect() protoreflect.Message { 293 mi := &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[2] 294 if protoimpl.UnsafeEnabled && x != nil { 295 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 296 if ms.LoadMessageInfo() == nil { 297 ms.StoreMessageInfo(mi) 298 } 299 return ms 300 } 301 return mi.MessageOf(x) 302 } 303 304 // Deprecated: Use M2.ProtoReflect.Descriptor instead. 305 func (*M2) Descriptor() ([]byte, []int) { 306 return file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDescGZIP(), []int{2} 307 } 308 309 func (x *M2) GetF1() []*M1 { 310 if x != nil { 311 return x.F1 312 } 313 return nil 314 } 315 316 func (x *M2) GetF2() E1 { 317 if x != nil { 318 return x.F2 319 } 320 return E1_V0 321 } 322 323 // M3 324 type M3 struct { 325 state protoimpl.MessageState 326 sizeCache protoimpl.SizeCache 327 unknownFields protoimpl.UnknownFields 328 329 // O1 330 // 331 // Types that are assignable to O1: 332 // 333 // *M3_F1 334 // *M3_F2 335 O1 isM3_O1 `protobuf_oneof:"O1"` 336 // O2 337 // 338 // Types that are assignable to O2: 339 // 340 // *M3_F3 341 // *M3_F4 342 O2 isM3_O2 `protobuf_oneof:"O2"` 343 // f5 344 F5 string `protobuf:"bytes,5,opt,name=f5,proto3" json:"f5,omitempty"` 345 // f6 346 F6 int32 `protobuf:"varint,6,opt,name=f6,proto3" json:"f6,omitempty"` 347 } 348 349 func (x *M3) Reset() { 350 *x = M3{} 351 if protoimpl.UnsafeEnabled { 352 mi := &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[3] 353 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 354 ms.StoreMessageInfo(mi) 355 } 356 } 357 358 func (x *M3) String() string { 359 return protoimpl.X.MessageStringOf(x) 360 } 361 362 func (*M3) ProtoMessage() {} 363 364 func (x *M3) ProtoReflect() protoreflect.Message { 365 mi := &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[3] 366 if protoimpl.UnsafeEnabled && x != nil { 367 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 368 if ms.LoadMessageInfo() == nil { 369 ms.StoreMessageInfo(mi) 370 } 371 return ms 372 } 373 return mi.MessageOf(x) 374 } 375 376 // Deprecated: Use M3.ProtoReflect.Descriptor instead. 377 func (*M3) Descriptor() ([]byte, []int) { 378 return file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDescGZIP(), []int{3} 379 } 380 381 func (m *M3) GetO1() isM3_O1 { 382 if m != nil { 383 return m.O1 384 } 385 return nil 386 } 387 388 func (x *M3) GetF1() int32 { 389 if x, ok := x.GetO1().(*M3_F1); ok { 390 return x.F1 391 } 392 return 0 393 } 394 395 func (x *M3) GetF2() int32 { 396 if x, ok := x.GetO1().(*M3_F2); ok { 397 return x.F2 398 } 399 return 0 400 } 401 402 func (m *M3) GetO2() isM3_O2 { 403 if m != nil { 404 return m.O2 405 } 406 return nil 407 } 408 409 func (x *M3) GetF3() int32 { 410 if x, ok := x.GetO2().(*M3_F3); ok { 411 return x.F3 412 } 413 return 0 414 } 415 416 func (x *M3) GetF4() int32 { 417 if x, ok := x.GetO2().(*M3_F4); ok { 418 return x.F4 419 } 420 return 0 421 } 422 423 func (x *M3) GetF5() string { 424 if x != nil { 425 return x.F5 426 } 427 return "" 428 } 429 430 func (x *M3) GetF6() int32 { 431 if x != nil { 432 return x.F6 433 } 434 return 0 435 } 436 437 type isM3_O1 interface { 438 isM3_O1() 439 } 440 441 type M3_F1 struct { 442 // f1 443 F1 int32 `protobuf:"varint,1,opt,name=f1,proto3,oneof"` 444 } 445 446 type M3_F2 struct { 447 // f2 448 F2 int32 `protobuf:"varint,2,opt,name=f2,proto3,oneof"` 449 } 450 451 func (*M3_F1) isM3_O1() {} 452 453 func (*M3_F2) isM3_O1() {} 454 455 type isM3_O2 interface { 456 isM3_O2() 457 } 458 459 type M3_F3 struct { 460 // f3 461 F3 int32 `protobuf:"varint,3,opt,name=f3,proto3,oneof"` 462 } 463 464 type M3_F4 struct { 465 // f4 466 F4 int32 `protobuf:"varint,4,opt,name=f4,proto3,oneof"` 467 } 468 469 func (*M3_F3) isM3_O2() {} 470 471 func (*M3_F4) isM3_O2() {} 472 473 type NestedMessageParent struct { 474 state protoimpl.MessageState 475 sizeCache protoimpl.SizeCache 476 unknownFields protoimpl.UnknownFields 477 } 478 479 func (x *NestedMessageParent) Reset() { 480 *x = NestedMessageParent{} 481 if protoimpl.UnsafeEnabled { 482 mi := &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[4] 483 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 484 ms.StoreMessageInfo(mi) 485 } 486 } 487 488 func (x *NestedMessageParent) String() string { 489 return protoimpl.X.MessageStringOf(x) 490 } 491 492 func (*NestedMessageParent) ProtoMessage() {} 493 494 func (x *NestedMessageParent) ProtoReflect() protoreflect.Message { 495 mi := &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[4] 496 if protoimpl.UnsafeEnabled && x != nil { 497 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 498 if ms.LoadMessageInfo() == nil { 499 ms.StoreMessageInfo(mi) 500 } 501 return ms 502 } 503 return mi.MessageOf(x) 504 } 505 506 // Deprecated: Use NestedMessageParent.ProtoReflect.Descriptor instead. 507 func (*NestedMessageParent) Descriptor() ([]byte, []int) { 508 return file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDescGZIP(), []int{4} 509 } 510 511 type ReservedRangeContainer struct { 512 state protoimpl.MessageState 513 sizeCache protoimpl.SizeCache 514 unknownFields protoimpl.UnknownFields 515 } 516 517 func (x *ReservedRangeContainer) Reset() { 518 *x = ReservedRangeContainer{} 519 if protoimpl.UnsafeEnabled { 520 mi := &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[5] 521 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 522 ms.StoreMessageInfo(mi) 523 } 524 } 525 526 func (x *ReservedRangeContainer) String() string { 527 return protoimpl.X.MessageStringOf(x) 528 } 529 530 func (*ReservedRangeContainer) ProtoMessage() {} 531 532 func (x *ReservedRangeContainer) ProtoReflect() protoreflect.Message { 533 mi := &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[5] 534 if protoimpl.UnsafeEnabled && x != nil { 535 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 536 if ms.LoadMessageInfo() == nil { 537 ms.StoreMessageInfo(mi) 538 } 539 return ms 540 } 541 return mi.MessageOf(x) 542 } 543 544 // Deprecated: Use ReservedRangeContainer.ProtoReflect.Descriptor instead. 545 func (*ReservedRangeContainer) Descriptor() ([]byte, []int) { 546 return file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDescGZIP(), []int{5} 547 } 548 549 type NestedMessageParent_NestedMessage struct { 550 state protoimpl.MessageState 551 sizeCache protoimpl.SizeCache 552 unknownFields protoimpl.UnknownFields 553 554 F1 int32 `protobuf:"varint,1,opt,name=f1,proto3" json:"f1,omitempty"` 555 F2 int32 `protobuf:"varint,2,opt,name=f2,proto3" json:"f2,omitempty"` 556 } 557 558 func (x *NestedMessageParent_NestedMessage) Reset() { 559 *x = NestedMessageParent_NestedMessage{} 560 if protoimpl.UnsafeEnabled { 561 mi := &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[6] 562 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 563 ms.StoreMessageInfo(mi) 564 } 565 } 566 567 func (x *NestedMessageParent_NestedMessage) String() string { 568 return protoimpl.X.MessageStringOf(x) 569 } 570 571 func (*NestedMessageParent_NestedMessage) ProtoMessage() {} 572 573 func (x *NestedMessageParent_NestedMessage) ProtoReflect() protoreflect.Message { 574 mi := &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[6] 575 if protoimpl.UnsafeEnabled && x != nil { 576 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 577 if ms.LoadMessageInfo() == nil { 578 ms.StoreMessageInfo(mi) 579 } 580 return ms 581 } 582 return mi.MessageOf(x) 583 } 584 585 // Deprecated: Use NestedMessageParent_NestedMessage.ProtoReflect.Descriptor instead. 586 func (*NestedMessageParent_NestedMessage) Descriptor() ([]byte, []int) { 587 return file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDescGZIP(), []int{4, 0} 588 } 589 590 func (x *NestedMessageParent_NestedMessage) GetF1() int32 { 591 if x != nil { 592 return x.F1 593 } 594 return 0 595 } 596 597 func (x *NestedMessageParent_NestedMessage) GetF2() int32 { 598 if x != nil { 599 return x.F2 600 } 601 return 0 602 } 603 604 var file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_extTypes = []protoimpl.ExtensionInfo{ 605 { 606 ExtendedType: (*descriptorpb.FieldOptions)(nil), 607 ExtensionType: (*string)(nil), 608 Field: 50001, 609 Name: "descutil.ext", 610 Tag: "bytes,50001,opt,name=ext", 611 Filename: "go.chromium.org/luci/common/proto/google/descutil/internal/util.proto", 612 }, 613 { 614 ExtendedType: (*descriptorpb.FieldOptions)(nil), 615 ExtensionType: (*SuperExt)(nil), 616 Field: 50002, 617 Name: "descutil.super_ext", 618 Tag: "bytes,50002,opt,name=super_ext", 619 Filename: "go.chromium.org/luci/common/proto/google/descutil/internal/util.proto", 620 }, 621 { 622 ExtendedType: (*descriptorpb.MessageOptions)(nil), 623 ExtensionType: (*string)(nil), 624 Field: 50001, 625 Name: "descutil.msgExt", 626 Tag: "bytes,50001,opt,name=msgExt", 627 Filename: "go.chromium.org/luci/common/proto/google/descutil/internal/util.proto", 628 }, 629 { 630 ExtendedType: (*descriptorpb.MessageOptions)(nil), 631 ExtensionType: (*SuperExt)(nil), 632 Field: 50002, 633 Name: "descutil.super_msg_ext", 634 Tag: "bytes,50002,opt,name=super_msg_ext", 635 Filename: "go.chromium.org/luci/common/proto/google/descutil/internal/util.proto", 636 }, 637 } 638 639 // Extension fields to descriptorpb.FieldOptions. 640 var ( 641 // optional string ext = 50001; 642 E_Ext = &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_extTypes[0] 643 // optional descutil.SuperExt super_ext = 50002; 644 E_SuperExt = &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_extTypes[1] 645 ) 646 647 // Extension fields to descriptorpb.MessageOptions. 648 var ( 649 // optional string msgExt = 50001; 650 E_MsgExt = &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_extTypes[2] 651 // optional descutil.SuperExt super_msg_ext = 50002; 652 E_SuperMsgExt = &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_extTypes[3] 653 ) 654 655 var File_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto protoreflect.FileDescriptor 656 657 var file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDesc = []byte{ 658 0x0a, 0x45, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 659 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 660 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x75, 661 0x74, 0x69, 0x6c, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x75, 0x74, 0x69, 662 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x64, 0x65, 0x73, 0x63, 0x75, 0x74, 0x69, 663 0x6c, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 664 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 665 0x6f, 0x74, 0x6f, 0x22, 0x26, 0x0a, 0x08, 0x53, 0x75, 0x70, 0x65, 0x72, 0x45, 0x78, 0x74, 0x12, 666 0x0c, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x61, 0x12, 0x0c, 0x0a, 667 0x01, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x62, 0x22, 0x90, 0x01, 0x0a, 0x02, 668 0x4d, 0x31, 0x12, 0x24, 0x0a, 0x02, 0x66, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x12, 669 0x8a, 0xb5, 0x18, 0x04, 0x6e, 0x61, 0x72, 0x66, 0x92, 0xb5, 0x18, 0x06, 0x0a, 0x01, 0x61, 0x12, 670 0x01, 0x62, 0x52, 0x04, 0x66, 0x6f, 0x6f, 0x66, 0x12, 0x18, 0x0a, 0x04, 0x6d, 0x65, 0x65, 0x70, 671 0x18, 0x02, 0x20, 0x03, 0x28, 0x03, 0x42, 0x04, 0x10, 0x00, 0x30, 0x02, 0x52, 0x04, 0x6d, 0x65, 672 0x65, 0x70, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x5f, 0x73, 0x6e, 673 0x61, 0x6b, 0x65, 0x5f, 0x63, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 674 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x53, 0x6e, 0x61, 0x6b, 0x65, 0x43, 0x61, 0x73, 0x65, 675 0x12, 0x1c, 0x0a, 0x0e, 0x6f, 0x6e, 0x6c, 0x79, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 676 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x63, 0x6f, 0x6f, 0x6c, 0x22, 0x5c, 677 0x0a, 0x02, 0x4d, 0x32, 0x12, 0x1c, 0x0a, 0x02, 0x66, 0x31, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 678 0x32, 0x0c, 0x2e, 0x64, 0x65, 0x73, 0x63, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x4d, 0x31, 0x52, 0x02, 679 0x66, 0x31, 0x12, 0x1c, 0x0a, 0x02, 0x66, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 680 0x2e, 0x64, 0x65, 0x73, 0x63, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x45, 0x31, 0x52, 0x02, 0x66, 0x32, 681 0x3a, 0x1a, 0x8a, 0xb5, 0x18, 0x03, 0x79, 0x65, 0x70, 0x92, 0xb5, 0x18, 0x0d, 0x0a, 0x04, 0x63, 682 0x6f, 0x6f, 0x6c, 0x12, 0x05, 0x62, 0x65, 0x61, 0x6e, 0x73, 0x18, 0x01, 0x22, 0x78, 0x0a, 0x02, 683 0x4d, 0x33, 0x12, 0x10, 0x0a, 0x02, 0x66, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 684 0x52, 0x02, 0x66, 0x31, 0x12, 0x10, 0x0a, 0x02, 0x66, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 685 0x48, 0x00, 0x52, 0x02, 0x66, 0x32, 0x12, 0x10, 0x0a, 0x02, 0x66, 0x33, 0x18, 0x03, 0x20, 0x01, 686 0x28, 0x05, 0x48, 0x01, 0x52, 0x02, 0x66, 0x33, 0x12, 0x10, 0x0a, 0x02, 0x66, 0x34, 0x18, 0x04, 687 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 0x52, 0x02, 0x66, 0x34, 0x12, 0x0e, 0x0a, 0x02, 0x66, 0x35, 688 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x66, 0x35, 0x12, 0x0e, 0x0a, 0x02, 0x66, 0x36, 689 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x66, 0x36, 0x42, 0x04, 0x0a, 0x02, 0x4f, 0x31, 690 0x42, 0x04, 0x0a, 0x02, 0x4f, 0x32, 0x22, 0x64, 0x0a, 0x13, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 691 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x1a, 0x2f, 0x0a, 692 0x0d, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 693 0x0a, 0x02, 0x66, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x66, 0x31, 0x12, 0x0e, 694 0x0a, 0x02, 0x66, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x66, 0x32, 0x22, 0x1c, 695 0x0a, 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x06, 0x0a, 0x02, 696 0x56, 0x30, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x56, 0x31, 0x10, 0x01, 0x22, 0x32, 0x0a, 0x16, 697 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6e, 698 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 699 0x10, 0x03, 0x52, 0x05, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x05, 0x77, 0x6f, 0x72, 0x6c, 0x64, 700 0x2a, 0x14, 0x0a, 0x02, 0x45, 0x31, 0x12, 0x06, 0x0a, 0x02, 0x56, 0x30, 0x10, 0x00, 0x12, 0x06, 701 0x0a, 0x02, 0x56, 0x31, 0x10, 0x01, 0x32, 0x28, 0x0a, 0x02, 0x53, 0x31, 0x12, 0x22, 0x0a, 0x02, 702 0x52, 0x31, 0x12, 0x0c, 0x2e, 0x64, 0x65, 0x73, 0x63, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x4d, 0x31, 703 0x1a, 0x0c, 0x2e, 0x64, 0x65, 0x73, 0x63, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x4d, 0x32, 0x22, 0x00, 704 0x32, 0x4c, 0x0a, 0x02, 0x53, 0x32, 0x12, 0x22, 0x0a, 0x02, 0x52, 0x31, 0x12, 0x0c, 0x2e, 0x64, 705 0x65, 0x73, 0x63, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x4d, 0x31, 0x1a, 0x0c, 0x2e, 0x64, 0x65, 0x73, 706 0x63, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x4d, 0x32, 0x22, 0x00, 0x12, 0x22, 0x0a, 0x02, 0x52, 0x32, 707 0x12, 0x0c, 0x2e, 0x64, 0x65, 0x73, 0x63, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x4d, 0x31, 0x1a, 0x0c, 708 0x2e, 0x64, 0x65, 0x73, 0x63, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x4d, 0x32, 0x22, 0x00, 0x3a, 0x31, 709 0x0a, 0x03, 0x65, 0x78, 0x74, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 710 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 711 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd1, 0x86, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x65, 0x78, 712 0x74, 0x3a, 0x50, 0x0a, 0x09, 0x73, 0x75, 0x70, 0x65, 0x72, 0x5f, 0x65, 0x78, 0x74, 0x12, 0x1d, 713 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 714 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd2, 0x86, 715 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x64, 0x65, 0x73, 0x63, 0x75, 0x74, 0x69, 0x6c, 716 0x2e, 0x53, 0x75, 0x70, 0x65, 0x72, 0x45, 0x78, 0x74, 0x52, 0x08, 0x73, 0x75, 0x70, 0x65, 0x72, 717 0x45, 0x78, 0x74, 0x3a, 0x39, 0x0a, 0x06, 0x6d, 0x73, 0x67, 0x45, 0x78, 0x74, 0x12, 0x1f, 0x2e, 718 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 719 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd1, 720 0x86, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x73, 0x67, 0x45, 0x78, 0x74, 0x3a, 0x59, 721 0x0a, 0x0d, 0x73, 0x75, 0x70, 0x65, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x5f, 0x65, 0x78, 0x74, 0x12, 722 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 723 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 724 0x18, 0xd2, 0x86, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x64, 0x65, 0x73, 0x63, 0x75, 725 0x74, 0x69, 0x6c, 0x2e, 0x53, 0x75, 0x70, 0x65, 0x72, 0x45, 0x78, 0x74, 0x52, 0x0b, 0x73, 0x75, 726 0x70, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x74, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x6f, 0x2e, 727 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 728 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 729 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x75, 0x74, 0x69, 0x6c, 0x2f, 0x69, 730 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 731 } 732 733 var ( 734 file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDescOnce sync.Once 735 file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDescData = file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDesc 736 ) 737 738 func file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDescGZIP() []byte { 739 file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDescOnce.Do(func() { 740 file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDescData) 741 }) 742 return file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDescData 743 } 744 745 var file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 746 var file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes = make([]protoimpl.MessageInfo, 7) 747 var file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_goTypes = []interface{}{ 748 (E1)(0), // 0: descutil.E1 749 (NestedMessageParent_NestedEnum)(0), // 1: descutil.NestedMessageParent.NestedEnum 750 (*SuperExt)(nil), // 2: descutil.SuperExt 751 (*M1)(nil), // 3: descutil.M1 752 (*M2)(nil), // 4: descutil.M2 753 (*M3)(nil), // 5: descutil.M3 754 (*NestedMessageParent)(nil), // 6: descutil.NestedMessageParent 755 (*ReservedRangeContainer)(nil), // 7: descutil.ReservedRangeContainer 756 (*NestedMessageParent_NestedMessage)(nil), // 8: descutil.NestedMessageParent.NestedMessage 757 (*descriptorpb.FieldOptions)(nil), // 9: google.protobuf.FieldOptions 758 (*descriptorpb.MessageOptions)(nil), // 10: google.protobuf.MessageOptions 759 } 760 var file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_depIdxs = []int32{ 761 3, // 0: descutil.M2.f1:type_name -> descutil.M1 762 0, // 1: descutil.M2.f2:type_name -> descutil.E1 763 9, // 2: descutil.ext:extendee -> google.protobuf.FieldOptions 764 9, // 3: descutil.super_ext:extendee -> google.protobuf.FieldOptions 765 10, // 4: descutil.msgExt:extendee -> google.protobuf.MessageOptions 766 10, // 5: descutil.super_msg_ext:extendee -> google.protobuf.MessageOptions 767 2, // 6: descutil.super_ext:type_name -> descutil.SuperExt 768 2, // 7: descutil.super_msg_ext:type_name -> descutil.SuperExt 769 3, // 8: descutil.S1.R1:input_type -> descutil.M1 770 3, // 9: descutil.S2.R1:input_type -> descutil.M1 771 3, // 10: descutil.S2.R2:input_type -> descutil.M1 772 4, // 11: descutil.S1.R1:output_type -> descutil.M2 773 4, // 12: descutil.S2.R1:output_type -> descutil.M2 774 4, // 13: descutil.S2.R2:output_type -> descutil.M2 775 11, // [11:14] is the sub-list for method output_type 776 8, // [8:11] is the sub-list for method input_type 777 6, // [6:8] is the sub-list for extension type_name 778 2, // [2:6] is the sub-list for extension extendee 779 0, // [0:2] is the sub-list for field type_name 780 } 781 782 func init() { file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_init() } 783 func file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_init() { 784 if File_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto != nil { 785 return 786 } 787 if !protoimpl.UnsafeEnabled { 788 file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 789 switch v := v.(*SuperExt); i { 790 case 0: 791 return &v.state 792 case 1: 793 return &v.sizeCache 794 case 2: 795 return &v.unknownFields 796 default: 797 return nil 798 } 799 } 800 file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 801 switch v := v.(*M1); i { 802 case 0: 803 return &v.state 804 case 1: 805 return &v.sizeCache 806 case 2: 807 return &v.unknownFields 808 default: 809 return nil 810 } 811 } 812 file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 813 switch v := v.(*M2); i { 814 case 0: 815 return &v.state 816 case 1: 817 return &v.sizeCache 818 case 2: 819 return &v.unknownFields 820 default: 821 return nil 822 } 823 } 824 file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 825 switch v := v.(*M3); i { 826 case 0: 827 return &v.state 828 case 1: 829 return &v.sizeCache 830 case 2: 831 return &v.unknownFields 832 default: 833 return nil 834 } 835 } 836 file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 837 switch v := v.(*NestedMessageParent); i { 838 case 0: 839 return &v.state 840 case 1: 841 return &v.sizeCache 842 case 2: 843 return &v.unknownFields 844 default: 845 return nil 846 } 847 } 848 file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 849 switch v := v.(*ReservedRangeContainer); i { 850 case 0: 851 return &v.state 852 case 1: 853 return &v.sizeCache 854 case 2: 855 return &v.unknownFields 856 default: 857 return nil 858 } 859 } 860 file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 861 switch v := v.(*NestedMessageParent_NestedMessage); i { 862 case 0: 863 return &v.state 864 case 1: 865 return &v.sizeCache 866 case 2: 867 return &v.unknownFields 868 default: 869 return nil 870 } 871 } 872 } 873 file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes[3].OneofWrappers = []interface{}{ 874 (*M3_F1)(nil), 875 (*M3_F2)(nil), 876 (*M3_F3)(nil), 877 (*M3_F4)(nil), 878 } 879 type x struct{} 880 out := protoimpl.TypeBuilder{ 881 File: protoimpl.DescBuilder{ 882 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 883 RawDescriptor: file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDesc, 884 NumEnums: 2, 885 NumMessages: 7, 886 NumExtensions: 4, 887 NumServices: 2, 888 }, 889 GoTypes: file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_goTypes, 890 DependencyIndexes: file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_depIdxs, 891 EnumInfos: file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_enumTypes, 892 MessageInfos: file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_msgTypes, 893 ExtensionInfos: file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_extTypes, 894 }.Build() 895 File_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto = out.File 896 file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_rawDesc = nil 897 file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_goTypes = nil 898 file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_depIdxs = nil 899 } 900 901 // Reference imports to suppress errors if they are not otherwise used. 902 var _ context.Context 903 var _ grpc.ClientConnInterface 904 905 // This is a compile-time assertion to ensure that this generated file 906 // is compatible with the grpc package it is being compiled against. 907 const _ = grpc.SupportPackageIsVersion6 908 909 // S1Client is the client API for S1 service. 910 // 911 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 912 type S1Client interface { 913 // R1 914 R1(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) 915 } 916 type s1PRPCClient struct { 917 client *prpc.Client 918 } 919 920 func NewS1PRPCClient(client *prpc.Client) S1Client { 921 return &s1PRPCClient{client} 922 } 923 924 func (c *s1PRPCClient) R1(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) { 925 out := new(M2) 926 err := c.client.Call(ctx, "descutil.S1", "R1", in, out, opts...) 927 if err != nil { 928 return nil, err 929 } 930 return out, nil 931 } 932 933 type s1Client struct { 934 cc grpc.ClientConnInterface 935 } 936 937 func NewS1Client(cc grpc.ClientConnInterface) S1Client { 938 return &s1Client{cc} 939 } 940 941 func (c *s1Client) R1(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) { 942 out := new(M2) 943 err := c.cc.Invoke(ctx, "/descutil.S1/R1", in, out, opts...) 944 if err != nil { 945 return nil, err 946 } 947 return out, nil 948 } 949 950 // S1Server is the server API for S1 service. 951 type S1Server interface { 952 // R1 953 R1(context.Context, *M1) (*M2, error) 954 } 955 956 // UnimplementedS1Server can be embedded to have forward compatible implementations. 957 type UnimplementedS1Server struct { 958 } 959 960 func (*UnimplementedS1Server) R1(context.Context, *M1) (*M2, error) { 961 return nil, status.Errorf(codes.Unimplemented, "method R1 not implemented") 962 } 963 964 func RegisterS1Server(s prpc.Registrar, srv S1Server) { 965 s.RegisterService(&_S1_serviceDesc, srv) 966 } 967 968 func _S1_R1_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 969 in := new(M1) 970 if err := dec(in); err != nil { 971 return nil, err 972 } 973 if interceptor == nil { 974 return srv.(S1Server).R1(ctx, in) 975 } 976 info := &grpc.UnaryServerInfo{ 977 Server: srv, 978 FullMethod: "/descutil.S1/R1", 979 } 980 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 981 return srv.(S1Server).R1(ctx, req.(*M1)) 982 } 983 return interceptor(ctx, in, info, handler) 984 } 985 986 var _S1_serviceDesc = grpc.ServiceDesc{ 987 ServiceName: "descutil.S1", 988 HandlerType: (*S1Server)(nil), 989 Methods: []grpc.MethodDesc{ 990 { 991 MethodName: "R1", 992 Handler: _S1_R1_Handler, 993 }, 994 }, 995 Streams: []grpc.StreamDesc{}, 996 Metadata: "go.chromium.org/luci/common/proto/google/descutil/internal/util.proto", 997 } 998 999 // S2Client is the client API for S2 service. 1000 // 1001 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1002 type S2Client interface { 1003 // R1 1004 R1(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) 1005 // R2 1006 R2(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) 1007 } 1008 type s2PRPCClient struct { 1009 client *prpc.Client 1010 } 1011 1012 func NewS2PRPCClient(client *prpc.Client) S2Client { 1013 return &s2PRPCClient{client} 1014 } 1015 1016 func (c *s2PRPCClient) R1(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) { 1017 out := new(M2) 1018 err := c.client.Call(ctx, "descutil.S2", "R1", in, out, opts...) 1019 if err != nil { 1020 return nil, err 1021 } 1022 return out, nil 1023 } 1024 1025 func (c *s2PRPCClient) R2(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) { 1026 out := new(M2) 1027 err := c.client.Call(ctx, "descutil.S2", "R2", in, out, opts...) 1028 if err != nil { 1029 return nil, err 1030 } 1031 return out, nil 1032 } 1033 1034 type s2Client struct { 1035 cc grpc.ClientConnInterface 1036 } 1037 1038 func NewS2Client(cc grpc.ClientConnInterface) S2Client { 1039 return &s2Client{cc} 1040 } 1041 1042 func (c *s2Client) R1(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) { 1043 out := new(M2) 1044 err := c.cc.Invoke(ctx, "/descutil.S2/R1", in, out, opts...) 1045 if err != nil { 1046 return nil, err 1047 } 1048 return out, nil 1049 } 1050 1051 func (c *s2Client) R2(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) { 1052 out := new(M2) 1053 err := c.cc.Invoke(ctx, "/descutil.S2/R2", in, out, opts...) 1054 if err != nil { 1055 return nil, err 1056 } 1057 return out, nil 1058 } 1059 1060 // S2Server is the server API for S2 service. 1061 type S2Server interface { 1062 // R1 1063 R1(context.Context, *M1) (*M2, error) 1064 // R2 1065 R2(context.Context, *M1) (*M2, error) 1066 } 1067 1068 // UnimplementedS2Server can be embedded to have forward compatible implementations. 1069 type UnimplementedS2Server struct { 1070 } 1071 1072 func (*UnimplementedS2Server) R1(context.Context, *M1) (*M2, error) { 1073 return nil, status.Errorf(codes.Unimplemented, "method R1 not implemented") 1074 } 1075 func (*UnimplementedS2Server) R2(context.Context, *M1) (*M2, error) { 1076 return nil, status.Errorf(codes.Unimplemented, "method R2 not implemented") 1077 } 1078 1079 func RegisterS2Server(s prpc.Registrar, srv S2Server) { 1080 s.RegisterService(&_S2_serviceDesc, srv) 1081 } 1082 1083 func _S2_R1_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1084 in := new(M1) 1085 if err := dec(in); err != nil { 1086 return nil, err 1087 } 1088 if interceptor == nil { 1089 return srv.(S2Server).R1(ctx, in) 1090 } 1091 info := &grpc.UnaryServerInfo{ 1092 Server: srv, 1093 FullMethod: "/descutil.S2/R1", 1094 } 1095 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1096 return srv.(S2Server).R1(ctx, req.(*M1)) 1097 } 1098 return interceptor(ctx, in, info, handler) 1099 } 1100 1101 func _S2_R2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1102 in := new(M1) 1103 if err := dec(in); err != nil { 1104 return nil, err 1105 } 1106 if interceptor == nil { 1107 return srv.(S2Server).R2(ctx, in) 1108 } 1109 info := &grpc.UnaryServerInfo{ 1110 Server: srv, 1111 FullMethod: "/descutil.S2/R2", 1112 } 1113 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1114 return srv.(S2Server).R2(ctx, req.(*M1)) 1115 } 1116 return interceptor(ctx, in, info, handler) 1117 } 1118 1119 var _S2_serviceDesc = grpc.ServiceDesc{ 1120 ServiceName: "descutil.S2", 1121 HandlerType: (*S2Server)(nil), 1122 Methods: []grpc.MethodDesc{ 1123 { 1124 MethodName: "R1", 1125 Handler: _S2_R1_Handler, 1126 }, 1127 { 1128 MethodName: "R2", 1129 Handler: _S2_R2_Handler, 1130 }, 1131 }, 1132 Streams: []grpc.StreamDesc{}, 1133 Metadata: "go.chromium.org/luci/common/proto/google/descutil/internal/util.proto", 1134 }