github.com/bakjos/protoreflect@v1.9.2/internal/testprotos/grpc/test.pb.go (about) 1 // Copyright 2017 gRPC authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // An integration test service that covers all the method signature permutations 16 // of unary/streaming requests/responses. 17 18 // Code generated by protoc-gen-go. DO NOT EDIT. 19 // versions: 20 // protoc-gen-go v1.25.0-devel 21 // protoc v3.12.0 22 // source: grpc/test.proto 23 24 package grpc 25 26 import ( 27 context "context" 28 proto "github.com/golang/protobuf/proto" 29 grpc "google.golang.org/grpc" 30 codes "google.golang.org/grpc/codes" 31 status "google.golang.org/grpc/status" 32 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 33 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 34 reflect "reflect" 35 sync "sync" 36 ) 37 38 const ( 39 // Verify that this generated code is sufficiently up-to-date. 40 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 41 // Verify that runtime/protoimpl is sufficiently up-to-date. 42 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 43 ) 44 45 // This is a compile-time assertion that a sufficiently up-to-date version 46 // of the legacy proto package is being used. 47 const _ = proto.ProtoPackageIsVersion4 48 49 // The type of payload that should be returned. 50 type PayloadType int32 51 52 const ( 53 // Compressable text format. 54 PayloadType_COMPRESSABLE PayloadType = 0 55 // Uncompressable binary format. 56 PayloadType_UNCOMPRESSABLE PayloadType = 1 57 // Randomly chosen from all other formats defined in this enum. 58 PayloadType_RANDOM PayloadType = 2 59 ) 60 61 // Enum value maps for PayloadType. 62 var ( 63 PayloadType_name = map[int32]string{ 64 0: "COMPRESSABLE", 65 1: "UNCOMPRESSABLE", 66 2: "RANDOM", 67 } 68 PayloadType_value = map[string]int32{ 69 "COMPRESSABLE": 0, 70 "UNCOMPRESSABLE": 1, 71 "RANDOM": 2, 72 } 73 ) 74 75 func (x PayloadType) Enum() *PayloadType { 76 p := new(PayloadType) 77 *p = x 78 return p 79 } 80 81 func (x PayloadType) String() string { 82 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 83 } 84 85 func (PayloadType) Descriptor() protoreflect.EnumDescriptor { 86 return file_grpc_test_proto_enumTypes[0].Descriptor() 87 } 88 89 func (PayloadType) Type() protoreflect.EnumType { 90 return &file_grpc_test_proto_enumTypes[0] 91 } 92 93 func (x PayloadType) Number() protoreflect.EnumNumber { 94 return protoreflect.EnumNumber(x) 95 } 96 97 // Deprecated: Use PayloadType.Descriptor instead. 98 func (PayloadType) EnumDescriptor() ([]byte, []int) { 99 return file_grpc_test_proto_rawDescGZIP(), []int{0} 100 } 101 102 // The type of route that a client took to reach a server w.r.t. gRPCLB. 103 // The server must fill in "fallback" if it detects that the RPC reached 104 // the server via the "gRPCLB fallback" path, and "backend" if it detects 105 // that the RPC reached the server via "gRPCLB backend" path (i.e. if it got 106 // the address of this server from the gRPCLB server BalanceLoad RPC). Exactly 107 // how this detection is done is context and server dependant. 108 type GrpclbRouteType int32 109 110 const ( 111 // Server didn't detect the route that a client took to reach it. 112 GrpclbRouteType_GRPCLB_ROUTE_TYPE_UNKNOWN GrpclbRouteType = 0 113 // Indicates that a client reached a server via gRPCLB fallback. 114 GrpclbRouteType_GRPCLB_ROUTE_TYPE_FALLBACK GrpclbRouteType = 1 115 // Indicates that a client reached a server as a gRPCLB-given backend. 116 GrpclbRouteType_GRPCLB_ROUTE_TYPE_BACKEND GrpclbRouteType = 2 117 ) 118 119 // Enum value maps for GrpclbRouteType. 120 var ( 121 GrpclbRouteType_name = map[int32]string{ 122 0: "GRPCLB_ROUTE_TYPE_UNKNOWN", 123 1: "GRPCLB_ROUTE_TYPE_FALLBACK", 124 2: "GRPCLB_ROUTE_TYPE_BACKEND", 125 } 126 GrpclbRouteType_value = map[string]int32{ 127 "GRPCLB_ROUTE_TYPE_UNKNOWN": 0, 128 "GRPCLB_ROUTE_TYPE_FALLBACK": 1, 129 "GRPCLB_ROUTE_TYPE_BACKEND": 2, 130 } 131 ) 132 133 func (x GrpclbRouteType) Enum() *GrpclbRouteType { 134 p := new(GrpclbRouteType) 135 *p = x 136 return p 137 } 138 139 func (x GrpclbRouteType) String() string { 140 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 141 } 142 143 func (GrpclbRouteType) Descriptor() protoreflect.EnumDescriptor { 144 return file_grpc_test_proto_enumTypes[1].Descriptor() 145 } 146 147 func (GrpclbRouteType) Type() protoreflect.EnumType { 148 return &file_grpc_test_proto_enumTypes[1] 149 } 150 151 func (x GrpclbRouteType) Number() protoreflect.EnumNumber { 152 return protoreflect.EnumNumber(x) 153 } 154 155 // Deprecated: Use GrpclbRouteType.Descriptor instead. 156 func (GrpclbRouteType) EnumDescriptor() ([]byte, []int) { 157 return file_grpc_test_proto_rawDescGZIP(), []int{1} 158 } 159 160 type Empty struct { 161 state protoimpl.MessageState 162 sizeCache protoimpl.SizeCache 163 unknownFields protoimpl.UnknownFields 164 } 165 166 func (x *Empty) Reset() { 167 *x = Empty{} 168 if protoimpl.UnsafeEnabled { 169 mi := &file_grpc_test_proto_msgTypes[0] 170 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 171 ms.StoreMessageInfo(mi) 172 } 173 } 174 175 func (x *Empty) String() string { 176 return protoimpl.X.MessageStringOf(x) 177 } 178 179 func (*Empty) ProtoMessage() {} 180 181 func (x *Empty) ProtoReflect() protoreflect.Message { 182 mi := &file_grpc_test_proto_msgTypes[0] 183 if protoimpl.UnsafeEnabled && x != nil { 184 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 185 if ms.LoadMessageInfo() == nil { 186 ms.StoreMessageInfo(mi) 187 } 188 return ms 189 } 190 return mi.MessageOf(x) 191 } 192 193 // Deprecated: Use Empty.ProtoReflect.Descriptor instead. 194 func (*Empty) Descriptor() ([]byte, []int) { 195 return file_grpc_test_proto_rawDescGZIP(), []int{0} 196 } 197 198 // A block of data, to simply increase gRPC message size. 199 type Payload struct { 200 state protoimpl.MessageState 201 sizeCache protoimpl.SizeCache 202 unknownFields protoimpl.UnknownFields 203 204 // The type of data in body. 205 Type PayloadType `protobuf:"varint,1,opt,name=type,proto3,enum=grpc.testing.PayloadType" json:"type,omitempty"` 206 // Primary contents of payload. 207 Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` 208 } 209 210 func (x *Payload) Reset() { 211 *x = Payload{} 212 if protoimpl.UnsafeEnabled { 213 mi := &file_grpc_test_proto_msgTypes[1] 214 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 215 ms.StoreMessageInfo(mi) 216 } 217 } 218 219 func (x *Payload) String() string { 220 return protoimpl.X.MessageStringOf(x) 221 } 222 223 func (*Payload) ProtoMessage() {} 224 225 func (x *Payload) ProtoReflect() protoreflect.Message { 226 mi := &file_grpc_test_proto_msgTypes[1] 227 if protoimpl.UnsafeEnabled && x != nil { 228 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 229 if ms.LoadMessageInfo() == nil { 230 ms.StoreMessageInfo(mi) 231 } 232 return ms 233 } 234 return mi.MessageOf(x) 235 } 236 237 // Deprecated: Use Payload.ProtoReflect.Descriptor instead. 238 func (*Payload) Descriptor() ([]byte, []int) { 239 return file_grpc_test_proto_rawDescGZIP(), []int{1} 240 } 241 242 func (x *Payload) GetType() PayloadType { 243 if x != nil { 244 return x.Type 245 } 246 return PayloadType_COMPRESSABLE 247 } 248 249 func (x *Payload) GetBody() []byte { 250 if x != nil { 251 return x.Body 252 } 253 return nil 254 } 255 256 // A protobuf representation for grpc status. This is used by test 257 // clients to specify a status that the server should attempt to return. 258 type EchoStatus struct { 259 state protoimpl.MessageState 260 sizeCache protoimpl.SizeCache 261 unknownFields protoimpl.UnknownFields 262 263 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 264 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` 265 } 266 267 func (x *EchoStatus) Reset() { 268 *x = EchoStatus{} 269 if protoimpl.UnsafeEnabled { 270 mi := &file_grpc_test_proto_msgTypes[2] 271 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 272 ms.StoreMessageInfo(mi) 273 } 274 } 275 276 func (x *EchoStatus) String() string { 277 return protoimpl.X.MessageStringOf(x) 278 } 279 280 func (*EchoStatus) ProtoMessage() {} 281 282 func (x *EchoStatus) ProtoReflect() protoreflect.Message { 283 mi := &file_grpc_test_proto_msgTypes[2] 284 if protoimpl.UnsafeEnabled && x != nil { 285 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 286 if ms.LoadMessageInfo() == nil { 287 ms.StoreMessageInfo(mi) 288 } 289 return ms 290 } 291 return mi.MessageOf(x) 292 } 293 294 // Deprecated: Use EchoStatus.ProtoReflect.Descriptor instead. 295 func (*EchoStatus) Descriptor() ([]byte, []int) { 296 return file_grpc_test_proto_rawDescGZIP(), []int{2} 297 } 298 299 func (x *EchoStatus) GetCode() int32 { 300 if x != nil { 301 return x.Code 302 } 303 return 0 304 } 305 306 func (x *EchoStatus) GetMessage() string { 307 if x != nil { 308 return x.Message 309 } 310 return "" 311 } 312 313 // Unary request. 314 type SimpleRequest struct { 315 state protoimpl.MessageState 316 sizeCache protoimpl.SizeCache 317 unknownFields protoimpl.UnknownFields 318 319 // Desired payload type in the response from the server. 320 // If response_type is RANDOM, server randomly chooses one from other formats. 321 ResponseType PayloadType `protobuf:"varint,1,opt,name=response_type,json=responseType,proto3,enum=grpc.testing.PayloadType" json:"response_type,omitempty"` 322 // Desired payload size in the response from the server. 323 // If response_type is COMPRESSABLE, this denotes the size before compression. 324 ResponseSize int32 `protobuf:"varint,2,opt,name=response_size,json=responseSize,proto3" json:"response_size,omitempty"` 325 // Optional input payload sent along with the request. 326 Payload *Payload `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` 327 // Whether SimpleResponse should include username. 328 FillUsername bool `protobuf:"varint,4,opt,name=fill_username,json=fillUsername,proto3" json:"fill_username,omitempty"` 329 // Whether SimpleResponse should include OAuth scope. 330 FillOauthScope bool `protobuf:"varint,5,opt,name=fill_oauth_scope,json=fillOauthScope,proto3" json:"fill_oauth_scope,omitempty"` 331 // Whether server should return a given status 332 ResponseStatus *EchoStatus `protobuf:"bytes,7,opt,name=response_status,json=responseStatus,proto3" json:"response_status,omitempty"` 333 // Whether SimpleResponse should include server_id. 334 FillServerId bool `protobuf:"varint,9,opt,name=fill_server_id,json=fillServerId,proto3" json:"fill_server_id,omitempty"` 335 // Whether SimpleResponse should include grpclb_route_type. 336 FillGrpclbRouteType bool `protobuf:"varint,10,opt,name=fill_grpclb_route_type,json=fillGrpclbRouteType,proto3" json:"fill_grpclb_route_type,omitempty"` 337 } 338 339 func (x *SimpleRequest) Reset() { 340 *x = SimpleRequest{} 341 if protoimpl.UnsafeEnabled { 342 mi := &file_grpc_test_proto_msgTypes[3] 343 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 344 ms.StoreMessageInfo(mi) 345 } 346 } 347 348 func (x *SimpleRequest) String() string { 349 return protoimpl.X.MessageStringOf(x) 350 } 351 352 func (*SimpleRequest) ProtoMessage() {} 353 354 func (x *SimpleRequest) ProtoReflect() protoreflect.Message { 355 mi := &file_grpc_test_proto_msgTypes[3] 356 if protoimpl.UnsafeEnabled && x != nil { 357 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 358 if ms.LoadMessageInfo() == nil { 359 ms.StoreMessageInfo(mi) 360 } 361 return ms 362 } 363 return mi.MessageOf(x) 364 } 365 366 // Deprecated: Use SimpleRequest.ProtoReflect.Descriptor instead. 367 func (*SimpleRequest) Descriptor() ([]byte, []int) { 368 return file_grpc_test_proto_rawDescGZIP(), []int{3} 369 } 370 371 func (x *SimpleRequest) GetResponseType() PayloadType { 372 if x != nil { 373 return x.ResponseType 374 } 375 return PayloadType_COMPRESSABLE 376 } 377 378 func (x *SimpleRequest) GetResponseSize() int32 { 379 if x != nil { 380 return x.ResponseSize 381 } 382 return 0 383 } 384 385 func (x *SimpleRequest) GetPayload() *Payload { 386 if x != nil { 387 return x.Payload 388 } 389 return nil 390 } 391 392 func (x *SimpleRequest) GetFillUsername() bool { 393 if x != nil { 394 return x.FillUsername 395 } 396 return false 397 } 398 399 func (x *SimpleRequest) GetFillOauthScope() bool { 400 if x != nil { 401 return x.FillOauthScope 402 } 403 return false 404 } 405 406 func (x *SimpleRequest) GetResponseStatus() *EchoStatus { 407 if x != nil { 408 return x.ResponseStatus 409 } 410 return nil 411 } 412 413 func (x *SimpleRequest) GetFillServerId() bool { 414 if x != nil { 415 return x.FillServerId 416 } 417 return false 418 } 419 420 func (x *SimpleRequest) GetFillGrpclbRouteType() bool { 421 if x != nil { 422 return x.FillGrpclbRouteType 423 } 424 return false 425 } 426 427 // Unary response, as configured by the request. 428 type SimpleResponse struct { 429 state protoimpl.MessageState 430 sizeCache protoimpl.SizeCache 431 unknownFields protoimpl.UnknownFields 432 433 // Payload to increase message size. 434 Payload *Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` 435 // The user the request came from, for verifying authentication was 436 // successful when the client expected it. 437 Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` 438 // OAuth scope. 439 OauthScope string `protobuf:"bytes,3,opt,name=oauth_scope,json=oauthScope,proto3" json:"oauth_scope,omitempty"` 440 // Server ID. This must be unique among different server instances, 441 // but the same across all RPC's made to a particular server instance. 442 ServerId string `protobuf:"bytes,4,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` 443 // gRPCLB Path. 444 GrpclbRouteType GrpclbRouteType `protobuf:"varint,5,opt,name=grpclb_route_type,json=grpclbRouteType,proto3,enum=grpc.testing.GrpclbRouteType" json:"grpclb_route_type,omitempty"` 445 // Server hostname. 446 Hostname string `protobuf:"bytes,6,opt,name=hostname,proto3" json:"hostname,omitempty"` 447 } 448 449 func (x *SimpleResponse) Reset() { 450 *x = SimpleResponse{} 451 if protoimpl.UnsafeEnabled { 452 mi := &file_grpc_test_proto_msgTypes[4] 453 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 454 ms.StoreMessageInfo(mi) 455 } 456 } 457 458 func (x *SimpleResponse) String() string { 459 return protoimpl.X.MessageStringOf(x) 460 } 461 462 func (*SimpleResponse) ProtoMessage() {} 463 464 func (x *SimpleResponse) ProtoReflect() protoreflect.Message { 465 mi := &file_grpc_test_proto_msgTypes[4] 466 if protoimpl.UnsafeEnabled && x != nil { 467 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 468 if ms.LoadMessageInfo() == nil { 469 ms.StoreMessageInfo(mi) 470 } 471 return ms 472 } 473 return mi.MessageOf(x) 474 } 475 476 // Deprecated: Use SimpleResponse.ProtoReflect.Descriptor instead. 477 func (*SimpleResponse) Descriptor() ([]byte, []int) { 478 return file_grpc_test_proto_rawDescGZIP(), []int{4} 479 } 480 481 func (x *SimpleResponse) GetPayload() *Payload { 482 if x != nil { 483 return x.Payload 484 } 485 return nil 486 } 487 488 func (x *SimpleResponse) GetUsername() string { 489 if x != nil { 490 return x.Username 491 } 492 return "" 493 } 494 495 func (x *SimpleResponse) GetOauthScope() string { 496 if x != nil { 497 return x.OauthScope 498 } 499 return "" 500 } 501 502 func (x *SimpleResponse) GetServerId() string { 503 if x != nil { 504 return x.ServerId 505 } 506 return "" 507 } 508 509 func (x *SimpleResponse) GetGrpclbRouteType() GrpclbRouteType { 510 if x != nil { 511 return x.GrpclbRouteType 512 } 513 return GrpclbRouteType_GRPCLB_ROUTE_TYPE_UNKNOWN 514 } 515 516 func (x *SimpleResponse) GetHostname() string { 517 if x != nil { 518 return x.Hostname 519 } 520 return "" 521 } 522 523 // Client-streaming request. 524 type StreamingInputCallRequest struct { 525 state protoimpl.MessageState 526 sizeCache protoimpl.SizeCache 527 unknownFields protoimpl.UnknownFields 528 529 // Optional input payload sent along with the request. 530 Payload *Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` 531 } 532 533 func (x *StreamingInputCallRequest) Reset() { 534 *x = StreamingInputCallRequest{} 535 if protoimpl.UnsafeEnabled { 536 mi := &file_grpc_test_proto_msgTypes[5] 537 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 538 ms.StoreMessageInfo(mi) 539 } 540 } 541 542 func (x *StreamingInputCallRequest) String() string { 543 return protoimpl.X.MessageStringOf(x) 544 } 545 546 func (*StreamingInputCallRequest) ProtoMessage() {} 547 548 func (x *StreamingInputCallRequest) ProtoReflect() protoreflect.Message { 549 mi := &file_grpc_test_proto_msgTypes[5] 550 if protoimpl.UnsafeEnabled && x != nil { 551 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 552 if ms.LoadMessageInfo() == nil { 553 ms.StoreMessageInfo(mi) 554 } 555 return ms 556 } 557 return mi.MessageOf(x) 558 } 559 560 // Deprecated: Use StreamingInputCallRequest.ProtoReflect.Descriptor instead. 561 func (*StreamingInputCallRequest) Descriptor() ([]byte, []int) { 562 return file_grpc_test_proto_rawDescGZIP(), []int{5} 563 } 564 565 func (x *StreamingInputCallRequest) GetPayload() *Payload { 566 if x != nil { 567 return x.Payload 568 } 569 return nil 570 } 571 572 // Client-streaming response. 573 type StreamingInputCallResponse struct { 574 state protoimpl.MessageState 575 sizeCache protoimpl.SizeCache 576 unknownFields protoimpl.UnknownFields 577 578 // Aggregated size of payloads received from the client. 579 AggregatedPayloadSize int32 `protobuf:"varint,1,opt,name=aggregated_payload_size,json=aggregatedPayloadSize,proto3" json:"aggregated_payload_size,omitempty"` 580 } 581 582 func (x *StreamingInputCallResponse) Reset() { 583 *x = StreamingInputCallResponse{} 584 if protoimpl.UnsafeEnabled { 585 mi := &file_grpc_test_proto_msgTypes[6] 586 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 587 ms.StoreMessageInfo(mi) 588 } 589 } 590 591 func (x *StreamingInputCallResponse) String() string { 592 return protoimpl.X.MessageStringOf(x) 593 } 594 595 func (*StreamingInputCallResponse) ProtoMessage() {} 596 597 func (x *StreamingInputCallResponse) ProtoReflect() protoreflect.Message { 598 mi := &file_grpc_test_proto_msgTypes[6] 599 if protoimpl.UnsafeEnabled && x != nil { 600 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 601 if ms.LoadMessageInfo() == nil { 602 ms.StoreMessageInfo(mi) 603 } 604 return ms 605 } 606 return mi.MessageOf(x) 607 } 608 609 // Deprecated: Use StreamingInputCallResponse.ProtoReflect.Descriptor instead. 610 func (*StreamingInputCallResponse) Descriptor() ([]byte, []int) { 611 return file_grpc_test_proto_rawDescGZIP(), []int{6} 612 } 613 614 func (x *StreamingInputCallResponse) GetAggregatedPayloadSize() int32 { 615 if x != nil { 616 return x.AggregatedPayloadSize 617 } 618 return 0 619 } 620 621 // Configuration for a particular response. 622 type ResponseParameters struct { 623 state protoimpl.MessageState 624 sizeCache protoimpl.SizeCache 625 unknownFields protoimpl.UnknownFields 626 627 // Desired payload sizes in responses from the server. 628 // If response_type is COMPRESSABLE, this denotes the size before compression. 629 Size int32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` 630 // Desired interval between consecutive responses in the response stream in 631 // microseconds. 632 IntervalUs int32 `protobuf:"varint,2,opt,name=interval_us,json=intervalUs,proto3" json:"interval_us,omitempty"` 633 } 634 635 func (x *ResponseParameters) Reset() { 636 *x = ResponseParameters{} 637 if protoimpl.UnsafeEnabled { 638 mi := &file_grpc_test_proto_msgTypes[7] 639 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 640 ms.StoreMessageInfo(mi) 641 } 642 } 643 644 func (x *ResponseParameters) String() string { 645 return protoimpl.X.MessageStringOf(x) 646 } 647 648 func (*ResponseParameters) ProtoMessage() {} 649 650 func (x *ResponseParameters) ProtoReflect() protoreflect.Message { 651 mi := &file_grpc_test_proto_msgTypes[7] 652 if protoimpl.UnsafeEnabled && x != nil { 653 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 654 if ms.LoadMessageInfo() == nil { 655 ms.StoreMessageInfo(mi) 656 } 657 return ms 658 } 659 return mi.MessageOf(x) 660 } 661 662 // Deprecated: Use ResponseParameters.ProtoReflect.Descriptor instead. 663 func (*ResponseParameters) Descriptor() ([]byte, []int) { 664 return file_grpc_test_proto_rawDescGZIP(), []int{7} 665 } 666 667 func (x *ResponseParameters) GetSize() int32 { 668 if x != nil { 669 return x.Size 670 } 671 return 0 672 } 673 674 func (x *ResponseParameters) GetIntervalUs() int32 { 675 if x != nil { 676 return x.IntervalUs 677 } 678 return 0 679 } 680 681 // Server-streaming request. 682 type StreamingOutputCallRequest struct { 683 state protoimpl.MessageState 684 sizeCache protoimpl.SizeCache 685 unknownFields protoimpl.UnknownFields 686 687 // Desired payload type in the response from the server. 688 // If response_type is RANDOM, the payload from each response in the stream 689 // might be of different types. This is to simulate a mixed type of payload 690 // stream. 691 ResponseType PayloadType `protobuf:"varint,1,opt,name=response_type,json=responseType,proto3,enum=grpc.testing.PayloadType" json:"response_type,omitempty"` 692 // Configuration for each expected response message. 693 ResponseParameters []*ResponseParameters `protobuf:"bytes,2,rep,name=response_parameters,json=responseParameters,proto3" json:"response_parameters,omitempty"` 694 // Optional input payload sent along with the request. 695 Payload *Payload `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` 696 // Whether server should return a given status 697 ResponseStatus *EchoStatus `protobuf:"bytes,7,opt,name=response_status,json=responseStatus,proto3" json:"response_status,omitempty"` 698 } 699 700 func (x *StreamingOutputCallRequest) Reset() { 701 *x = StreamingOutputCallRequest{} 702 if protoimpl.UnsafeEnabled { 703 mi := &file_grpc_test_proto_msgTypes[8] 704 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 705 ms.StoreMessageInfo(mi) 706 } 707 } 708 709 func (x *StreamingOutputCallRequest) String() string { 710 return protoimpl.X.MessageStringOf(x) 711 } 712 713 func (*StreamingOutputCallRequest) ProtoMessage() {} 714 715 func (x *StreamingOutputCallRequest) ProtoReflect() protoreflect.Message { 716 mi := &file_grpc_test_proto_msgTypes[8] 717 if protoimpl.UnsafeEnabled && x != nil { 718 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 719 if ms.LoadMessageInfo() == nil { 720 ms.StoreMessageInfo(mi) 721 } 722 return ms 723 } 724 return mi.MessageOf(x) 725 } 726 727 // Deprecated: Use StreamingOutputCallRequest.ProtoReflect.Descriptor instead. 728 func (*StreamingOutputCallRequest) Descriptor() ([]byte, []int) { 729 return file_grpc_test_proto_rawDescGZIP(), []int{8} 730 } 731 732 func (x *StreamingOutputCallRequest) GetResponseType() PayloadType { 733 if x != nil { 734 return x.ResponseType 735 } 736 return PayloadType_COMPRESSABLE 737 } 738 739 func (x *StreamingOutputCallRequest) GetResponseParameters() []*ResponseParameters { 740 if x != nil { 741 return x.ResponseParameters 742 } 743 return nil 744 } 745 746 func (x *StreamingOutputCallRequest) GetPayload() *Payload { 747 if x != nil { 748 return x.Payload 749 } 750 return nil 751 } 752 753 func (x *StreamingOutputCallRequest) GetResponseStatus() *EchoStatus { 754 if x != nil { 755 return x.ResponseStatus 756 } 757 return nil 758 } 759 760 // Server-streaming response, as configured by the request and parameters. 761 type StreamingOutputCallResponse struct { 762 state protoimpl.MessageState 763 sizeCache protoimpl.SizeCache 764 unknownFields protoimpl.UnknownFields 765 766 // Payload to increase response size. 767 Payload *Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` 768 } 769 770 func (x *StreamingOutputCallResponse) Reset() { 771 *x = StreamingOutputCallResponse{} 772 if protoimpl.UnsafeEnabled { 773 mi := &file_grpc_test_proto_msgTypes[9] 774 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 775 ms.StoreMessageInfo(mi) 776 } 777 } 778 779 func (x *StreamingOutputCallResponse) String() string { 780 return protoimpl.X.MessageStringOf(x) 781 } 782 783 func (*StreamingOutputCallResponse) ProtoMessage() {} 784 785 func (x *StreamingOutputCallResponse) ProtoReflect() protoreflect.Message { 786 mi := &file_grpc_test_proto_msgTypes[9] 787 if protoimpl.UnsafeEnabled && x != nil { 788 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 789 if ms.LoadMessageInfo() == nil { 790 ms.StoreMessageInfo(mi) 791 } 792 return ms 793 } 794 return mi.MessageOf(x) 795 } 796 797 // Deprecated: Use StreamingOutputCallResponse.ProtoReflect.Descriptor instead. 798 func (*StreamingOutputCallResponse) Descriptor() ([]byte, []int) { 799 return file_grpc_test_proto_rawDescGZIP(), []int{9} 800 } 801 802 func (x *StreamingOutputCallResponse) GetPayload() *Payload { 803 if x != nil { 804 return x.Payload 805 } 806 return nil 807 } 808 809 type LoadBalancerStatsRequest struct { 810 state protoimpl.MessageState 811 sizeCache protoimpl.SizeCache 812 unknownFields protoimpl.UnknownFields 813 814 // Request stats for the next num_rpcs sent by client. 815 NumRpcs int32 `protobuf:"varint,1,opt,name=num_rpcs,json=numRpcs,proto3" json:"num_rpcs,omitempty"` 816 // If num_rpcs have not completed within timeout_sec, return partial results. 817 TimeoutSec int32 `protobuf:"varint,2,opt,name=timeout_sec,json=timeoutSec,proto3" json:"timeout_sec,omitempty"` 818 } 819 820 func (x *LoadBalancerStatsRequest) Reset() { 821 *x = LoadBalancerStatsRequest{} 822 if protoimpl.UnsafeEnabled { 823 mi := &file_grpc_test_proto_msgTypes[10] 824 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 825 ms.StoreMessageInfo(mi) 826 } 827 } 828 829 func (x *LoadBalancerStatsRequest) String() string { 830 return protoimpl.X.MessageStringOf(x) 831 } 832 833 func (*LoadBalancerStatsRequest) ProtoMessage() {} 834 835 func (x *LoadBalancerStatsRequest) ProtoReflect() protoreflect.Message { 836 mi := &file_grpc_test_proto_msgTypes[10] 837 if protoimpl.UnsafeEnabled && x != nil { 838 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 839 if ms.LoadMessageInfo() == nil { 840 ms.StoreMessageInfo(mi) 841 } 842 return ms 843 } 844 return mi.MessageOf(x) 845 } 846 847 // Deprecated: Use LoadBalancerStatsRequest.ProtoReflect.Descriptor instead. 848 func (*LoadBalancerStatsRequest) Descriptor() ([]byte, []int) { 849 return file_grpc_test_proto_rawDescGZIP(), []int{10} 850 } 851 852 func (x *LoadBalancerStatsRequest) GetNumRpcs() int32 { 853 if x != nil { 854 return x.NumRpcs 855 } 856 return 0 857 } 858 859 func (x *LoadBalancerStatsRequest) GetTimeoutSec() int32 { 860 if x != nil { 861 return x.TimeoutSec 862 } 863 return 0 864 } 865 866 type LoadBalancerStatsResponse struct { 867 state protoimpl.MessageState 868 sizeCache protoimpl.SizeCache 869 unknownFields protoimpl.UnknownFields 870 871 // The number of completed RPCs for each peer. 872 RpcsByPeer map[string]int32 `protobuf:"bytes,1,rep,name=rpcs_by_peer,json=rpcsByPeer,proto3" json:"rpcs_by_peer,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` 873 // The number of RPCs that failed to record a remote peer. 874 NumFailures int32 `protobuf:"varint,2,opt,name=num_failures,json=numFailures,proto3" json:"num_failures,omitempty"` 875 } 876 877 func (x *LoadBalancerStatsResponse) Reset() { 878 *x = LoadBalancerStatsResponse{} 879 if protoimpl.UnsafeEnabled { 880 mi := &file_grpc_test_proto_msgTypes[11] 881 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 882 ms.StoreMessageInfo(mi) 883 } 884 } 885 886 func (x *LoadBalancerStatsResponse) String() string { 887 return protoimpl.X.MessageStringOf(x) 888 } 889 890 func (*LoadBalancerStatsResponse) ProtoMessage() {} 891 892 func (x *LoadBalancerStatsResponse) ProtoReflect() protoreflect.Message { 893 mi := &file_grpc_test_proto_msgTypes[11] 894 if protoimpl.UnsafeEnabled && x != nil { 895 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 896 if ms.LoadMessageInfo() == nil { 897 ms.StoreMessageInfo(mi) 898 } 899 return ms 900 } 901 return mi.MessageOf(x) 902 } 903 904 // Deprecated: Use LoadBalancerStatsResponse.ProtoReflect.Descriptor instead. 905 func (*LoadBalancerStatsResponse) Descriptor() ([]byte, []int) { 906 return file_grpc_test_proto_rawDescGZIP(), []int{11} 907 } 908 909 func (x *LoadBalancerStatsResponse) GetRpcsByPeer() map[string]int32 { 910 if x != nil { 911 return x.RpcsByPeer 912 } 913 return nil 914 } 915 916 func (x *LoadBalancerStatsResponse) GetNumFailures() int32 { 917 if x != nil { 918 return x.NumFailures 919 } 920 return 0 921 } 922 923 var File_grpc_test_proto protoreflect.FileDescriptor 924 925 var file_grpc_test_proto_rawDesc = []byte{ 926 0x0a, 0x0f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 927 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x22, 928 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x4c, 0x0a, 0x07, 0x50, 0x61, 0x79, 0x6c, 929 0x6f, 0x61, 0x64, 0x12, 0x2d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 930 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 931 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 932 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 933 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x3a, 0x0a, 0x0a, 0x45, 0x63, 0x68, 0x6f, 0x53, 0x74, 934 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 935 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 936 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 937 0x67, 0x65, 0x22, 0x92, 0x03, 0x0a, 0x0d, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x71, 938 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 939 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 940 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 941 0x61, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 942 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 943 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x72, 0x65, 0x73, 944 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2f, 0x0a, 0x07, 0x70, 0x61, 0x79, 945 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x70, 946 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 947 0x64, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x69, 948 0x6c, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 949 0x08, 0x52, 0x0c, 0x66, 0x69, 0x6c, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 950 0x28, 0x0a, 0x10, 0x66, 0x69, 0x6c, 0x6c, 0x5f, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x63, 951 0x6f, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x66, 0x69, 0x6c, 0x6c, 0x4f, 952 0x61, 0x75, 0x74, 0x68, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x0f, 0x72, 0x65, 0x73, 953 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 954 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 955 0x67, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0e, 0x72, 0x65, 956 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, 0x0a, 0x0e, 957 0x66, 0x69, 0x6c, 0x6c, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x09, 958 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x66, 0x69, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 959 0x49, 0x64, 0x12, 0x33, 0x0a, 0x16, 0x66, 0x69, 0x6c, 0x6c, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x6c, 960 0x62, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 961 0x28, 0x08, 0x52, 0x13, 0x66, 0x69, 0x6c, 0x6c, 0x47, 0x72, 0x70, 0x63, 0x6c, 0x62, 0x52, 0x6f, 962 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x82, 0x02, 0x0a, 0x0e, 0x53, 0x69, 0x6d, 0x70, 963 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x07, 0x70, 0x61, 964 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 965 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 966 0x61, 0x64, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 967 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 968 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x61, 0x75, 0x74, 0x68, 969 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x61, 970 0x75, 0x74, 0x68, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 971 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 972 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x49, 0x0a, 0x11, 0x67, 0x72, 0x70, 0x63, 0x6c, 0x62, 0x5f, 973 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 974 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 975 0x47, 0x72, 0x70, 0x63, 0x6c, 0x62, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 976 0x0f, 0x67, 0x72, 0x70, 0x63, 0x6c, 0x62, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 977 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 978 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x4c, 0x0a, 0x19, 979 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x61, 980 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x07, 0x70, 0x61, 0x79, 981 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x70, 982 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 983 0x64, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x54, 0x0a, 0x1a, 0x53, 0x74, 984 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x61, 0x6c, 0x6c, 985 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x67, 0x67, 0x72, 986 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 987 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x15, 0x61, 0x67, 0x67, 0x72, 0x65, 988 0x67, 0x61, 0x74, 0x65, 0x64, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x69, 0x7a, 0x65, 989 0x22, 0x49, 0x0a, 0x12, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x50, 0x61, 0x72, 0x61, 990 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 991 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 992 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 993 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x55, 0x73, 0x22, 0xa3, 0x02, 0x0a, 0x1a, 994 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 995 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x72, 0x65, 996 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 997 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 998 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 999 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x51, 0x0a, 0x13, 0x72, 0x65, 1000 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 1001 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 1002 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x50, 1003 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x12, 0x72, 0x65, 0x73, 0x70, 0x6f, 1004 0x6e, 0x73, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x2f, 0x0a, 1005 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 1006 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x61, 1007 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x41, 1008 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 1009 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 1010 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x75, 1011 0x73, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 1012 0x73, 0x22, 0x4e, 0x0a, 0x1b, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x4f, 0x75, 1013 0x74, 0x70, 0x75, 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 1014 0x12, 0x2f, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 1015 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 1016 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 1017 0x64, 0x22, 0x56, 0x0a, 0x18, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 1018 0x72, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 1019 0x08, 0x6e, 0x75, 0x6d, 0x5f, 0x72, 0x70, 0x63, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 1020 0x07, 0x6e, 0x75, 0x6d, 0x52, 0x70, 0x63, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 1021 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 1022 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x63, 0x22, 0xd8, 0x01, 0x0a, 0x19, 0x4c, 0x6f, 1023 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 1024 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x0c, 0x72, 0x70, 0x63, 0x73, 0x5f, 1025 0x62, 0x79, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 1026 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x6f, 0x61, 1027 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 1028 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x70, 0x63, 0x73, 0x42, 0x79, 0x50, 0x65, 0x65, 1029 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x72, 0x70, 0x63, 0x73, 0x42, 0x79, 0x50, 0x65, 1030 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 1031 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6e, 0x75, 0x6d, 0x46, 0x61, 0x69, 1032 0x6c, 0x75, 0x72, 0x65, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x52, 0x70, 0x63, 0x73, 0x42, 0x79, 0x50, 1033 0x65, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 1034 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 1035 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 1036 0x3a, 0x02, 0x38, 0x01, 0x2a, 0x3f, 0x0a, 0x0b, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x54, 1037 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x4f, 0x4d, 0x50, 0x52, 0x45, 0x53, 0x53, 0x41, 1038 0x42, 0x4c, 0x45, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x4e, 0x43, 0x4f, 0x4d, 0x50, 0x52, 1039 0x45, 0x53, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x41, 0x4e, 1040 0x44, 0x4f, 0x4d, 0x10, 0x02, 0x2a, 0x6f, 0x0a, 0x0f, 0x47, 0x72, 0x70, 0x63, 0x6c, 0x62, 0x52, 1041 0x6f, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x47, 0x52, 0x50, 0x43, 1042 0x4c, 0x42, 0x5f, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 1043 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x47, 0x52, 0x50, 0x43, 0x4c, 1044 0x42, 0x5f, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x41, 0x4c, 1045 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x47, 0x52, 0x50, 0x43, 0x4c, 1046 0x42, 0x5f, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x41, 0x43, 1047 0x4b, 0x45, 0x4e, 0x44, 0x10, 0x02, 0x32, 0xbb, 0x04, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x53, 1048 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x35, 0x0a, 0x09, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x43, 1049 0x61, 0x6c, 0x6c, 0x12, 0x13, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 1050 0x6e, 0x67, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x13, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 1051 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x46, 0x0a, 1052 0x09, 0x55, 0x6e, 0x61, 0x72, 0x79, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x1b, 0x2e, 0x67, 0x72, 0x70, 1053 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 1054 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 1055 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 1056 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x13, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 1057 0x6e, 0x67, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x28, 0x2e, 0x67, 1058 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x74, 0x72, 0x65, 1059 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x52, 1060 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 1061 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x4f, 1062 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 1063 0x65, 0x30, 0x01, 0x12, 0x69, 0x0a, 0x12, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 1064 0x49, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x27, 0x2e, 0x67, 0x72, 0x70, 0x63, 1065 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 1066 0x6e, 0x67, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 1067 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 1068 0x67, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x70, 0x75, 0x74, 1069 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x12, 0x69, 1070 0x0a, 0x0e, 0x46, 0x75, 0x6c, 0x6c, 0x44, 0x75, 0x70, 0x6c, 0x65, 0x78, 0x43, 0x61, 0x6c, 0x6c, 1071 0x12, 0x28, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 1072 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 1073 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x72, 0x70, 1074 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 1075 0x69, 0x6e, 0x67, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 1076 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x69, 0x0a, 0x0e, 0x48, 0x61, 0x6c, 1077 0x66, 0x44, 0x75, 0x70, 0x6c, 0x65, 0x78, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x28, 0x2e, 0x67, 0x72, 1078 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 1079 0x6d, 0x69, 0x6e, 0x67, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 1080 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 1081 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x4f, 0x75, 1082 0x74, 0x70, 0x75, 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 1083 0x28, 0x01, 0x30, 0x01, 0x32, 0x55, 0x0a, 0x14, 0x55, 0x6e, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 1084 0x65, 0x6e, 0x74, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3d, 0x0a, 0x11, 1085 0x55, 0x6e, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x65, 0x64, 0x43, 0x61, 0x6c, 1086 0x6c, 0x12, 0x13, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 1087 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x13, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 1088 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x32, 0x7f, 0x0a, 0x18, 0x4c, 1089 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x73, 1090 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x63, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x43, 0x6c, 1091 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x26, 0x2e, 0x67, 0x72, 0x70, 0x63, 1092 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 1093 0x61, 0x6e, 0x63, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 1094 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 1095 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x53, 0x74, 0x61, 1096 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x38, 0x5a, 0x36, 1097 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6a, 0x68, 0x75, 0x6d, 0x70, 1098 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x69, 0x6e, 1099 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 1100 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 1101 } 1102 1103 var ( 1104 file_grpc_test_proto_rawDescOnce sync.Once 1105 file_grpc_test_proto_rawDescData = file_grpc_test_proto_rawDesc 1106 ) 1107 1108 func file_grpc_test_proto_rawDescGZIP() []byte { 1109 file_grpc_test_proto_rawDescOnce.Do(func() { 1110 file_grpc_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_test_proto_rawDescData) 1111 }) 1112 return file_grpc_test_proto_rawDescData 1113 } 1114 1115 var file_grpc_test_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 1116 var file_grpc_test_proto_msgTypes = make([]protoimpl.MessageInfo, 13) 1117 var file_grpc_test_proto_goTypes = []interface{}{ 1118 (PayloadType)(0), // 0: grpc.testing.PayloadType 1119 (GrpclbRouteType)(0), // 1: grpc.testing.GrpclbRouteType 1120 (*Empty)(nil), // 2: grpc.testing.Empty 1121 (*Payload)(nil), // 3: grpc.testing.Payload 1122 (*EchoStatus)(nil), // 4: grpc.testing.EchoStatus 1123 (*SimpleRequest)(nil), // 5: grpc.testing.SimpleRequest 1124 (*SimpleResponse)(nil), // 6: grpc.testing.SimpleResponse 1125 (*StreamingInputCallRequest)(nil), // 7: grpc.testing.StreamingInputCallRequest 1126 (*StreamingInputCallResponse)(nil), // 8: grpc.testing.StreamingInputCallResponse 1127 (*ResponseParameters)(nil), // 9: grpc.testing.ResponseParameters 1128 (*StreamingOutputCallRequest)(nil), // 10: grpc.testing.StreamingOutputCallRequest 1129 (*StreamingOutputCallResponse)(nil), // 11: grpc.testing.StreamingOutputCallResponse 1130 (*LoadBalancerStatsRequest)(nil), // 12: grpc.testing.LoadBalancerStatsRequest 1131 (*LoadBalancerStatsResponse)(nil), // 13: grpc.testing.LoadBalancerStatsResponse 1132 nil, // 14: grpc.testing.LoadBalancerStatsResponse.RpcsByPeerEntry 1133 } 1134 var file_grpc_test_proto_depIdxs = []int32{ 1135 0, // 0: grpc.testing.Payload.type:type_name -> grpc.testing.PayloadType 1136 0, // 1: grpc.testing.SimpleRequest.response_type:type_name -> grpc.testing.PayloadType 1137 3, // 2: grpc.testing.SimpleRequest.payload:type_name -> grpc.testing.Payload 1138 4, // 3: grpc.testing.SimpleRequest.response_status:type_name -> grpc.testing.EchoStatus 1139 3, // 4: grpc.testing.SimpleResponse.payload:type_name -> grpc.testing.Payload 1140 1, // 5: grpc.testing.SimpleResponse.grpclb_route_type:type_name -> grpc.testing.GrpclbRouteType 1141 3, // 6: grpc.testing.StreamingInputCallRequest.payload:type_name -> grpc.testing.Payload 1142 0, // 7: grpc.testing.StreamingOutputCallRequest.response_type:type_name -> grpc.testing.PayloadType 1143 9, // 8: grpc.testing.StreamingOutputCallRequest.response_parameters:type_name -> grpc.testing.ResponseParameters 1144 3, // 9: grpc.testing.StreamingOutputCallRequest.payload:type_name -> grpc.testing.Payload 1145 4, // 10: grpc.testing.StreamingOutputCallRequest.response_status:type_name -> grpc.testing.EchoStatus 1146 3, // 11: grpc.testing.StreamingOutputCallResponse.payload:type_name -> grpc.testing.Payload 1147 14, // 12: grpc.testing.LoadBalancerStatsResponse.rpcs_by_peer:type_name -> grpc.testing.LoadBalancerStatsResponse.RpcsByPeerEntry 1148 2, // 13: grpc.testing.TestService.EmptyCall:input_type -> grpc.testing.Empty 1149 5, // 14: grpc.testing.TestService.UnaryCall:input_type -> grpc.testing.SimpleRequest 1150 10, // 15: grpc.testing.TestService.StreamingOutputCall:input_type -> grpc.testing.StreamingOutputCallRequest 1151 7, // 16: grpc.testing.TestService.StreamingInputCall:input_type -> grpc.testing.StreamingInputCallRequest 1152 10, // 17: grpc.testing.TestService.FullDuplexCall:input_type -> grpc.testing.StreamingOutputCallRequest 1153 10, // 18: grpc.testing.TestService.HalfDuplexCall:input_type -> grpc.testing.StreamingOutputCallRequest 1154 2, // 19: grpc.testing.UnimplementedService.UnimplementedCall:input_type -> grpc.testing.Empty 1155 12, // 20: grpc.testing.LoadBalancerStatsService.GetClientStats:input_type -> grpc.testing.LoadBalancerStatsRequest 1156 2, // 21: grpc.testing.TestService.EmptyCall:output_type -> grpc.testing.Empty 1157 6, // 22: grpc.testing.TestService.UnaryCall:output_type -> grpc.testing.SimpleResponse 1158 11, // 23: grpc.testing.TestService.StreamingOutputCall:output_type -> grpc.testing.StreamingOutputCallResponse 1159 8, // 24: grpc.testing.TestService.StreamingInputCall:output_type -> grpc.testing.StreamingInputCallResponse 1160 11, // 25: grpc.testing.TestService.FullDuplexCall:output_type -> grpc.testing.StreamingOutputCallResponse 1161 11, // 26: grpc.testing.TestService.HalfDuplexCall:output_type -> grpc.testing.StreamingOutputCallResponse 1162 2, // 27: grpc.testing.UnimplementedService.UnimplementedCall:output_type -> grpc.testing.Empty 1163 13, // 28: grpc.testing.LoadBalancerStatsService.GetClientStats:output_type -> grpc.testing.LoadBalancerStatsResponse 1164 21, // [21:29] is the sub-list for method output_type 1165 13, // [13:21] is the sub-list for method input_type 1166 13, // [13:13] is the sub-list for extension type_name 1167 13, // [13:13] is the sub-list for extension extendee 1168 0, // [0:13] is the sub-list for field type_name 1169 } 1170 1171 func init() { file_grpc_test_proto_init() } 1172 func file_grpc_test_proto_init() { 1173 if File_grpc_test_proto != nil { 1174 return 1175 } 1176 if !protoimpl.UnsafeEnabled { 1177 file_grpc_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1178 switch v := v.(*Empty); i { 1179 case 0: 1180 return &v.state 1181 case 1: 1182 return &v.sizeCache 1183 case 2: 1184 return &v.unknownFields 1185 default: 1186 return nil 1187 } 1188 } 1189 file_grpc_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1190 switch v := v.(*Payload); i { 1191 case 0: 1192 return &v.state 1193 case 1: 1194 return &v.sizeCache 1195 case 2: 1196 return &v.unknownFields 1197 default: 1198 return nil 1199 } 1200 } 1201 file_grpc_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1202 switch v := v.(*EchoStatus); i { 1203 case 0: 1204 return &v.state 1205 case 1: 1206 return &v.sizeCache 1207 case 2: 1208 return &v.unknownFields 1209 default: 1210 return nil 1211 } 1212 } 1213 file_grpc_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1214 switch v := v.(*SimpleRequest); i { 1215 case 0: 1216 return &v.state 1217 case 1: 1218 return &v.sizeCache 1219 case 2: 1220 return &v.unknownFields 1221 default: 1222 return nil 1223 } 1224 } 1225 file_grpc_test_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1226 switch v := v.(*SimpleResponse); i { 1227 case 0: 1228 return &v.state 1229 case 1: 1230 return &v.sizeCache 1231 case 2: 1232 return &v.unknownFields 1233 default: 1234 return nil 1235 } 1236 } 1237 file_grpc_test_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1238 switch v := v.(*StreamingInputCallRequest); i { 1239 case 0: 1240 return &v.state 1241 case 1: 1242 return &v.sizeCache 1243 case 2: 1244 return &v.unknownFields 1245 default: 1246 return nil 1247 } 1248 } 1249 file_grpc_test_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1250 switch v := v.(*StreamingInputCallResponse); i { 1251 case 0: 1252 return &v.state 1253 case 1: 1254 return &v.sizeCache 1255 case 2: 1256 return &v.unknownFields 1257 default: 1258 return nil 1259 } 1260 } 1261 file_grpc_test_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1262 switch v := v.(*ResponseParameters); i { 1263 case 0: 1264 return &v.state 1265 case 1: 1266 return &v.sizeCache 1267 case 2: 1268 return &v.unknownFields 1269 default: 1270 return nil 1271 } 1272 } 1273 file_grpc_test_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1274 switch v := v.(*StreamingOutputCallRequest); i { 1275 case 0: 1276 return &v.state 1277 case 1: 1278 return &v.sizeCache 1279 case 2: 1280 return &v.unknownFields 1281 default: 1282 return nil 1283 } 1284 } 1285 file_grpc_test_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1286 switch v := v.(*StreamingOutputCallResponse); i { 1287 case 0: 1288 return &v.state 1289 case 1: 1290 return &v.sizeCache 1291 case 2: 1292 return &v.unknownFields 1293 default: 1294 return nil 1295 } 1296 } 1297 file_grpc_test_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1298 switch v := v.(*LoadBalancerStatsRequest); i { 1299 case 0: 1300 return &v.state 1301 case 1: 1302 return &v.sizeCache 1303 case 2: 1304 return &v.unknownFields 1305 default: 1306 return nil 1307 } 1308 } 1309 file_grpc_test_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 1310 switch v := v.(*LoadBalancerStatsResponse); i { 1311 case 0: 1312 return &v.state 1313 case 1: 1314 return &v.sizeCache 1315 case 2: 1316 return &v.unknownFields 1317 default: 1318 return nil 1319 } 1320 } 1321 } 1322 type x struct{} 1323 out := protoimpl.TypeBuilder{ 1324 File: protoimpl.DescBuilder{ 1325 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1326 RawDescriptor: file_grpc_test_proto_rawDesc, 1327 NumEnums: 2, 1328 NumMessages: 13, 1329 NumExtensions: 0, 1330 NumServices: 3, 1331 }, 1332 GoTypes: file_grpc_test_proto_goTypes, 1333 DependencyIndexes: file_grpc_test_proto_depIdxs, 1334 EnumInfos: file_grpc_test_proto_enumTypes, 1335 MessageInfos: file_grpc_test_proto_msgTypes, 1336 }.Build() 1337 File_grpc_test_proto = out.File 1338 file_grpc_test_proto_rawDesc = nil 1339 file_grpc_test_proto_goTypes = nil 1340 file_grpc_test_proto_depIdxs = nil 1341 } 1342 1343 // Reference imports to suppress errors if they are not otherwise used. 1344 var _ context.Context 1345 var _ grpc.ClientConnInterface 1346 1347 // This is a compile-time assertion to ensure that this generated file 1348 // is compatible with the grpc package it is being compiled against. 1349 const _ = grpc.SupportPackageIsVersion6 1350 1351 // TestServiceClient is the client API for TestService service. 1352 // 1353 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1354 type TestServiceClient interface { 1355 // One empty request followed by one empty response. 1356 EmptyCall(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) 1357 // One request followed by one response. 1358 // The server returns the client payload as-is. 1359 UnaryCall(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (*SimpleResponse, error) 1360 // One request followed by a sequence of responses (streamed download). 1361 // The server returns the payload with client desired type and sizes. 1362 StreamingOutputCall(ctx context.Context, in *StreamingOutputCallRequest, opts ...grpc.CallOption) (TestService_StreamingOutputCallClient, error) 1363 // A sequence of requests followed by one response (streamed upload). 1364 // The server returns the aggregated size of client payload as the result. 1365 StreamingInputCall(ctx context.Context, opts ...grpc.CallOption) (TestService_StreamingInputCallClient, error) 1366 // A sequence of requests with each request served by the server immediately. 1367 // As one request could lead to multiple responses, this interface 1368 // demonstrates the idea of full duplexing. 1369 FullDuplexCall(ctx context.Context, opts ...grpc.CallOption) (TestService_FullDuplexCallClient, error) 1370 // A sequence of requests followed by a sequence of responses. 1371 // The server buffers all the client requests and then serves them in order. A 1372 // stream of responses are returned to the client when the server starts with 1373 // first request. 1374 HalfDuplexCall(ctx context.Context, opts ...grpc.CallOption) (TestService_HalfDuplexCallClient, error) 1375 } 1376 1377 type testServiceClient struct { 1378 cc grpc.ClientConnInterface 1379 } 1380 1381 func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient { 1382 return &testServiceClient{cc} 1383 } 1384 1385 func (c *testServiceClient) EmptyCall(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) { 1386 out := new(Empty) 1387 err := c.cc.Invoke(ctx, "/grpc.testing.TestService/EmptyCall", in, out, opts...) 1388 if err != nil { 1389 return nil, err 1390 } 1391 return out, nil 1392 } 1393 1394 func (c *testServiceClient) UnaryCall(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (*SimpleResponse, error) { 1395 out := new(SimpleResponse) 1396 err := c.cc.Invoke(ctx, "/grpc.testing.TestService/UnaryCall", in, out, opts...) 1397 if err != nil { 1398 return nil, err 1399 } 1400 return out, nil 1401 } 1402 1403 func (c *testServiceClient) StreamingOutputCall(ctx context.Context, in *StreamingOutputCallRequest, opts ...grpc.CallOption) (TestService_StreamingOutputCallClient, error) { 1404 stream, err := c.cc.NewStream(ctx, &_TestService_serviceDesc.Streams[0], "/grpc.testing.TestService/StreamingOutputCall", opts...) 1405 if err != nil { 1406 return nil, err 1407 } 1408 x := &testServiceStreamingOutputCallClient{stream} 1409 if err := x.ClientStream.SendMsg(in); err != nil { 1410 return nil, err 1411 } 1412 if err := x.ClientStream.CloseSend(); err != nil { 1413 return nil, err 1414 } 1415 return x, nil 1416 } 1417 1418 type TestService_StreamingOutputCallClient interface { 1419 Recv() (*StreamingOutputCallResponse, error) 1420 grpc.ClientStream 1421 } 1422 1423 type testServiceStreamingOutputCallClient struct { 1424 grpc.ClientStream 1425 } 1426 1427 func (x *testServiceStreamingOutputCallClient) Recv() (*StreamingOutputCallResponse, error) { 1428 m := new(StreamingOutputCallResponse) 1429 if err := x.ClientStream.RecvMsg(m); err != nil { 1430 return nil, err 1431 } 1432 return m, nil 1433 } 1434 1435 func (c *testServiceClient) StreamingInputCall(ctx context.Context, opts ...grpc.CallOption) (TestService_StreamingInputCallClient, error) { 1436 stream, err := c.cc.NewStream(ctx, &_TestService_serviceDesc.Streams[1], "/grpc.testing.TestService/StreamingInputCall", opts...) 1437 if err != nil { 1438 return nil, err 1439 } 1440 x := &testServiceStreamingInputCallClient{stream} 1441 return x, nil 1442 } 1443 1444 type TestService_StreamingInputCallClient interface { 1445 Send(*StreamingInputCallRequest) error 1446 CloseAndRecv() (*StreamingInputCallResponse, error) 1447 grpc.ClientStream 1448 } 1449 1450 type testServiceStreamingInputCallClient struct { 1451 grpc.ClientStream 1452 } 1453 1454 func (x *testServiceStreamingInputCallClient) Send(m *StreamingInputCallRequest) error { 1455 return x.ClientStream.SendMsg(m) 1456 } 1457 1458 func (x *testServiceStreamingInputCallClient) CloseAndRecv() (*StreamingInputCallResponse, error) { 1459 if err := x.ClientStream.CloseSend(); err != nil { 1460 return nil, err 1461 } 1462 m := new(StreamingInputCallResponse) 1463 if err := x.ClientStream.RecvMsg(m); err != nil { 1464 return nil, err 1465 } 1466 return m, nil 1467 } 1468 1469 func (c *testServiceClient) FullDuplexCall(ctx context.Context, opts ...grpc.CallOption) (TestService_FullDuplexCallClient, error) { 1470 stream, err := c.cc.NewStream(ctx, &_TestService_serviceDesc.Streams[2], "/grpc.testing.TestService/FullDuplexCall", opts...) 1471 if err != nil { 1472 return nil, err 1473 } 1474 x := &testServiceFullDuplexCallClient{stream} 1475 return x, nil 1476 } 1477 1478 type TestService_FullDuplexCallClient interface { 1479 Send(*StreamingOutputCallRequest) error 1480 Recv() (*StreamingOutputCallResponse, error) 1481 grpc.ClientStream 1482 } 1483 1484 type testServiceFullDuplexCallClient struct { 1485 grpc.ClientStream 1486 } 1487 1488 func (x *testServiceFullDuplexCallClient) Send(m *StreamingOutputCallRequest) error { 1489 return x.ClientStream.SendMsg(m) 1490 } 1491 1492 func (x *testServiceFullDuplexCallClient) Recv() (*StreamingOutputCallResponse, error) { 1493 m := new(StreamingOutputCallResponse) 1494 if err := x.ClientStream.RecvMsg(m); err != nil { 1495 return nil, err 1496 } 1497 return m, nil 1498 } 1499 1500 func (c *testServiceClient) HalfDuplexCall(ctx context.Context, opts ...grpc.CallOption) (TestService_HalfDuplexCallClient, error) { 1501 stream, err := c.cc.NewStream(ctx, &_TestService_serviceDesc.Streams[3], "/grpc.testing.TestService/HalfDuplexCall", opts...) 1502 if err != nil { 1503 return nil, err 1504 } 1505 x := &testServiceHalfDuplexCallClient{stream} 1506 return x, nil 1507 } 1508 1509 type TestService_HalfDuplexCallClient interface { 1510 Send(*StreamingOutputCallRequest) error 1511 Recv() (*StreamingOutputCallResponse, error) 1512 grpc.ClientStream 1513 } 1514 1515 type testServiceHalfDuplexCallClient struct { 1516 grpc.ClientStream 1517 } 1518 1519 func (x *testServiceHalfDuplexCallClient) Send(m *StreamingOutputCallRequest) error { 1520 return x.ClientStream.SendMsg(m) 1521 } 1522 1523 func (x *testServiceHalfDuplexCallClient) Recv() (*StreamingOutputCallResponse, error) { 1524 m := new(StreamingOutputCallResponse) 1525 if err := x.ClientStream.RecvMsg(m); err != nil { 1526 return nil, err 1527 } 1528 return m, nil 1529 } 1530 1531 // TestServiceServer is the server API for TestService service. 1532 type TestServiceServer interface { 1533 // One empty request followed by one empty response. 1534 EmptyCall(context.Context, *Empty) (*Empty, error) 1535 // One request followed by one response. 1536 // The server returns the client payload as-is. 1537 UnaryCall(context.Context, *SimpleRequest) (*SimpleResponse, error) 1538 // One request followed by a sequence of responses (streamed download). 1539 // The server returns the payload with client desired type and sizes. 1540 StreamingOutputCall(*StreamingOutputCallRequest, TestService_StreamingOutputCallServer) error 1541 // A sequence of requests followed by one response (streamed upload). 1542 // The server returns the aggregated size of client payload as the result. 1543 StreamingInputCall(TestService_StreamingInputCallServer) error 1544 // A sequence of requests with each request served by the server immediately. 1545 // As one request could lead to multiple responses, this interface 1546 // demonstrates the idea of full duplexing. 1547 FullDuplexCall(TestService_FullDuplexCallServer) error 1548 // A sequence of requests followed by a sequence of responses. 1549 // The server buffers all the client requests and then serves them in order. A 1550 // stream of responses are returned to the client when the server starts with 1551 // first request. 1552 HalfDuplexCall(TestService_HalfDuplexCallServer) error 1553 } 1554 1555 // UnimplementedTestServiceServer can be embedded to have forward compatible implementations. 1556 type UnimplementedTestServiceServer struct { 1557 } 1558 1559 func (*UnimplementedTestServiceServer) EmptyCall(context.Context, *Empty) (*Empty, error) { 1560 return nil, status.Errorf(codes.Unimplemented, "method EmptyCall not implemented") 1561 } 1562 func (*UnimplementedTestServiceServer) UnaryCall(context.Context, *SimpleRequest) (*SimpleResponse, error) { 1563 return nil, status.Errorf(codes.Unimplemented, "method UnaryCall not implemented") 1564 } 1565 func (*UnimplementedTestServiceServer) StreamingOutputCall(*StreamingOutputCallRequest, TestService_StreamingOutputCallServer) error { 1566 return status.Errorf(codes.Unimplemented, "method StreamingOutputCall not implemented") 1567 } 1568 func (*UnimplementedTestServiceServer) StreamingInputCall(TestService_StreamingInputCallServer) error { 1569 return status.Errorf(codes.Unimplemented, "method StreamingInputCall not implemented") 1570 } 1571 func (*UnimplementedTestServiceServer) FullDuplexCall(TestService_FullDuplexCallServer) error { 1572 return status.Errorf(codes.Unimplemented, "method FullDuplexCall not implemented") 1573 } 1574 func (*UnimplementedTestServiceServer) HalfDuplexCall(TestService_HalfDuplexCallServer) error { 1575 return status.Errorf(codes.Unimplemented, "method HalfDuplexCall not implemented") 1576 } 1577 1578 func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer) { 1579 s.RegisterService(&_TestService_serviceDesc, srv) 1580 } 1581 1582 func _TestService_EmptyCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1583 in := new(Empty) 1584 if err := dec(in); err != nil { 1585 return nil, err 1586 } 1587 if interceptor == nil { 1588 return srv.(TestServiceServer).EmptyCall(ctx, in) 1589 } 1590 info := &grpc.UnaryServerInfo{ 1591 Server: srv, 1592 FullMethod: "/grpc.testing.TestService/EmptyCall", 1593 } 1594 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1595 return srv.(TestServiceServer).EmptyCall(ctx, req.(*Empty)) 1596 } 1597 return interceptor(ctx, in, info, handler) 1598 } 1599 1600 func _TestService_UnaryCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1601 in := new(SimpleRequest) 1602 if err := dec(in); err != nil { 1603 return nil, err 1604 } 1605 if interceptor == nil { 1606 return srv.(TestServiceServer).UnaryCall(ctx, in) 1607 } 1608 info := &grpc.UnaryServerInfo{ 1609 Server: srv, 1610 FullMethod: "/grpc.testing.TestService/UnaryCall", 1611 } 1612 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1613 return srv.(TestServiceServer).UnaryCall(ctx, req.(*SimpleRequest)) 1614 } 1615 return interceptor(ctx, in, info, handler) 1616 } 1617 1618 func _TestService_StreamingOutputCall_Handler(srv interface{}, stream grpc.ServerStream) error { 1619 m := new(StreamingOutputCallRequest) 1620 if err := stream.RecvMsg(m); err != nil { 1621 return err 1622 } 1623 return srv.(TestServiceServer).StreamingOutputCall(m, &testServiceStreamingOutputCallServer{stream}) 1624 } 1625 1626 type TestService_StreamingOutputCallServer interface { 1627 Send(*StreamingOutputCallResponse) error 1628 grpc.ServerStream 1629 } 1630 1631 type testServiceStreamingOutputCallServer struct { 1632 grpc.ServerStream 1633 } 1634 1635 func (x *testServiceStreamingOutputCallServer) Send(m *StreamingOutputCallResponse) error { 1636 return x.ServerStream.SendMsg(m) 1637 } 1638 1639 func _TestService_StreamingInputCall_Handler(srv interface{}, stream grpc.ServerStream) error { 1640 return srv.(TestServiceServer).StreamingInputCall(&testServiceStreamingInputCallServer{stream}) 1641 } 1642 1643 type TestService_StreamingInputCallServer interface { 1644 SendAndClose(*StreamingInputCallResponse) error 1645 Recv() (*StreamingInputCallRequest, error) 1646 grpc.ServerStream 1647 } 1648 1649 type testServiceStreamingInputCallServer struct { 1650 grpc.ServerStream 1651 } 1652 1653 func (x *testServiceStreamingInputCallServer) SendAndClose(m *StreamingInputCallResponse) error { 1654 return x.ServerStream.SendMsg(m) 1655 } 1656 1657 func (x *testServiceStreamingInputCallServer) Recv() (*StreamingInputCallRequest, error) { 1658 m := new(StreamingInputCallRequest) 1659 if err := x.ServerStream.RecvMsg(m); err != nil { 1660 return nil, err 1661 } 1662 return m, nil 1663 } 1664 1665 func _TestService_FullDuplexCall_Handler(srv interface{}, stream grpc.ServerStream) error { 1666 return srv.(TestServiceServer).FullDuplexCall(&testServiceFullDuplexCallServer{stream}) 1667 } 1668 1669 type TestService_FullDuplexCallServer interface { 1670 Send(*StreamingOutputCallResponse) error 1671 Recv() (*StreamingOutputCallRequest, error) 1672 grpc.ServerStream 1673 } 1674 1675 type testServiceFullDuplexCallServer struct { 1676 grpc.ServerStream 1677 } 1678 1679 func (x *testServiceFullDuplexCallServer) Send(m *StreamingOutputCallResponse) error { 1680 return x.ServerStream.SendMsg(m) 1681 } 1682 1683 func (x *testServiceFullDuplexCallServer) Recv() (*StreamingOutputCallRequest, error) { 1684 m := new(StreamingOutputCallRequest) 1685 if err := x.ServerStream.RecvMsg(m); err != nil { 1686 return nil, err 1687 } 1688 return m, nil 1689 } 1690 1691 func _TestService_HalfDuplexCall_Handler(srv interface{}, stream grpc.ServerStream) error { 1692 return srv.(TestServiceServer).HalfDuplexCall(&testServiceHalfDuplexCallServer{stream}) 1693 } 1694 1695 type TestService_HalfDuplexCallServer interface { 1696 Send(*StreamingOutputCallResponse) error 1697 Recv() (*StreamingOutputCallRequest, error) 1698 grpc.ServerStream 1699 } 1700 1701 type testServiceHalfDuplexCallServer struct { 1702 grpc.ServerStream 1703 } 1704 1705 func (x *testServiceHalfDuplexCallServer) Send(m *StreamingOutputCallResponse) error { 1706 return x.ServerStream.SendMsg(m) 1707 } 1708 1709 func (x *testServiceHalfDuplexCallServer) Recv() (*StreamingOutputCallRequest, error) { 1710 m := new(StreamingOutputCallRequest) 1711 if err := x.ServerStream.RecvMsg(m); err != nil { 1712 return nil, err 1713 } 1714 return m, nil 1715 } 1716 1717 var _TestService_serviceDesc = grpc.ServiceDesc{ 1718 ServiceName: "grpc.testing.TestService", 1719 HandlerType: (*TestServiceServer)(nil), 1720 Methods: []grpc.MethodDesc{ 1721 { 1722 MethodName: "EmptyCall", 1723 Handler: _TestService_EmptyCall_Handler, 1724 }, 1725 { 1726 MethodName: "UnaryCall", 1727 Handler: _TestService_UnaryCall_Handler, 1728 }, 1729 }, 1730 Streams: []grpc.StreamDesc{ 1731 { 1732 StreamName: "StreamingOutputCall", 1733 Handler: _TestService_StreamingOutputCall_Handler, 1734 ServerStreams: true, 1735 }, 1736 { 1737 StreamName: "StreamingInputCall", 1738 Handler: _TestService_StreamingInputCall_Handler, 1739 ClientStreams: true, 1740 }, 1741 { 1742 StreamName: "FullDuplexCall", 1743 Handler: _TestService_FullDuplexCall_Handler, 1744 ServerStreams: true, 1745 ClientStreams: true, 1746 }, 1747 { 1748 StreamName: "HalfDuplexCall", 1749 Handler: _TestService_HalfDuplexCall_Handler, 1750 ServerStreams: true, 1751 ClientStreams: true, 1752 }, 1753 }, 1754 Metadata: "grpc/test.proto", 1755 } 1756 1757 // UnimplementedServiceClient is the client API for UnimplementedService service. 1758 // 1759 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1760 type UnimplementedServiceClient interface { 1761 // A call that no server should implement 1762 UnimplementedCall(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) 1763 } 1764 1765 type unimplementedServiceClient struct { 1766 cc grpc.ClientConnInterface 1767 } 1768 1769 func NewUnimplementedServiceClient(cc grpc.ClientConnInterface) UnimplementedServiceClient { 1770 return &unimplementedServiceClient{cc} 1771 } 1772 1773 func (c *unimplementedServiceClient) UnimplementedCall(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) { 1774 out := new(Empty) 1775 err := c.cc.Invoke(ctx, "/grpc.testing.UnimplementedService/UnimplementedCall", in, out, opts...) 1776 if err != nil { 1777 return nil, err 1778 } 1779 return out, nil 1780 } 1781 1782 // UnimplementedServiceServer is the server API for UnimplementedService service. 1783 type UnimplementedServiceServer interface { 1784 // A call that no server should implement 1785 UnimplementedCall(context.Context, *Empty) (*Empty, error) 1786 } 1787 1788 // UnimplementedUnimplementedServiceServer can be embedded to have forward compatible implementations. 1789 type UnimplementedUnimplementedServiceServer struct { 1790 } 1791 1792 func (*UnimplementedUnimplementedServiceServer) UnimplementedCall(context.Context, *Empty) (*Empty, error) { 1793 return nil, status.Errorf(codes.Unimplemented, "method UnimplementedCall not implemented") 1794 } 1795 1796 func RegisterUnimplementedServiceServer(s *grpc.Server, srv UnimplementedServiceServer) { 1797 s.RegisterService(&_UnimplementedService_serviceDesc, srv) 1798 } 1799 1800 func _UnimplementedService_UnimplementedCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1801 in := new(Empty) 1802 if err := dec(in); err != nil { 1803 return nil, err 1804 } 1805 if interceptor == nil { 1806 return srv.(UnimplementedServiceServer).UnimplementedCall(ctx, in) 1807 } 1808 info := &grpc.UnaryServerInfo{ 1809 Server: srv, 1810 FullMethod: "/grpc.testing.UnimplementedService/UnimplementedCall", 1811 } 1812 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1813 return srv.(UnimplementedServiceServer).UnimplementedCall(ctx, req.(*Empty)) 1814 } 1815 return interceptor(ctx, in, info, handler) 1816 } 1817 1818 var _UnimplementedService_serviceDesc = grpc.ServiceDesc{ 1819 ServiceName: "grpc.testing.UnimplementedService", 1820 HandlerType: (*UnimplementedServiceServer)(nil), 1821 Methods: []grpc.MethodDesc{ 1822 { 1823 MethodName: "UnimplementedCall", 1824 Handler: _UnimplementedService_UnimplementedCall_Handler, 1825 }, 1826 }, 1827 Streams: []grpc.StreamDesc{}, 1828 Metadata: "grpc/test.proto", 1829 } 1830 1831 // LoadBalancerStatsServiceClient is the client API for LoadBalancerStatsService service. 1832 // 1833 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1834 type LoadBalancerStatsServiceClient interface { 1835 // Gets the backend distribution for RPCs sent by a test client. 1836 GetClientStats(ctx context.Context, in *LoadBalancerStatsRequest, opts ...grpc.CallOption) (*LoadBalancerStatsResponse, error) 1837 } 1838 1839 type loadBalancerStatsServiceClient struct { 1840 cc grpc.ClientConnInterface 1841 } 1842 1843 func NewLoadBalancerStatsServiceClient(cc grpc.ClientConnInterface) LoadBalancerStatsServiceClient { 1844 return &loadBalancerStatsServiceClient{cc} 1845 } 1846 1847 func (c *loadBalancerStatsServiceClient) GetClientStats(ctx context.Context, in *LoadBalancerStatsRequest, opts ...grpc.CallOption) (*LoadBalancerStatsResponse, error) { 1848 out := new(LoadBalancerStatsResponse) 1849 err := c.cc.Invoke(ctx, "/grpc.testing.LoadBalancerStatsService/GetClientStats", in, out, opts...) 1850 if err != nil { 1851 return nil, err 1852 } 1853 return out, nil 1854 } 1855 1856 // LoadBalancerStatsServiceServer is the server API for LoadBalancerStatsService service. 1857 type LoadBalancerStatsServiceServer interface { 1858 // Gets the backend distribution for RPCs sent by a test client. 1859 GetClientStats(context.Context, *LoadBalancerStatsRequest) (*LoadBalancerStatsResponse, error) 1860 } 1861 1862 // UnimplementedLoadBalancerStatsServiceServer can be embedded to have forward compatible implementations. 1863 type UnimplementedLoadBalancerStatsServiceServer struct { 1864 } 1865 1866 func (*UnimplementedLoadBalancerStatsServiceServer) GetClientStats(context.Context, *LoadBalancerStatsRequest) (*LoadBalancerStatsResponse, error) { 1867 return nil, status.Errorf(codes.Unimplemented, "method GetClientStats not implemented") 1868 } 1869 1870 func RegisterLoadBalancerStatsServiceServer(s *grpc.Server, srv LoadBalancerStatsServiceServer) { 1871 s.RegisterService(&_LoadBalancerStatsService_serviceDesc, srv) 1872 } 1873 1874 func _LoadBalancerStatsService_GetClientStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1875 in := new(LoadBalancerStatsRequest) 1876 if err := dec(in); err != nil { 1877 return nil, err 1878 } 1879 if interceptor == nil { 1880 return srv.(LoadBalancerStatsServiceServer).GetClientStats(ctx, in) 1881 } 1882 info := &grpc.UnaryServerInfo{ 1883 Server: srv, 1884 FullMethod: "/grpc.testing.LoadBalancerStatsService/GetClientStats", 1885 } 1886 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1887 return srv.(LoadBalancerStatsServiceServer).GetClientStats(ctx, req.(*LoadBalancerStatsRequest)) 1888 } 1889 return interceptor(ctx, in, info, handler) 1890 } 1891 1892 var _LoadBalancerStatsService_serviceDesc = grpc.ServiceDesc{ 1893 ServiceName: "grpc.testing.LoadBalancerStatsService", 1894 HandlerType: (*LoadBalancerStatsServiceServer)(nil), 1895 Methods: []grpc.MethodDesc{ 1896 { 1897 MethodName: "GetClientStats", 1898 Handler: _LoadBalancerStatsService_GetClientStats_Handler, 1899 }, 1900 }, 1901 Streams: []grpc.StreamDesc{}, 1902 Metadata: "grpc/test.proto", 1903 }