google.golang.org/grpc@v1.74.2/interop/grpc_testing/messages.pb.go (about) 1 // Copyright 2015-2016 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 // Message definitions to be used by integration test service definitions. 16 17 // Code generated by protoc-gen-go. DO NOT EDIT. 18 // versions: 19 // protoc-gen-go v1.36.6 20 // protoc v5.27.1 21 // source: grpc/testing/messages.proto 22 23 package grpc_testing 24 25 import ( 26 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 27 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 28 reflect "reflect" 29 sync "sync" 30 unsafe "unsafe" 31 ) 32 33 const ( 34 // Verify that this generated code is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 36 // Verify that runtime/protoimpl is sufficiently up-to-date. 37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 38 ) 39 40 // The type of payload that should be returned. 41 type PayloadType int32 42 43 const ( 44 // Compressable text format. 45 PayloadType_COMPRESSABLE PayloadType = 0 46 ) 47 48 // Enum value maps for PayloadType. 49 var ( 50 PayloadType_name = map[int32]string{ 51 0: "COMPRESSABLE", 52 } 53 PayloadType_value = map[string]int32{ 54 "COMPRESSABLE": 0, 55 } 56 ) 57 58 func (x PayloadType) Enum() *PayloadType { 59 p := new(PayloadType) 60 *p = x 61 return p 62 } 63 64 func (x PayloadType) String() string { 65 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 66 } 67 68 func (PayloadType) Descriptor() protoreflect.EnumDescriptor { 69 return file_grpc_testing_messages_proto_enumTypes[0].Descriptor() 70 } 71 72 func (PayloadType) Type() protoreflect.EnumType { 73 return &file_grpc_testing_messages_proto_enumTypes[0] 74 } 75 76 func (x PayloadType) Number() protoreflect.EnumNumber { 77 return protoreflect.EnumNumber(x) 78 } 79 80 // Deprecated: Use PayloadType.Descriptor instead. 81 func (PayloadType) EnumDescriptor() ([]byte, []int) { 82 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{0} 83 } 84 85 // The type of route that a client took to reach a server w.r.t. gRPCLB. 86 // The server must fill in "fallback" if it detects that the RPC reached 87 // the server via the "gRPCLB fallback" path, and "backend" if it detects 88 // that the RPC reached the server via "gRPCLB backend" path (i.e. if it got 89 // the address of this server from the gRPCLB server BalanceLoad RPC). Exactly 90 // how this detection is done is context and server dependent. 91 type GrpclbRouteType int32 92 93 const ( 94 // Server didn't detect the route that a client took to reach it. 95 GrpclbRouteType_GRPCLB_ROUTE_TYPE_UNKNOWN GrpclbRouteType = 0 96 // Indicates that a client reached a server via gRPCLB fallback. 97 GrpclbRouteType_GRPCLB_ROUTE_TYPE_FALLBACK GrpclbRouteType = 1 98 // Indicates that a client reached a server as a gRPCLB-given backend. 99 GrpclbRouteType_GRPCLB_ROUTE_TYPE_BACKEND GrpclbRouteType = 2 100 ) 101 102 // Enum value maps for GrpclbRouteType. 103 var ( 104 GrpclbRouteType_name = map[int32]string{ 105 0: "GRPCLB_ROUTE_TYPE_UNKNOWN", 106 1: "GRPCLB_ROUTE_TYPE_FALLBACK", 107 2: "GRPCLB_ROUTE_TYPE_BACKEND", 108 } 109 GrpclbRouteType_value = map[string]int32{ 110 "GRPCLB_ROUTE_TYPE_UNKNOWN": 0, 111 "GRPCLB_ROUTE_TYPE_FALLBACK": 1, 112 "GRPCLB_ROUTE_TYPE_BACKEND": 2, 113 } 114 ) 115 116 func (x GrpclbRouteType) Enum() *GrpclbRouteType { 117 p := new(GrpclbRouteType) 118 *p = x 119 return p 120 } 121 122 func (x GrpclbRouteType) String() string { 123 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 124 } 125 126 func (GrpclbRouteType) Descriptor() protoreflect.EnumDescriptor { 127 return file_grpc_testing_messages_proto_enumTypes[1].Descriptor() 128 } 129 130 func (GrpclbRouteType) Type() protoreflect.EnumType { 131 return &file_grpc_testing_messages_proto_enumTypes[1] 132 } 133 134 func (x GrpclbRouteType) Number() protoreflect.EnumNumber { 135 return protoreflect.EnumNumber(x) 136 } 137 138 // Deprecated: Use GrpclbRouteType.Descriptor instead. 139 func (GrpclbRouteType) EnumDescriptor() ([]byte, []int) { 140 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{1} 141 } 142 143 type LoadBalancerStatsResponse_MetadataType int32 144 145 const ( 146 LoadBalancerStatsResponse_UNKNOWN LoadBalancerStatsResponse_MetadataType = 0 147 LoadBalancerStatsResponse_INITIAL LoadBalancerStatsResponse_MetadataType = 1 148 LoadBalancerStatsResponse_TRAILING LoadBalancerStatsResponse_MetadataType = 2 149 ) 150 151 // Enum value maps for LoadBalancerStatsResponse_MetadataType. 152 var ( 153 LoadBalancerStatsResponse_MetadataType_name = map[int32]string{ 154 0: "UNKNOWN", 155 1: "INITIAL", 156 2: "TRAILING", 157 } 158 LoadBalancerStatsResponse_MetadataType_value = map[string]int32{ 159 "UNKNOWN": 0, 160 "INITIAL": 1, 161 "TRAILING": 2, 162 } 163 ) 164 165 func (x LoadBalancerStatsResponse_MetadataType) Enum() *LoadBalancerStatsResponse_MetadataType { 166 p := new(LoadBalancerStatsResponse_MetadataType) 167 *p = x 168 return p 169 } 170 171 func (x LoadBalancerStatsResponse_MetadataType) String() string { 172 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 173 } 174 175 func (LoadBalancerStatsResponse_MetadataType) Descriptor() protoreflect.EnumDescriptor { 176 return file_grpc_testing_messages_proto_enumTypes[2].Descriptor() 177 } 178 179 func (LoadBalancerStatsResponse_MetadataType) Type() protoreflect.EnumType { 180 return &file_grpc_testing_messages_proto_enumTypes[2] 181 } 182 183 func (x LoadBalancerStatsResponse_MetadataType) Number() protoreflect.EnumNumber { 184 return protoreflect.EnumNumber(x) 185 } 186 187 // Deprecated: Use LoadBalancerStatsResponse_MetadataType.Descriptor instead. 188 func (LoadBalancerStatsResponse_MetadataType) EnumDescriptor() ([]byte, []int) { 189 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{13, 0} 190 } 191 192 // Type of RPCs to send. 193 type ClientConfigureRequest_RpcType int32 194 195 const ( 196 ClientConfigureRequest_EMPTY_CALL ClientConfigureRequest_RpcType = 0 197 ClientConfigureRequest_UNARY_CALL ClientConfigureRequest_RpcType = 1 198 ) 199 200 // Enum value maps for ClientConfigureRequest_RpcType. 201 var ( 202 ClientConfigureRequest_RpcType_name = map[int32]string{ 203 0: "EMPTY_CALL", 204 1: "UNARY_CALL", 205 } 206 ClientConfigureRequest_RpcType_value = map[string]int32{ 207 "EMPTY_CALL": 0, 208 "UNARY_CALL": 1, 209 } 210 ) 211 212 func (x ClientConfigureRequest_RpcType) Enum() *ClientConfigureRequest_RpcType { 213 p := new(ClientConfigureRequest_RpcType) 214 *p = x 215 return p 216 } 217 218 func (x ClientConfigureRequest_RpcType) String() string { 219 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 220 } 221 222 func (ClientConfigureRequest_RpcType) Descriptor() protoreflect.EnumDescriptor { 223 return file_grpc_testing_messages_proto_enumTypes[3].Descriptor() 224 } 225 226 func (ClientConfigureRequest_RpcType) Type() protoreflect.EnumType { 227 return &file_grpc_testing_messages_proto_enumTypes[3] 228 } 229 230 func (x ClientConfigureRequest_RpcType) Number() protoreflect.EnumNumber { 231 return protoreflect.EnumNumber(x) 232 } 233 234 // Deprecated: Use ClientConfigureRequest_RpcType.Descriptor instead. 235 func (ClientConfigureRequest_RpcType) EnumDescriptor() ([]byte, []int) { 236 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{16, 0} 237 } 238 239 type HookRequest_HookRequestCommand int32 240 241 const ( 242 // Default value 243 HookRequest_UNSPECIFIED HookRequest_HookRequestCommand = 0 244 // Start the HTTP endpoint 245 HookRequest_START HookRequest_HookRequestCommand = 1 246 // Stop 247 HookRequest_STOP HookRequest_HookRequestCommand = 2 248 // Return from HTTP GET/POST 249 HookRequest_RETURN HookRequest_HookRequestCommand = 3 250 ) 251 252 // Enum value maps for HookRequest_HookRequestCommand. 253 var ( 254 HookRequest_HookRequestCommand_name = map[int32]string{ 255 0: "UNSPECIFIED", 256 1: "START", 257 2: "STOP", 258 3: "RETURN", 259 } 260 HookRequest_HookRequestCommand_value = map[string]int32{ 261 "UNSPECIFIED": 0, 262 "START": 1, 263 "STOP": 2, 264 "RETURN": 3, 265 } 266 ) 267 268 func (x HookRequest_HookRequestCommand) Enum() *HookRequest_HookRequestCommand { 269 p := new(HookRequest_HookRequestCommand) 270 *p = x 271 return p 272 } 273 274 func (x HookRequest_HookRequestCommand) String() string { 275 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 276 } 277 278 func (HookRequest_HookRequestCommand) Descriptor() protoreflect.EnumDescriptor { 279 return file_grpc_testing_messages_proto_enumTypes[4].Descriptor() 280 } 281 282 func (HookRequest_HookRequestCommand) Type() protoreflect.EnumType { 283 return &file_grpc_testing_messages_proto_enumTypes[4] 284 } 285 286 func (x HookRequest_HookRequestCommand) Number() protoreflect.EnumNumber { 287 return protoreflect.EnumNumber(x) 288 } 289 290 // Deprecated: Use HookRequest_HookRequestCommand.Descriptor instead. 291 func (HookRequest_HookRequestCommand) EnumDescriptor() ([]byte, []int) { 292 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{21, 0} 293 } 294 295 // TODO(dgq): Go back to using well-known types once 296 // https://github.com/grpc/grpc/issues/6980 has been fixed. 297 // import "google/protobuf/wrappers.proto"; 298 type BoolValue struct { 299 state protoimpl.MessageState `protogen:"open.v1"` 300 // The bool value. 301 Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` 302 unknownFields protoimpl.UnknownFields 303 sizeCache protoimpl.SizeCache 304 } 305 306 func (x *BoolValue) Reset() { 307 *x = BoolValue{} 308 mi := &file_grpc_testing_messages_proto_msgTypes[0] 309 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 310 ms.StoreMessageInfo(mi) 311 } 312 313 func (x *BoolValue) String() string { 314 return protoimpl.X.MessageStringOf(x) 315 } 316 317 func (*BoolValue) ProtoMessage() {} 318 319 func (x *BoolValue) ProtoReflect() protoreflect.Message { 320 mi := &file_grpc_testing_messages_proto_msgTypes[0] 321 if x != nil { 322 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 323 if ms.LoadMessageInfo() == nil { 324 ms.StoreMessageInfo(mi) 325 } 326 return ms 327 } 328 return mi.MessageOf(x) 329 } 330 331 // Deprecated: Use BoolValue.ProtoReflect.Descriptor instead. 332 func (*BoolValue) Descriptor() ([]byte, []int) { 333 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{0} 334 } 335 336 func (x *BoolValue) GetValue() bool { 337 if x != nil { 338 return x.Value 339 } 340 return false 341 } 342 343 // A block of data, to simply increase gRPC message size. 344 type Payload struct { 345 state protoimpl.MessageState `protogen:"open.v1"` 346 // The type of data in body. 347 Type PayloadType `protobuf:"varint,1,opt,name=type,proto3,enum=grpc.testing.PayloadType" json:"type,omitempty"` 348 // Primary contents of payload. 349 Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` 350 unknownFields protoimpl.UnknownFields 351 sizeCache protoimpl.SizeCache 352 } 353 354 func (x *Payload) Reset() { 355 *x = Payload{} 356 mi := &file_grpc_testing_messages_proto_msgTypes[1] 357 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 358 ms.StoreMessageInfo(mi) 359 } 360 361 func (x *Payload) String() string { 362 return protoimpl.X.MessageStringOf(x) 363 } 364 365 func (*Payload) ProtoMessage() {} 366 367 func (x *Payload) ProtoReflect() protoreflect.Message { 368 mi := &file_grpc_testing_messages_proto_msgTypes[1] 369 if x != nil { 370 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 371 if ms.LoadMessageInfo() == nil { 372 ms.StoreMessageInfo(mi) 373 } 374 return ms 375 } 376 return mi.MessageOf(x) 377 } 378 379 // Deprecated: Use Payload.ProtoReflect.Descriptor instead. 380 func (*Payload) Descriptor() ([]byte, []int) { 381 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{1} 382 } 383 384 func (x *Payload) GetType() PayloadType { 385 if x != nil { 386 return x.Type 387 } 388 return PayloadType_COMPRESSABLE 389 } 390 391 func (x *Payload) GetBody() []byte { 392 if x != nil { 393 return x.Body 394 } 395 return nil 396 } 397 398 // A protobuf representation for grpc status. This is used by test 399 // clients to specify a status that the server should attempt to return. 400 type EchoStatus struct { 401 state protoimpl.MessageState `protogen:"open.v1"` 402 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 403 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` 404 unknownFields protoimpl.UnknownFields 405 sizeCache protoimpl.SizeCache 406 } 407 408 func (x *EchoStatus) Reset() { 409 *x = EchoStatus{} 410 mi := &file_grpc_testing_messages_proto_msgTypes[2] 411 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 412 ms.StoreMessageInfo(mi) 413 } 414 415 func (x *EchoStatus) String() string { 416 return protoimpl.X.MessageStringOf(x) 417 } 418 419 func (*EchoStatus) ProtoMessage() {} 420 421 func (x *EchoStatus) ProtoReflect() protoreflect.Message { 422 mi := &file_grpc_testing_messages_proto_msgTypes[2] 423 if x != nil { 424 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 425 if ms.LoadMessageInfo() == nil { 426 ms.StoreMessageInfo(mi) 427 } 428 return ms 429 } 430 return mi.MessageOf(x) 431 } 432 433 // Deprecated: Use EchoStatus.ProtoReflect.Descriptor instead. 434 func (*EchoStatus) Descriptor() ([]byte, []int) { 435 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{2} 436 } 437 438 func (x *EchoStatus) GetCode() int32 { 439 if x != nil { 440 return x.Code 441 } 442 return 0 443 } 444 445 func (x *EchoStatus) GetMessage() string { 446 if x != nil { 447 return x.Message 448 } 449 return "" 450 } 451 452 // Unary request. 453 type SimpleRequest struct { 454 state protoimpl.MessageState `protogen:"open.v1"` 455 // Desired payload type in the response from the server. 456 // If response_type is RANDOM, server randomly chooses one from other formats. 457 ResponseType PayloadType `protobuf:"varint,1,opt,name=response_type,json=responseType,proto3,enum=grpc.testing.PayloadType" json:"response_type,omitempty"` 458 // Desired payload size in the response from the server. 459 ResponseSize int32 `protobuf:"varint,2,opt,name=response_size,json=responseSize,proto3" json:"response_size,omitempty"` 460 // Optional input payload sent along with the request. 461 Payload *Payload `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` 462 // Whether SimpleResponse should include username. 463 FillUsername bool `protobuf:"varint,4,opt,name=fill_username,json=fillUsername,proto3" json:"fill_username,omitempty"` 464 // Whether SimpleResponse should include OAuth scope. 465 FillOauthScope bool `protobuf:"varint,5,opt,name=fill_oauth_scope,json=fillOauthScope,proto3" json:"fill_oauth_scope,omitempty"` 466 // Whether to request the server to compress the response. This field is 467 // "nullable" in order to interoperate seamlessly with clients not able to 468 // implement the full compression tests by introspecting the call to verify 469 // the response's compression status. 470 ResponseCompressed *BoolValue `protobuf:"bytes,6,opt,name=response_compressed,json=responseCompressed,proto3" json:"response_compressed,omitempty"` 471 // Whether server should return a given status 472 ResponseStatus *EchoStatus `protobuf:"bytes,7,opt,name=response_status,json=responseStatus,proto3" json:"response_status,omitempty"` 473 // Whether the server should expect this request to be compressed. 474 ExpectCompressed *BoolValue `protobuf:"bytes,8,opt,name=expect_compressed,json=expectCompressed,proto3" json:"expect_compressed,omitempty"` 475 // Whether SimpleResponse should include server_id. 476 FillServerId bool `protobuf:"varint,9,opt,name=fill_server_id,json=fillServerId,proto3" json:"fill_server_id,omitempty"` 477 // Whether SimpleResponse should include grpclb_route_type. 478 FillGrpclbRouteType bool `protobuf:"varint,10,opt,name=fill_grpclb_route_type,json=fillGrpclbRouteType,proto3" json:"fill_grpclb_route_type,omitempty"` 479 // If set the server should record this metrics report data for the current RPC. 480 OrcaPerQueryReport *TestOrcaReport `protobuf:"bytes,11,opt,name=orca_per_query_report,json=orcaPerQueryReport,proto3" json:"orca_per_query_report,omitempty"` 481 unknownFields protoimpl.UnknownFields 482 sizeCache protoimpl.SizeCache 483 } 484 485 func (x *SimpleRequest) Reset() { 486 *x = SimpleRequest{} 487 mi := &file_grpc_testing_messages_proto_msgTypes[3] 488 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 489 ms.StoreMessageInfo(mi) 490 } 491 492 func (x *SimpleRequest) String() string { 493 return protoimpl.X.MessageStringOf(x) 494 } 495 496 func (*SimpleRequest) ProtoMessage() {} 497 498 func (x *SimpleRequest) ProtoReflect() protoreflect.Message { 499 mi := &file_grpc_testing_messages_proto_msgTypes[3] 500 if x != nil { 501 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 502 if ms.LoadMessageInfo() == nil { 503 ms.StoreMessageInfo(mi) 504 } 505 return ms 506 } 507 return mi.MessageOf(x) 508 } 509 510 // Deprecated: Use SimpleRequest.ProtoReflect.Descriptor instead. 511 func (*SimpleRequest) Descriptor() ([]byte, []int) { 512 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{3} 513 } 514 515 func (x *SimpleRequest) GetResponseType() PayloadType { 516 if x != nil { 517 return x.ResponseType 518 } 519 return PayloadType_COMPRESSABLE 520 } 521 522 func (x *SimpleRequest) GetResponseSize() int32 { 523 if x != nil { 524 return x.ResponseSize 525 } 526 return 0 527 } 528 529 func (x *SimpleRequest) GetPayload() *Payload { 530 if x != nil { 531 return x.Payload 532 } 533 return nil 534 } 535 536 func (x *SimpleRequest) GetFillUsername() bool { 537 if x != nil { 538 return x.FillUsername 539 } 540 return false 541 } 542 543 func (x *SimpleRequest) GetFillOauthScope() bool { 544 if x != nil { 545 return x.FillOauthScope 546 } 547 return false 548 } 549 550 func (x *SimpleRequest) GetResponseCompressed() *BoolValue { 551 if x != nil { 552 return x.ResponseCompressed 553 } 554 return nil 555 } 556 557 func (x *SimpleRequest) GetResponseStatus() *EchoStatus { 558 if x != nil { 559 return x.ResponseStatus 560 } 561 return nil 562 } 563 564 func (x *SimpleRequest) GetExpectCompressed() *BoolValue { 565 if x != nil { 566 return x.ExpectCompressed 567 } 568 return nil 569 } 570 571 func (x *SimpleRequest) GetFillServerId() bool { 572 if x != nil { 573 return x.FillServerId 574 } 575 return false 576 } 577 578 func (x *SimpleRequest) GetFillGrpclbRouteType() bool { 579 if x != nil { 580 return x.FillGrpclbRouteType 581 } 582 return false 583 } 584 585 func (x *SimpleRequest) GetOrcaPerQueryReport() *TestOrcaReport { 586 if x != nil { 587 return x.OrcaPerQueryReport 588 } 589 return nil 590 } 591 592 // Unary response, as configured by the request. 593 type SimpleResponse struct { 594 state protoimpl.MessageState `protogen:"open.v1"` 595 // Payload to increase message size. 596 Payload *Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` 597 // The user the request came from, for verifying authentication was 598 // successful when the client expected it. 599 Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` 600 // OAuth scope. 601 OauthScope string `protobuf:"bytes,3,opt,name=oauth_scope,json=oauthScope,proto3" json:"oauth_scope,omitempty"` 602 // Server ID. This must be unique among different server instances, 603 // but the same across all RPC's made to a particular server instance. 604 ServerId string `protobuf:"bytes,4,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` 605 // gRPCLB Path. 606 GrpclbRouteType GrpclbRouteType `protobuf:"varint,5,opt,name=grpclb_route_type,json=grpclbRouteType,proto3,enum=grpc.testing.GrpclbRouteType" json:"grpclb_route_type,omitempty"` 607 // Server hostname. 608 Hostname string `protobuf:"bytes,6,opt,name=hostname,proto3" json:"hostname,omitempty"` 609 unknownFields protoimpl.UnknownFields 610 sizeCache protoimpl.SizeCache 611 } 612 613 func (x *SimpleResponse) Reset() { 614 *x = SimpleResponse{} 615 mi := &file_grpc_testing_messages_proto_msgTypes[4] 616 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 617 ms.StoreMessageInfo(mi) 618 } 619 620 func (x *SimpleResponse) String() string { 621 return protoimpl.X.MessageStringOf(x) 622 } 623 624 func (*SimpleResponse) ProtoMessage() {} 625 626 func (x *SimpleResponse) ProtoReflect() protoreflect.Message { 627 mi := &file_grpc_testing_messages_proto_msgTypes[4] 628 if x != nil { 629 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 630 if ms.LoadMessageInfo() == nil { 631 ms.StoreMessageInfo(mi) 632 } 633 return ms 634 } 635 return mi.MessageOf(x) 636 } 637 638 // Deprecated: Use SimpleResponse.ProtoReflect.Descriptor instead. 639 func (*SimpleResponse) Descriptor() ([]byte, []int) { 640 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{4} 641 } 642 643 func (x *SimpleResponse) GetPayload() *Payload { 644 if x != nil { 645 return x.Payload 646 } 647 return nil 648 } 649 650 func (x *SimpleResponse) GetUsername() string { 651 if x != nil { 652 return x.Username 653 } 654 return "" 655 } 656 657 func (x *SimpleResponse) GetOauthScope() string { 658 if x != nil { 659 return x.OauthScope 660 } 661 return "" 662 } 663 664 func (x *SimpleResponse) GetServerId() string { 665 if x != nil { 666 return x.ServerId 667 } 668 return "" 669 } 670 671 func (x *SimpleResponse) GetGrpclbRouteType() GrpclbRouteType { 672 if x != nil { 673 return x.GrpclbRouteType 674 } 675 return GrpclbRouteType_GRPCLB_ROUTE_TYPE_UNKNOWN 676 } 677 678 func (x *SimpleResponse) GetHostname() string { 679 if x != nil { 680 return x.Hostname 681 } 682 return "" 683 } 684 685 // Client-streaming request. 686 type StreamingInputCallRequest struct { 687 state protoimpl.MessageState `protogen:"open.v1"` 688 // Optional input payload sent along with the request. 689 Payload *Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` 690 // Whether the server should expect this request to be compressed. This field 691 // is "nullable" in order to interoperate seamlessly with servers not able to 692 // implement the full compression tests by introspecting the call to verify 693 // the request's compression status. 694 ExpectCompressed *BoolValue `protobuf:"bytes,2,opt,name=expect_compressed,json=expectCompressed,proto3" json:"expect_compressed,omitempty"` 695 unknownFields protoimpl.UnknownFields 696 sizeCache protoimpl.SizeCache 697 } 698 699 func (x *StreamingInputCallRequest) Reset() { 700 *x = StreamingInputCallRequest{} 701 mi := &file_grpc_testing_messages_proto_msgTypes[5] 702 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 703 ms.StoreMessageInfo(mi) 704 } 705 706 func (x *StreamingInputCallRequest) String() string { 707 return protoimpl.X.MessageStringOf(x) 708 } 709 710 func (*StreamingInputCallRequest) ProtoMessage() {} 711 712 func (x *StreamingInputCallRequest) ProtoReflect() protoreflect.Message { 713 mi := &file_grpc_testing_messages_proto_msgTypes[5] 714 if x != nil { 715 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 716 if ms.LoadMessageInfo() == nil { 717 ms.StoreMessageInfo(mi) 718 } 719 return ms 720 } 721 return mi.MessageOf(x) 722 } 723 724 // Deprecated: Use StreamingInputCallRequest.ProtoReflect.Descriptor instead. 725 func (*StreamingInputCallRequest) Descriptor() ([]byte, []int) { 726 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{5} 727 } 728 729 func (x *StreamingInputCallRequest) GetPayload() *Payload { 730 if x != nil { 731 return x.Payload 732 } 733 return nil 734 } 735 736 func (x *StreamingInputCallRequest) GetExpectCompressed() *BoolValue { 737 if x != nil { 738 return x.ExpectCompressed 739 } 740 return nil 741 } 742 743 // Client-streaming response. 744 type StreamingInputCallResponse struct { 745 state protoimpl.MessageState `protogen:"open.v1"` 746 // Aggregated size of payloads received from the client. 747 AggregatedPayloadSize int32 `protobuf:"varint,1,opt,name=aggregated_payload_size,json=aggregatedPayloadSize,proto3" json:"aggregated_payload_size,omitempty"` 748 unknownFields protoimpl.UnknownFields 749 sizeCache protoimpl.SizeCache 750 } 751 752 func (x *StreamingInputCallResponse) Reset() { 753 *x = StreamingInputCallResponse{} 754 mi := &file_grpc_testing_messages_proto_msgTypes[6] 755 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 756 ms.StoreMessageInfo(mi) 757 } 758 759 func (x *StreamingInputCallResponse) String() string { 760 return protoimpl.X.MessageStringOf(x) 761 } 762 763 func (*StreamingInputCallResponse) ProtoMessage() {} 764 765 func (x *StreamingInputCallResponse) ProtoReflect() protoreflect.Message { 766 mi := &file_grpc_testing_messages_proto_msgTypes[6] 767 if x != nil { 768 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 769 if ms.LoadMessageInfo() == nil { 770 ms.StoreMessageInfo(mi) 771 } 772 return ms 773 } 774 return mi.MessageOf(x) 775 } 776 777 // Deprecated: Use StreamingInputCallResponse.ProtoReflect.Descriptor instead. 778 func (*StreamingInputCallResponse) Descriptor() ([]byte, []int) { 779 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{6} 780 } 781 782 func (x *StreamingInputCallResponse) GetAggregatedPayloadSize() int32 { 783 if x != nil { 784 return x.AggregatedPayloadSize 785 } 786 return 0 787 } 788 789 // Configuration for a particular response. 790 type ResponseParameters struct { 791 state protoimpl.MessageState `protogen:"open.v1"` 792 // Desired payload sizes in responses from the server. 793 Size int32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` 794 // Desired interval between consecutive responses in the response stream in 795 // microseconds. 796 IntervalUs int32 `protobuf:"varint,2,opt,name=interval_us,json=intervalUs,proto3" json:"interval_us,omitempty"` 797 // Whether to request the server to compress the response. This field is 798 // "nullable" in order to interoperate seamlessly with clients not able to 799 // implement the full compression tests by introspecting the call to verify 800 // the response's compression status. 801 Compressed *BoolValue `protobuf:"bytes,3,opt,name=compressed,proto3" json:"compressed,omitempty"` 802 unknownFields protoimpl.UnknownFields 803 sizeCache protoimpl.SizeCache 804 } 805 806 func (x *ResponseParameters) Reset() { 807 *x = ResponseParameters{} 808 mi := &file_grpc_testing_messages_proto_msgTypes[7] 809 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 810 ms.StoreMessageInfo(mi) 811 } 812 813 func (x *ResponseParameters) String() string { 814 return protoimpl.X.MessageStringOf(x) 815 } 816 817 func (*ResponseParameters) ProtoMessage() {} 818 819 func (x *ResponseParameters) ProtoReflect() protoreflect.Message { 820 mi := &file_grpc_testing_messages_proto_msgTypes[7] 821 if x != nil { 822 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 823 if ms.LoadMessageInfo() == nil { 824 ms.StoreMessageInfo(mi) 825 } 826 return ms 827 } 828 return mi.MessageOf(x) 829 } 830 831 // Deprecated: Use ResponseParameters.ProtoReflect.Descriptor instead. 832 func (*ResponseParameters) Descriptor() ([]byte, []int) { 833 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{7} 834 } 835 836 func (x *ResponseParameters) GetSize() int32 { 837 if x != nil { 838 return x.Size 839 } 840 return 0 841 } 842 843 func (x *ResponseParameters) GetIntervalUs() int32 { 844 if x != nil { 845 return x.IntervalUs 846 } 847 return 0 848 } 849 850 func (x *ResponseParameters) GetCompressed() *BoolValue { 851 if x != nil { 852 return x.Compressed 853 } 854 return nil 855 } 856 857 // Server-streaming request. 858 type StreamingOutputCallRequest struct { 859 state protoimpl.MessageState `protogen:"open.v1"` 860 // Desired payload type in the response from the server. 861 // If response_type is RANDOM, the payload from each response in the stream 862 // might be of different types. This is to simulate a mixed type of payload 863 // stream. 864 ResponseType PayloadType `protobuf:"varint,1,opt,name=response_type,json=responseType,proto3,enum=grpc.testing.PayloadType" json:"response_type,omitempty"` 865 // Configuration for each expected response message. 866 ResponseParameters []*ResponseParameters `protobuf:"bytes,2,rep,name=response_parameters,json=responseParameters,proto3" json:"response_parameters,omitempty"` 867 // Optional input payload sent along with the request. 868 Payload *Payload `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` 869 // Whether server should return a given status 870 ResponseStatus *EchoStatus `protobuf:"bytes,7,opt,name=response_status,json=responseStatus,proto3" json:"response_status,omitempty"` 871 // If set the server should update this metrics report data at the OOB server. 872 OrcaOobReport *TestOrcaReport `protobuf:"bytes,8,opt,name=orca_oob_report,json=orcaOobReport,proto3" json:"orca_oob_report,omitempty"` 873 unknownFields protoimpl.UnknownFields 874 sizeCache protoimpl.SizeCache 875 } 876 877 func (x *StreamingOutputCallRequest) Reset() { 878 *x = StreamingOutputCallRequest{} 879 mi := &file_grpc_testing_messages_proto_msgTypes[8] 880 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 881 ms.StoreMessageInfo(mi) 882 } 883 884 func (x *StreamingOutputCallRequest) String() string { 885 return protoimpl.X.MessageStringOf(x) 886 } 887 888 func (*StreamingOutputCallRequest) ProtoMessage() {} 889 890 func (x *StreamingOutputCallRequest) ProtoReflect() protoreflect.Message { 891 mi := &file_grpc_testing_messages_proto_msgTypes[8] 892 if x != nil { 893 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 894 if ms.LoadMessageInfo() == nil { 895 ms.StoreMessageInfo(mi) 896 } 897 return ms 898 } 899 return mi.MessageOf(x) 900 } 901 902 // Deprecated: Use StreamingOutputCallRequest.ProtoReflect.Descriptor instead. 903 func (*StreamingOutputCallRequest) Descriptor() ([]byte, []int) { 904 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{8} 905 } 906 907 func (x *StreamingOutputCallRequest) GetResponseType() PayloadType { 908 if x != nil { 909 return x.ResponseType 910 } 911 return PayloadType_COMPRESSABLE 912 } 913 914 func (x *StreamingOutputCallRequest) GetResponseParameters() []*ResponseParameters { 915 if x != nil { 916 return x.ResponseParameters 917 } 918 return nil 919 } 920 921 func (x *StreamingOutputCallRequest) GetPayload() *Payload { 922 if x != nil { 923 return x.Payload 924 } 925 return nil 926 } 927 928 func (x *StreamingOutputCallRequest) GetResponseStatus() *EchoStatus { 929 if x != nil { 930 return x.ResponseStatus 931 } 932 return nil 933 } 934 935 func (x *StreamingOutputCallRequest) GetOrcaOobReport() *TestOrcaReport { 936 if x != nil { 937 return x.OrcaOobReport 938 } 939 return nil 940 } 941 942 // Server-streaming response, as configured by the request and parameters. 943 type StreamingOutputCallResponse struct { 944 state protoimpl.MessageState `protogen:"open.v1"` 945 // Payload to increase response size. 946 Payload *Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` 947 unknownFields protoimpl.UnknownFields 948 sizeCache protoimpl.SizeCache 949 } 950 951 func (x *StreamingOutputCallResponse) Reset() { 952 *x = StreamingOutputCallResponse{} 953 mi := &file_grpc_testing_messages_proto_msgTypes[9] 954 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 955 ms.StoreMessageInfo(mi) 956 } 957 958 func (x *StreamingOutputCallResponse) String() string { 959 return protoimpl.X.MessageStringOf(x) 960 } 961 962 func (*StreamingOutputCallResponse) ProtoMessage() {} 963 964 func (x *StreamingOutputCallResponse) ProtoReflect() protoreflect.Message { 965 mi := &file_grpc_testing_messages_proto_msgTypes[9] 966 if x != nil { 967 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 968 if ms.LoadMessageInfo() == nil { 969 ms.StoreMessageInfo(mi) 970 } 971 return ms 972 } 973 return mi.MessageOf(x) 974 } 975 976 // Deprecated: Use StreamingOutputCallResponse.ProtoReflect.Descriptor instead. 977 func (*StreamingOutputCallResponse) Descriptor() ([]byte, []int) { 978 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{9} 979 } 980 981 func (x *StreamingOutputCallResponse) GetPayload() *Payload { 982 if x != nil { 983 return x.Payload 984 } 985 return nil 986 } 987 988 // For reconnect interop test only. 989 // Client tells server what reconnection parameters it used. 990 type ReconnectParams struct { 991 state protoimpl.MessageState `protogen:"open.v1"` 992 MaxReconnectBackoffMs int32 `protobuf:"varint,1,opt,name=max_reconnect_backoff_ms,json=maxReconnectBackoffMs,proto3" json:"max_reconnect_backoff_ms,omitempty"` 993 unknownFields protoimpl.UnknownFields 994 sizeCache protoimpl.SizeCache 995 } 996 997 func (x *ReconnectParams) Reset() { 998 *x = ReconnectParams{} 999 mi := &file_grpc_testing_messages_proto_msgTypes[10] 1000 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1001 ms.StoreMessageInfo(mi) 1002 } 1003 1004 func (x *ReconnectParams) String() string { 1005 return protoimpl.X.MessageStringOf(x) 1006 } 1007 1008 func (*ReconnectParams) ProtoMessage() {} 1009 1010 func (x *ReconnectParams) ProtoReflect() protoreflect.Message { 1011 mi := &file_grpc_testing_messages_proto_msgTypes[10] 1012 if x != nil { 1013 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1014 if ms.LoadMessageInfo() == nil { 1015 ms.StoreMessageInfo(mi) 1016 } 1017 return ms 1018 } 1019 return mi.MessageOf(x) 1020 } 1021 1022 // Deprecated: Use ReconnectParams.ProtoReflect.Descriptor instead. 1023 func (*ReconnectParams) Descriptor() ([]byte, []int) { 1024 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{10} 1025 } 1026 1027 func (x *ReconnectParams) GetMaxReconnectBackoffMs() int32 { 1028 if x != nil { 1029 return x.MaxReconnectBackoffMs 1030 } 1031 return 0 1032 } 1033 1034 // For reconnect interop test only. 1035 // Server tells client whether its reconnects are following the spec and the 1036 // reconnect backoffs it saw. 1037 type ReconnectInfo struct { 1038 state protoimpl.MessageState `protogen:"open.v1"` 1039 Passed bool `protobuf:"varint,1,opt,name=passed,proto3" json:"passed,omitempty"` 1040 BackoffMs []int32 `protobuf:"varint,2,rep,packed,name=backoff_ms,json=backoffMs,proto3" json:"backoff_ms,omitempty"` 1041 unknownFields protoimpl.UnknownFields 1042 sizeCache protoimpl.SizeCache 1043 } 1044 1045 func (x *ReconnectInfo) Reset() { 1046 *x = ReconnectInfo{} 1047 mi := &file_grpc_testing_messages_proto_msgTypes[11] 1048 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1049 ms.StoreMessageInfo(mi) 1050 } 1051 1052 func (x *ReconnectInfo) String() string { 1053 return protoimpl.X.MessageStringOf(x) 1054 } 1055 1056 func (*ReconnectInfo) ProtoMessage() {} 1057 1058 func (x *ReconnectInfo) ProtoReflect() protoreflect.Message { 1059 mi := &file_grpc_testing_messages_proto_msgTypes[11] 1060 if x != nil { 1061 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1062 if ms.LoadMessageInfo() == nil { 1063 ms.StoreMessageInfo(mi) 1064 } 1065 return ms 1066 } 1067 return mi.MessageOf(x) 1068 } 1069 1070 // Deprecated: Use ReconnectInfo.ProtoReflect.Descriptor instead. 1071 func (*ReconnectInfo) Descriptor() ([]byte, []int) { 1072 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{11} 1073 } 1074 1075 func (x *ReconnectInfo) GetPassed() bool { 1076 if x != nil { 1077 return x.Passed 1078 } 1079 return false 1080 } 1081 1082 func (x *ReconnectInfo) GetBackoffMs() []int32 { 1083 if x != nil { 1084 return x.BackoffMs 1085 } 1086 return nil 1087 } 1088 1089 type LoadBalancerStatsRequest struct { 1090 state protoimpl.MessageState `protogen:"open.v1"` 1091 // Request stats for the next num_rpcs sent by client. 1092 NumRpcs int32 `protobuf:"varint,1,opt,name=num_rpcs,json=numRpcs,proto3" json:"num_rpcs,omitempty"` 1093 // If num_rpcs have not completed within timeout_sec, return partial results. 1094 TimeoutSec int32 `protobuf:"varint,2,opt,name=timeout_sec,json=timeoutSec,proto3" json:"timeout_sec,omitempty"` 1095 // Response header + trailer metadata entries we want the values of. 1096 // Matching of the keys is case-insensitive as per rfc7540#section-8.1.2 1097 // * (asterisk) is a special value that will return all metadata entries 1098 MetadataKeys []string `protobuf:"bytes,3,rep,name=metadata_keys,json=metadataKeys,proto3" json:"metadata_keys,omitempty"` 1099 unknownFields protoimpl.UnknownFields 1100 sizeCache protoimpl.SizeCache 1101 } 1102 1103 func (x *LoadBalancerStatsRequest) Reset() { 1104 *x = LoadBalancerStatsRequest{} 1105 mi := &file_grpc_testing_messages_proto_msgTypes[12] 1106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1107 ms.StoreMessageInfo(mi) 1108 } 1109 1110 func (x *LoadBalancerStatsRequest) String() string { 1111 return protoimpl.X.MessageStringOf(x) 1112 } 1113 1114 func (*LoadBalancerStatsRequest) ProtoMessage() {} 1115 1116 func (x *LoadBalancerStatsRequest) ProtoReflect() protoreflect.Message { 1117 mi := &file_grpc_testing_messages_proto_msgTypes[12] 1118 if x != nil { 1119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1120 if ms.LoadMessageInfo() == nil { 1121 ms.StoreMessageInfo(mi) 1122 } 1123 return ms 1124 } 1125 return mi.MessageOf(x) 1126 } 1127 1128 // Deprecated: Use LoadBalancerStatsRequest.ProtoReflect.Descriptor instead. 1129 func (*LoadBalancerStatsRequest) Descriptor() ([]byte, []int) { 1130 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{12} 1131 } 1132 1133 func (x *LoadBalancerStatsRequest) GetNumRpcs() int32 { 1134 if x != nil { 1135 return x.NumRpcs 1136 } 1137 return 0 1138 } 1139 1140 func (x *LoadBalancerStatsRequest) GetTimeoutSec() int32 { 1141 if x != nil { 1142 return x.TimeoutSec 1143 } 1144 return 0 1145 } 1146 1147 func (x *LoadBalancerStatsRequest) GetMetadataKeys() []string { 1148 if x != nil { 1149 return x.MetadataKeys 1150 } 1151 return nil 1152 } 1153 1154 type LoadBalancerStatsResponse struct { 1155 state protoimpl.MessageState `protogen:"open.v1"` 1156 // The number of completed RPCs for each peer. 1157 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" protobuf_val:"varint,2,opt,name=value"` 1158 // The number of RPCs that failed to record a remote peer. 1159 NumFailures int32 `protobuf:"varint,2,opt,name=num_failures,json=numFailures,proto3" json:"num_failures,omitempty"` 1160 RpcsByMethod map[string]*LoadBalancerStatsResponse_RpcsByPeer `protobuf:"bytes,3,rep,name=rpcs_by_method,json=rpcsByMethod,proto3" json:"rpcs_by_method,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 1161 // All the metadata of all RPCs for each peer. 1162 MetadatasByPeer map[string]*LoadBalancerStatsResponse_MetadataByPeer `protobuf:"bytes,4,rep,name=metadatas_by_peer,json=metadatasByPeer,proto3" json:"metadatas_by_peer,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 1163 unknownFields protoimpl.UnknownFields 1164 sizeCache protoimpl.SizeCache 1165 } 1166 1167 func (x *LoadBalancerStatsResponse) Reset() { 1168 *x = LoadBalancerStatsResponse{} 1169 mi := &file_grpc_testing_messages_proto_msgTypes[13] 1170 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1171 ms.StoreMessageInfo(mi) 1172 } 1173 1174 func (x *LoadBalancerStatsResponse) String() string { 1175 return protoimpl.X.MessageStringOf(x) 1176 } 1177 1178 func (*LoadBalancerStatsResponse) ProtoMessage() {} 1179 1180 func (x *LoadBalancerStatsResponse) ProtoReflect() protoreflect.Message { 1181 mi := &file_grpc_testing_messages_proto_msgTypes[13] 1182 if x != nil { 1183 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1184 if ms.LoadMessageInfo() == nil { 1185 ms.StoreMessageInfo(mi) 1186 } 1187 return ms 1188 } 1189 return mi.MessageOf(x) 1190 } 1191 1192 // Deprecated: Use LoadBalancerStatsResponse.ProtoReflect.Descriptor instead. 1193 func (*LoadBalancerStatsResponse) Descriptor() ([]byte, []int) { 1194 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{13} 1195 } 1196 1197 func (x *LoadBalancerStatsResponse) GetRpcsByPeer() map[string]int32 { 1198 if x != nil { 1199 return x.RpcsByPeer 1200 } 1201 return nil 1202 } 1203 1204 func (x *LoadBalancerStatsResponse) GetNumFailures() int32 { 1205 if x != nil { 1206 return x.NumFailures 1207 } 1208 return 0 1209 } 1210 1211 func (x *LoadBalancerStatsResponse) GetRpcsByMethod() map[string]*LoadBalancerStatsResponse_RpcsByPeer { 1212 if x != nil { 1213 return x.RpcsByMethod 1214 } 1215 return nil 1216 } 1217 1218 func (x *LoadBalancerStatsResponse) GetMetadatasByPeer() map[string]*LoadBalancerStatsResponse_MetadataByPeer { 1219 if x != nil { 1220 return x.MetadatasByPeer 1221 } 1222 return nil 1223 } 1224 1225 // Request for retrieving a test client's accumulated stats. 1226 type LoadBalancerAccumulatedStatsRequest struct { 1227 state protoimpl.MessageState `protogen:"open.v1"` 1228 unknownFields protoimpl.UnknownFields 1229 sizeCache protoimpl.SizeCache 1230 } 1231 1232 func (x *LoadBalancerAccumulatedStatsRequest) Reset() { 1233 *x = LoadBalancerAccumulatedStatsRequest{} 1234 mi := &file_grpc_testing_messages_proto_msgTypes[14] 1235 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1236 ms.StoreMessageInfo(mi) 1237 } 1238 1239 func (x *LoadBalancerAccumulatedStatsRequest) String() string { 1240 return protoimpl.X.MessageStringOf(x) 1241 } 1242 1243 func (*LoadBalancerAccumulatedStatsRequest) ProtoMessage() {} 1244 1245 func (x *LoadBalancerAccumulatedStatsRequest) ProtoReflect() protoreflect.Message { 1246 mi := &file_grpc_testing_messages_proto_msgTypes[14] 1247 if x != nil { 1248 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1249 if ms.LoadMessageInfo() == nil { 1250 ms.StoreMessageInfo(mi) 1251 } 1252 return ms 1253 } 1254 return mi.MessageOf(x) 1255 } 1256 1257 // Deprecated: Use LoadBalancerAccumulatedStatsRequest.ProtoReflect.Descriptor instead. 1258 func (*LoadBalancerAccumulatedStatsRequest) Descriptor() ([]byte, []int) { 1259 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{14} 1260 } 1261 1262 // Accumulated stats for RPCs sent by a test client. 1263 type LoadBalancerAccumulatedStatsResponse struct { 1264 state protoimpl.MessageState `protogen:"open.v1"` 1265 // The total number of RPCs have ever issued for each type. 1266 // Deprecated: use stats_per_method.rpcs_started instead. 1267 // 1268 // Deprecated: Marked as deprecated in grpc/testing/messages.proto. 1269 NumRpcsStartedByMethod map[string]int32 `protobuf:"bytes,1,rep,name=num_rpcs_started_by_method,json=numRpcsStartedByMethod,proto3" json:"num_rpcs_started_by_method,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` 1270 // The total number of RPCs have ever completed successfully for each type. 1271 // Deprecated: use stats_per_method.result instead. 1272 // 1273 // Deprecated: Marked as deprecated in grpc/testing/messages.proto. 1274 NumRpcsSucceededByMethod map[string]int32 `protobuf:"bytes,2,rep,name=num_rpcs_succeeded_by_method,json=numRpcsSucceededByMethod,proto3" json:"num_rpcs_succeeded_by_method,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` 1275 // The total number of RPCs have ever failed for each type. 1276 // Deprecated: use stats_per_method.result instead. 1277 // 1278 // Deprecated: Marked as deprecated in grpc/testing/messages.proto. 1279 NumRpcsFailedByMethod map[string]int32 `protobuf:"bytes,3,rep,name=num_rpcs_failed_by_method,json=numRpcsFailedByMethod,proto3" json:"num_rpcs_failed_by_method,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` 1280 // Per-method RPC statistics. The key is the RpcType in string form; e.g. 1281 // 'EMPTY_CALL' or 'UNARY_CALL' 1282 StatsPerMethod map[string]*LoadBalancerAccumulatedStatsResponse_MethodStats `protobuf:"bytes,4,rep,name=stats_per_method,json=statsPerMethod,proto3" json:"stats_per_method,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 1283 unknownFields protoimpl.UnknownFields 1284 sizeCache protoimpl.SizeCache 1285 } 1286 1287 func (x *LoadBalancerAccumulatedStatsResponse) Reset() { 1288 *x = LoadBalancerAccumulatedStatsResponse{} 1289 mi := &file_grpc_testing_messages_proto_msgTypes[15] 1290 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1291 ms.StoreMessageInfo(mi) 1292 } 1293 1294 func (x *LoadBalancerAccumulatedStatsResponse) String() string { 1295 return protoimpl.X.MessageStringOf(x) 1296 } 1297 1298 func (*LoadBalancerAccumulatedStatsResponse) ProtoMessage() {} 1299 1300 func (x *LoadBalancerAccumulatedStatsResponse) ProtoReflect() protoreflect.Message { 1301 mi := &file_grpc_testing_messages_proto_msgTypes[15] 1302 if x != nil { 1303 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1304 if ms.LoadMessageInfo() == nil { 1305 ms.StoreMessageInfo(mi) 1306 } 1307 return ms 1308 } 1309 return mi.MessageOf(x) 1310 } 1311 1312 // Deprecated: Use LoadBalancerAccumulatedStatsResponse.ProtoReflect.Descriptor instead. 1313 func (*LoadBalancerAccumulatedStatsResponse) Descriptor() ([]byte, []int) { 1314 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{15} 1315 } 1316 1317 // Deprecated: Marked as deprecated in grpc/testing/messages.proto. 1318 func (x *LoadBalancerAccumulatedStatsResponse) GetNumRpcsStartedByMethod() map[string]int32 { 1319 if x != nil { 1320 return x.NumRpcsStartedByMethod 1321 } 1322 return nil 1323 } 1324 1325 // Deprecated: Marked as deprecated in grpc/testing/messages.proto. 1326 func (x *LoadBalancerAccumulatedStatsResponse) GetNumRpcsSucceededByMethod() map[string]int32 { 1327 if x != nil { 1328 return x.NumRpcsSucceededByMethod 1329 } 1330 return nil 1331 } 1332 1333 // Deprecated: Marked as deprecated in grpc/testing/messages.proto. 1334 func (x *LoadBalancerAccumulatedStatsResponse) GetNumRpcsFailedByMethod() map[string]int32 { 1335 if x != nil { 1336 return x.NumRpcsFailedByMethod 1337 } 1338 return nil 1339 } 1340 1341 func (x *LoadBalancerAccumulatedStatsResponse) GetStatsPerMethod() map[string]*LoadBalancerAccumulatedStatsResponse_MethodStats { 1342 if x != nil { 1343 return x.StatsPerMethod 1344 } 1345 return nil 1346 } 1347 1348 // Configurations for a test client. 1349 type ClientConfigureRequest struct { 1350 state protoimpl.MessageState `protogen:"open.v1"` 1351 // The types of RPCs the client sends. 1352 Types []ClientConfigureRequest_RpcType `protobuf:"varint,1,rep,packed,name=types,proto3,enum=grpc.testing.ClientConfigureRequest_RpcType" json:"types,omitempty"` 1353 // The collection of custom metadata to be attached to RPCs sent by the client. 1354 Metadata []*ClientConfigureRequest_Metadata `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty"` 1355 // The deadline to use, in seconds, for all RPCs. If unset or zero, the 1356 // client will use the default from the command-line. 1357 TimeoutSec int32 `protobuf:"varint,3,opt,name=timeout_sec,json=timeoutSec,proto3" json:"timeout_sec,omitempty"` 1358 unknownFields protoimpl.UnknownFields 1359 sizeCache protoimpl.SizeCache 1360 } 1361 1362 func (x *ClientConfigureRequest) Reset() { 1363 *x = ClientConfigureRequest{} 1364 mi := &file_grpc_testing_messages_proto_msgTypes[16] 1365 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1366 ms.StoreMessageInfo(mi) 1367 } 1368 1369 func (x *ClientConfigureRequest) String() string { 1370 return protoimpl.X.MessageStringOf(x) 1371 } 1372 1373 func (*ClientConfigureRequest) ProtoMessage() {} 1374 1375 func (x *ClientConfigureRequest) ProtoReflect() protoreflect.Message { 1376 mi := &file_grpc_testing_messages_proto_msgTypes[16] 1377 if x != nil { 1378 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1379 if ms.LoadMessageInfo() == nil { 1380 ms.StoreMessageInfo(mi) 1381 } 1382 return ms 1383 } 1384 return mi.MessageOf(x) 1385 } 1386 1387 // Deprecated: Use ClientConfigureRequest.ProtoReflect.Descriptor instead. 1388 func (*ClientConfigureRequest) Descriptor() ([]byte, []int) { 1389 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{16} 1390 } 1391 1392 func (x *ClientConfigureRequest) GetTypes() []ClientConfigureRequest_RpcType { 1393 if x != nil { 1394 return x.Types 1395 } 1396 return nil 1397 } 1398 1399 func (x *ClientConfigureRequest) GetMetadata() []*ClientConfigureRequest_Metadata { 1400 if x != nil { 1401 return x.Metadata 1402 } 1403 return nil 1404 } 1405 1406 func (x *ClientConfigureRequest) GetTimeoutSec() int32 { 1407 if x != nil { 1408 return x.TimeoutSec 1409 } 1410 return 0 1411 } 1412 1413 // Response for updating a test client's configuration. 1414 type ClientConfigureResponse struct { 1415 state protoimpl.MessageState `protogen:"open.v1"` 1416 unknownFields protoimpl.UnknownFields 1417 sizeCache protoimpl.SizeCache 1418 } 1419 1420 func (x *ClientConfigureResponse) Reset() { 1421 *x = ClientConfigureResponse{} 1422 mi := &file_grpc_testing_messages_proto_msgTypes[17] 1423 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1424 ms.StoreMessageInfo(mi) 1425 } 1426 1427 func (x *ClientConfigureResponse) String() string { 1428 return protoimpl.X.MessageStringOf(x) 1429 } 1430 1431 func (*ClientConfigureResponse) ProtoMessage() {} 1432 1433 func (x *ClientConfigureResponse) ProtoReflect() protoreflect.Message { 1434 mi := &file_grpc_testing_messages_proto_msgTypes[17] 1435 if x != nil { 1436 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1437 if ms.LoadMessageInfo() == nil { 1438 ms.StoreMessageInfo(mi) 1439 } 1440 return ms 1441 } 1442 return mi.MessageOf(x) 1443 } 1444 1445 // Deprecated: Use ClientConfigureResponse.ProtoReflect.Descriptor instead. 1446 func (*ClientConfigureResponse) Descriptor() ([]byte, []int) { 1447 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{17} 1448 } 1449 1450 type MemorySize struct { 1451 state protoimpl.MessageState `protogen:"open.v1"` 1452 Rss int64 `protobuf:"varint,1,opt,name=rss,proto3" json:"rss,omitempty"` 1453 unknownFields protoimpl.UnknownFields 1454 sizeCache protoimpl.SizeCache 1455 } 1456 1457 func (x *MemorySize) Reset() { 1458 *x = MemorySize{} 1459 mi := &file_grpc_testing_messages_proto_msgTypes[18] 1460 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1461 ms.StoreMessageInfo(mi) 1462 } 1463 1464 func (x *MemorySize) String() string { 1465 return protoimpl.X.MessageStringOf(x) 1466 } 1467 1468 func (*MemorySize) ProtoMessage() {} 1469 1470 func (x *MemorySize) ProtoReflect() protoreflect.Message { 1471 mi := &file_grpc_testing_messages_proto_msgTypes[18] 1472 if x != nil { 1473 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1474 if ms.LoadMessageInfo() == nil { 1475 ms.StoreMessageInfo(mi) 1476 } 1477 return ms 1478 } 1479 return mi.MessageOf(x) 1480 } 1481 1482 // Deprecated: Use MemorySize.ProtoReflect.Descriptor instead. 1483 func (*MemorySize) Descriptor() ([]byte, []int) { 1484 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{18} 1485 } 1486 1487 func (x *MemorySize) GetRss() int64 { 1488 if x != nil { 1489 return x.Rss 1490 } 1491 return 0 1492 } 1493 1494 // Metrics data the server will update and send to the client. It mirrors orca load report 1495 // https://github.com/cncf/xds/blob/eded343319d09f30032952beda9840bbd3dcf7ac/xds/data/orca/v3/orca_load_report.proto#L15, 1496 // but avoids orca dependency. Used by both per-query and out-of-band reporting tests. 1497 type TestOrcaReport struct { 1498 state protoimpl.MessageState `protogen:"open.v1"` 1499 CpuUtilization float64 `protobuf:"fixed64,1,opt,name=cpu_utilization,json=cpuUtilization,proto3" json:"cpu_utilization,omitempty"` 1500 MemoryUtilization float64 `protobuf:"fixed64,2,opt,name=memory_utilization,json=memoryUtilization,proto3" json:"memory_utilization,omitempty"` 1501 RequestCost map[string]float64 `protobuf:"bytes,3,rep,name=request_cost,json=requestCost,proto3" json:"request_cost,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` 1502 Utilization map[string]float64 `protobuf:"bytes,4,rep,name=utilization,proto3" json:"utilization,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` 1503 unknownFields protoimpl.UnknownFields 1504 sizeCache protoimpl.SizeCache 1505 } 1506 1507 func (x *TestOrcaReport) Reset() { 1508 *x = TestOrcaReport{} 1509 mi := &file_grpc_testing_messages_proto_msgTypes[19] 1510 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1511 ms.StoreMessageInfo(mi) 1512 } 1513 1514 func (x *TestOrcaReport) String() string { 1515 return protoimpl.X.MessageStringOf(x) 1516 } 1517 1518 func (*TestOrcaReport) ProtoMessage() {} 1519 1520 func (x *TestOrcaReport) ProtoReflect() protoreflect.Message { 1521 mi := &file_grpc_testing_messages_proto_msgTypes[19] 1522 if x != nil { 1523 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1524 if ms.LoadMessageInfo() == nil { 1525 ms.StoreMessageInfo(mi) 1526 } 1527 return ms 1528 } 1529 return mi.MessageOf(x) 1530 } 1531 1532 // Deprecated: Use TestOrcaReport.ProtoReflect.Descriptor instead. 1533 func (*TestOrcaReport) Descriptor() ([]byte, []int) { 1534 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{19} 1535 } 1536 1537 func (x *TestOrcaReport) GetCpuUtilization() float64 { 1538 if x != nil { 1539 return x.CpuUtilization 1540 } 1541 return 0 1542 } 1543 1544 func (x *TestOrcaReport) GetMemoryUtilization() float64 { 1545 if x != nil { 1546 return x.MemoryUtilization 1547 } 1548 return 0 1549 } 1550 1551 func (x *TestOrcaReport) GetRequestCost() map[string]float64 { 1552 if x != nil { 1553 return x.RequestCost 1554 } 1555 return nil 1556 } 1557 1558 func (x *TestOrcaReport) GetUtilization() map[string]float64 { 1559 if x != nil { 1560 return x.Utilization 1561 } 1562 return nil 1563 } 1564 1565 // Status that will be return to callers of the Hook method 1566 type SetReturnStatusRequest struct { 1567 state protoimpl.MessageState `protogen:"open.v1"` 1568 GrpcCodeToReturn int32 `protobuf:"varint,1,opt,name=grpc_code_to_return,json=grpcCodeToReturn,proto3" json:"grpc_code_to_return,omitempty"` 1569 GrpcStatusDescription string `protobuf:"bytes,2,opt,name=grpc_status_description,json=grpcStatusDescription,proto3" json:"grpc_status_description,omitempty"` 1570 unknownFields protoimpl.UnknownFields 1571 sizeCache protoimpl.SizeCache 1572 } 1573 1574 func (x *SetReturnStatusRequest) Reset() { 1575 *x = SetReturnStatusRequest{} 1576 mi := &file_grpc_testing_messages_proto_msgTypes[20] 1577 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1578 ms.StoreMessageInfo(mi) 1579 } 1580 1581 func (x *SetReturnStatusRequest) String() string { 1582 return protoimpl.X.MessageStringOf(x) 1583 } 1584 1585 func (*SetReturnStatusRequest) ProtoMessage() {} 1586 1587 func (x *SetReturnStatusRequest) ProtoReflect() protoreflect.Message { 1588 mi := &file_grpc_testing_messages_proto_msgTypes[20] 1589 if x != nil { 1590 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1591 if ms.LoadMessageInfo() == nil { 1592 ms.StoreMessageInfo(mi) 1593 } 1594 return ms 1595 } 1596 return mi.MessageOf(x) 1597 } 1598 1599 // Deprecated: Use SetReturnStatusRequest.ProtoReflect.Descriptor instead. 1600 func (*SetReturnStatusRequest) Descriptor() ([]byte, []int) { 1601 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{20} 1602 } 1603 1604 func (x *SetReturnStatusRequest) GetGrpcCodeToReturn() int32 { 1605 if x != nil { 1606 return x.GrpcCodeToReturn 1607 } 1608 return 0 1609 } 1610 1611 func (x *SetReturnStatusRequest) GetGrpcStatusDescription() string { 1612 if x != nil { 1613 return x.GrpcStatusDescription 1614 } 1615 return "" 1616 } 1617 1618 type HookRequest struct { 1619 state protoimpl.MessageState `protogen:"open.v1"` 1620 Command HookRequest_HookRequestCommand `protobuf:"varint,1,opt,name=command,proto3,enum=grpc.testing.HookRequest_HookRequestCommand" json:"command,omitempty"` 1621 GrpcCodeToReturn int32 `protobuf:"varint,2,opt,name=grpc_code_to_return,json=grpcCodeToReturn,proto3" json:"grpc_code_to_return,omitempty"` 1622 GrpcStatusDescription string `protobuf:"bytes,3,opt,name=grpc_status_description,json=grpcStatusDescription,proto3" json:"grpc_status_description,omitempty"` 1623 // Server port to listen to 1624 ServerPort int32 `protobuf:"varint,4,opt,name=server_port,json=serverPort,proto3" json:"server_port,omitempty"` 1625 unknownFields protoimpl.UnknownFields 1626 sizeCache protoimpl.SizeCache 1627 } 1628 1629 func (x *HookRequest) Reset() { 1630 *x = HookRequest{} 1631 mi := &file_grpc_testing_messages_proto_msgTypes[21] 1632 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1633 ms.StoreMessageInfo(mi) 1634 } 1635 1636 func (x *HookRequest) String() string { 1637 return protoimpl.X.MessageStringOf(x) 1638 } 1639 1640 func (*HookRequest) ProtoMessage() {} 1641 1642 func (x *HookRequest) ProtoReflect() protoreflect.Message { 1643 mi := &file_grpc_testing_messages_proto_msgTypes[21] 1644 if x != nil { 1645 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1646 if ms.LoadMessageInfo() == nil { 1647 ms.StoreMessageInfo(mi) 1648 } 1649 return ms 1650 } 1651 return mi.MessageOf(x) 1652 } 1653 1654 // Deprecated: Use HookRequest.ProtoReflect.Descriptor instead. 1655 func (*HookRequest) Descriptor() ([]byte, []int) { 1656 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{21} 1657 } 1658 1659 func (x *HookRequest) GetCommand() HookRequest_HookRequestCommand { 1660 if x != nil { 1661 return x.Command 1662 } 1663 return HookRequest_UNSPECIFIED 1664 } 1665 1666 func (x *HookRequest) GetGrpcCodeToReturn() int32 { 1667 if x != nil { 1668 return x.GrpcCodeToReturn 1669 } 1670 return 0 1671 } 1672 1673 func (x *HookRequest) GetGrpcStatusDescription() string { 1674 if x != nil { 1675 return x.GrpcStatusDescription 1676 } 1677 return "" 1678 } 1679 1680 func (x *HookRequest) GetServerPort() int32 { 1681 if x != nil { 1682 return x.ServerPort 1683 } 1684 return 0 1685 } 1686 1687 type HookResponse struct { 1688 state protoimpl.MessageState `protogen:"open.v1"` 1689 unknownFields protoimpl.UnknownFields 1690 sizeCache protoimpl.SizeCache 1691 } 1692 1693 func (x *HookResponse) Reset() { 1694 *x = HookResponse{} 1695 mi := &file_grpc_testing_messages_proto_msgTypes[22] 1696 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1697 ms.StoreMessageInfo(mi) 1698 } 1699 1700 func (x *HookResponse) String() string { 1701 return protoimpl.X.MessageStringOf(x) 1702 } 1703 1704 func (*HookResponse) ProtoMessage() {} 1705 1706 func (x *HookResponse) ProtoReflect() protoreflect.Message { 1707 mi := &file_grpc_testing_messages_proto_msgTypes[22] 1708 if x != nil { 1709 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1710 if ms.LoadMessageInfo() == nil { 1711 ms.StoreMessageInfo(mi) 1712 } 1713 return ms 1714 } 1715 return mi.MessageOf(x) 1716 } 1717 1718 // Deprecated: Use HookResponse.ProtoReflect.Descriptor instead. 1719 func (*HookResponse) Descriptor() ([]byte, []int) { 1720 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{22} 1721 } 1722 1723 type LoadBalancerStatsResponse_MetadataEntry struct { 1724 state protoimpl.MessageState `protogen:"open.v1"` 1725 // Key, exactly as received from the server. Case may be different from what 1726 // was requested in the LoadBalancerStatsRequest) 1727 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 1728 // Value, exactly as received from the server. 1729 Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 1730 // Metadata type 1731 Type LoadBalancerStatsResponse_MetadataType `protobuf:"varint,3,opt,name=type,proto3,enum=grpc.testing.LoadBalancerStatsResponse_MetadataType" json:"type,omitempty"` 1732 unknownFields protoimpl.UnknownFields 1733 sizeCache protoimpl.SizeCache 1734 } 1735 1736 func (x *LoadBalancerStatsResponse_MetadataEntry) Reset() { 1737 *x = LoadBalancerStatsResponse_MetadataEntry{} 1738 mi := &file_grpc_testing_messages_proto_msgTypes[23] 1739 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1740 ms.StoreMessageInfo(mi) 1741 } 1742 1743 func (x *LoadBalancerStatsResponse_MetadataEntry) String() string { 1744 return protoimpl.X.MessageStringOf(x) 1745 } 1746 1747 func (*LoadBalancerStatsResponse_MetadataEntry) ProtoMessage() {} 1748 1749 func (x *LoadBalancerStatsResponse_MetadataEntry) ProtoReflect() protoreflect.Message { 1750 mi := &file_grpc_testing_messages_proto_msgTypes[23] 1751 if x != nil { 1752 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1753 if ms.LoadMessageInfo() == nil { 1754 ms.StoreMessageInfo(mi) 1755 } 1756 return ms 1757 } 1758 return mi.MessageOf(x) 1759 } 1760 1761 // Deprecated: Use LoadBalancerStatsResponse_MetadataEntry.ProtoReflect.Descriptor instead. 1762 func (*LoadBalancerStatsResponse_MetadataEntry) Descriptor() ([]byte, []int) { 1763 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{13, 0} 1764 } 1765 1766 func (x *LoadBalancerStatsResponse_MetadataEntry) GetKey() string { 1767 if x != nil { 1768 return x.Key 1769 } 1770 return "" 1771 } 1772 1773 func (x *LoadBalancerStatsResponse_MetadataEntry) GetValue() string { 1774 if x != nil { 1775 return x.Value 1776 } 1777 return "" 1778 } 1779 1780 func (x *LoadBalancerStatsResponse_MetadataEntry) GetType() LoadBalancerStatsResponse_MetadataType { 1781 if x != nil { 1782 return x.Type 1783 } 1784 return LoadBalancerStatsResponse_UNKNOWN 1785 } 1786 1787 type LoadBalancerStatsResponse_RpcMetadata struct { 1788 state protoimpl.MessageState `protogen:"open.v1"` 1789 // metadata values for each rpc for the keys specified in 1790 // LoadBalancerStatsRequest.metadata_keys. 1791 Metadata []*LoadBalancerStatsResponse_MetadataEntry `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty"` 1792 unknownFields protoimpl.UnknownFields 1793 sizeCache protoimpl.SizeCache 1794 } 1795 1796 func (x *LoadBalancerStatsResponse_RpcMetadata) Reset() { 1797 *x = LoadBalancerStatsResponse_RpcMetadata{} 1798 mi := &file_grpc_testing_messages_proto_msgTypes[24] 1799 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1800 ms.StoreMessageInfo(mi) 1801 } 1802 1803 func (x *LoadBalancerStatsResponse_RpcMetadata) String() string { 1804 return protoimpl.X.MessageStringOf(x) 1805 } 1806 1807 func (*LoadBalancerStatsResponse_RpcMetadata) ProtoMessage() {} 1808 1809 func (x *LoadBalancerStatsResponse_RpcMetadata) ProtoReflect() protoreflect.Message { 1810 mi := &file_grpc_testing_messages_proto_msgTypes[24] 1811 if x != nil { 1812 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1813 if ms.LoadMessageInfo() == nil { 1814 ms.StoreMessageInfo(mi) 1815 } 1816 return ms 1817 } 1818 return mi.MessageOf(x) 1819 } 1820 1821 // Deprecated: Use LoadBalancerStatsResponse_RpcMetadata.ProtoReflect.Descriptor instead. 1822 func (*LoadBalancerStatsResponse_RpcMetadata) Descriptor() ([]byte, []int) { 1823 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{13, 1} 1824 } 1825 1826 func (x *LoadBalancerStatsResponse_RpcMetadata) GetMetadata() []*LoadBalancerStatsResponse_MetadataEntry { 1827 if x != nil { 1828 return x.Metadata 1829 } 1830 return nil 1831 } 1832 1833 type LoadBalancerStatsResponse_MetadataByPeer struct { 1834 state protoimpl.MessageState `protogen:"open.v1"` 1835 // List of RpcMetadata in for each RPC with a given peer 1836 RpcMetadata []*LoadBalancerStatsResponse_RpcMetadata `protobuf:"bytes,1,rep,name=rpc_metadata,json=rpcMetadata,proto3" json:"rpc_metadata,omitempty"` 1837 unknownFields protoimpl.UnknownFields 1838 sizeCache protoimpl.SizeCache 1839 } 1840 1841 func (x *LoadBalancerStatsResponse_MetadataByPeer) Reset() { 1842 *x = LoadBalancerStatsResponse_MetadataByPeer{} 1843 mi := &file_grpc_testing_messages_proto_msgTypes[25] 1844 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1845 ms.StoreMessageInfo(mi) 1846 } 1847 1848 func (x *LoadBalancerStatsResponse_MetadataByPeer) String() string { 1849 return protoimpl.X.MessageStringOf(x) 1850 } 1851 1852 func (*LoadBalancerStatsResponse_MetadataByPeer) ProtoMessage() {} 1853 1854 func (x *LoadBalancerStatsResponse_MetadataByPeer) ProtoReflect() protoreflect.Message { 1855 mi := &file_grpc_testing_messages_proto_msgTypes[25] 1856 if x != nil { 1857 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1858 if ms.LoadMessageInfo() == nil { 1859 ms.StoreMessageInfo(mi) 1860 } 1861 return ms 1862 } 1863 return mi.MessageOf(x) 1864 } 1865 1866 // Deprecated: Use LoadBalancerStatsResponse_MetadataByPeer.ProtoReflect.Descriptor instead. 1867 func (*LoadBalancerStatsResponse_MetadataByPeer) Descriptor() ([]byte, []int) { 1868 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{13, 2} 1869 } 1870 1871 func (x *LoadBalancerStatsResponse_MetadataByPeer) GetRpcMetadata() []*LoadBalancerStatsResponse_RpcMetadata { 1872 if x != nil { 1873 return x.RpcMetadata 1874 } 1875 return nil 1876 } 1877 1878 type LoadBalancerStatsResponse_RpcsByPeer struct { 1879 state protoimpl.MessageState `protogen:"open.v1"` 1880 // The number of completed RPCs for each peer. 1881 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" protobuf_val:"varint,2,opt,name=value"` 1882 unknownFields protoimpl.UnknownFields 1883 sizeCache protoimpl.SizeCache 1884 } 1885 1886 func (x *LoadBalancerStatsResponse_RpcsByPeer) Reset() { 1887 *x = LoadBalancerStatsResponse_RpcsByPeer{} 1888 mi := &file_grpc_testing_messages_proto_msgTypes[26] 1889 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1890 ms.StoreMessageInfo(mi) 1891 } 1892 1893 func (x *LoadBalancerStatsResponse_RpcsByPeer) String() string { 1894 return protoimpl.X.MessageStringOf(x) 1895 } 1896 1897 func (*LoadBalancerStatsResponse_RpcsByPeer) ProtoMessage() {} 1898 1899 func (x *LoadBalancerStatsResponse_RpcsByPeer) ProtoReflect() protoreflect.Message { 1900 mi := &file_grpc_testing_messages_proto_msgTypes[26] 1901 if x != nil { 1902 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1903 if ms.LoadMessageInfo() == nil { 1904 ms.StoreMessageInfo(mi) 1905 } 1906 return ms 1907 } 1908 return mi.MessageOf(x) 1909 } 1910 1911 // Deprecated: Use LoadBalancerStatsResponse_RpcsByPeer.ProtoReflect.Descriptor instead. 1912 func (*LoadBalancerStatsResponse_RpcsByPeer) Descriptor() ([]byte, []int) { 1913 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{13, 3} 1914 } 1915 1916 func (x *LoadBalancerStatsResponse_RpcsByPeer) GetRpcsByPeer() map[string]int32 { 1917 if x != nil { 1918 return x.RpcsByPeer 1919 } 1920 return nil 1921 } 1922 1923 type LoadBalancerAccumulatedStatsResponse_MethodStats struct { 1924 state protoimpl.MessageState `protogen:"open.v1"` 1925 // The number of RPCs that were started for this method. 1926 RpcsStarted int32 `protobuf:"varint,1,opt,name=rpcs_started,json=rpcsStarted,proto3" json:"rpcs_started,omitempty"` 1927 // The number of RPCs that completed with each status for this method. The 1928 // key is the integral value of a google.rpc.Code; the value is the count. 1929 Result map[int32]int32 `protobuf:"bytes,2,rep,name=result,proto3" json:"result,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` 1930 unknownFields protoimpl.UnknownFields 1931 sizeCache protoimpl.SizeCache 1932 } 1933 1934 func (x *LoadBalancerAccumulatedStatsResponse_MethodStats) Reset() { 1935 *x = LoadBalancerAccumulatedStatsResponse_MethodStats{} 1936 mi := &file_grpc_testing_messages_proto_msgTypes[34] 1937 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1938 ms.StoreMessageInfo(mi) 1939 } 1940 1941 func (x *LoadBalancerAccumulatedStatsResponse_MethodStats) String() string { 1942 return protoimpl.X.MessageStringOf(x) 1943 } 1944 1945 func (*LoadBalancerAccumulatedStatsResponse_MethodStats) ProtoMessage() {} 1946 1947 func (x *LoadBalancerAccumulatedStatsResponse_MethodStats) ProtoReflect() protoreflect.Message { 1948 mi := &file_grpc_testing_messages_proto_msgTypes[34] 1949 if x != nil { 1950 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1951 if ms.LoadMessageInfo() == nil { 1952 ms.StoreMessageInfo(mi) 1953 } 1954 return ms 1955 } 1956 return mi.MessageOf(x) 1957 } 1958 1959 // Deprecated: Use LoadBalancerAccumulatedStatsResponse_MethodStats.ProtoReflect.Descriptor instead. 1960 func (*LoadBalancerAccumulatedStatsResponse_MethodStats) Descriptor() ([]byte, []int) { 1961 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{15, 3} 1962 } 1963 1964 func (x *LoadBalancerAccumulatedStatsResponse_MethodStats) GetRpcsStarted() int32 { 1965 if x != nil { 1966 return x.RpcsStarted 1967 } 1968 return 0 1969 } 1970 1971 func (x *LoadBalancerAccumulatedStatsResponse_MethodStats) GetResult() map[int32]int32 { 1972 if x != nil { 1973 return x.Result 1974 } 1975 return nil 1976 } 1977 1978 // Metadata to be attached for the given type of RPCs. 1979 type ClientConfigureRequest_Metadata struct { 1980 state protoimpl.MessageState `protogen:"open.v1"` 1981 Type ClientConfigureRequest_RpcType `protobuf:"varint,1,opt,name=type,proto3,enum=grpc.testing.ClientConfigureRequest_RpcType" json:"type,omitempty"` 1982 Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` 1983 Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` 1984 unknownFields protoimpl.UnknownFields 1985 sizeCache protoimpl.SizeCache 1986 } 1987 1988 func (x *ClientConfigureRequest_Metadata) Reset() { 1989 *x = ClientConfigureRequest_Metadata{} 1990 mi := &file_grpc_testing_messages_proto_msgTypes[37] 1991 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1992 ms.StoreMessageInfo(mi) 1993 } 1994 1995 func (x *ClientConfigureRequest_Metadata) String() string { 1996 return protoimpl.X.MessageStringOf(x) 1997 } 1998 1999 func (*ClientConfigureRequest_Metadata) ProtoMessage() {} 2000 2001 func (x *ClientConfigureRequest_Metadata) ProtoReflect() protoreflect.Message { 2002 mi := &file_grpc_testing_messages_proto_msgTypes[37] 2003 if x != nil { 2004 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 2005 if ms.LoadMessageInfo() == nil { 2006 ms.StoreMessageInfo(mi) 2007 } 2008 return ms 2009 } 2010 return mi.MessageOf(x) 2011 } 2012 2013 // Deprecated: Use ClientConfigureRequest_Metadata.ProtoReflect.Descriptor instead. 2014 func (*ClientConfigureRequest_Metadata) Descriptor() ([]byte, []int) { 2015 return file_grpc_testing_messages_proto_rawDescGZIP(), []int{16, 0} 2016 } 2017 2018 func (x *ClientConfigureRequest_Metadata) GetType() ClientConfigureRequest_RpcType { 2019 if x != nil { 2020 return x.Type 2021 } 2022 return ClientConfigureRequest_EMPTY_CALL 2023 } 2024 2025 func (x *ClientConfigureRequest_Metadata) GetKey() string { 2026 if x != nil { 2027 return x.Key 2028 } 2029 return "" 2030 } 2031 2032 func (x *ClientConfigureRequest_Metadata) GetValue() string { 2033 if x != nil { 2034 return x.Value 2035 } 2036 return "" 2037 } 2038 2039 var File_grpc_testing_messages_proto protoreflect.FileDescriptor 2040 2041 const file_grpc_testing_messages_proto_rawDesc = "" + 2042 "\n" + 2043 "\x1bgrpc/testing/messages.proto\x12\fgrpc.testing\"!\n" + 2044 "\tBoolValue\x12\x14\n" + 2045 "\x05value\x18\x01 \x01(\bR\x05value\"L\n" + 2046 "\aPayload\x12-\n" + 2047 "\x04type\x18\x01 \x01(\x0e2\x19.grpc.testing.PayloadTypeR\x04type\x12\x12\n" + 2048 "\x04body\x18\x02 \x01(\fR\x04body\":\n" + 2049 "\n" + 2050 "EchoStatus\x12\x12\n" + 2051 "\x04code\x18\x01 \x01(\x05R\x04code\x12\x18\n" + 2052 "\amessage\x18\x02 \x01(\tR\amessage\"\xf3\x04\n" + 2053 "\rSimpleRequest\x12>\n" + 2054 "\rresponse_type\x18\x01 \x01(\x0e2\x19.grpc.testing.PayloadTypeR\fresponseType\x12#\n" + 2055 "\rresponse_size\x18\x02 \x01(\x05R\fresponseSize\x12/\n" + 2056 "\apayload\x18\x03 \x01(\v2\x15.grpc.testing.PayloadR\apayload\x12#\n" + 2057 "\rfill_username\x18\x04 \x01(\bR\ffillUsername\x12(\n" + 2058 "\x10fill_oauth_scope\x18\x05 \x01(\bR\x0efillOauthScope\x12H\n" + 2059 "\x13response_compressed\x18\x06 \x01(\v2\x17.grpc.testing.BoolValueR\x12responseCompressed\x12A\n" + 2060 "\x0fresponse_status\x18\a \x01(\v2\x18.grpc.testing.EchoStatusR\x0eresponseStatus\x12D\n" + 2061 "\x11expect_compressed\x18\b \x01(\v2\x17.grpc.testing.BoolValueR\x10expectCompressed\x12$\n" + 2062 "\x0efill_server_id\x18\t \x01(\bR\ffillServerId\x123\n" + 2063 "\x16fill_grpclb_route_type\x18\n" + 2064 " \x01(\bR\x13fillGrpclbRouteType\x12O\n" + 2065 "\x15orca_per_query_report\x18\v \x01(\v2\x1c.grpc.testing.TestOrcaReportR\x12orcaPerQueryReport\"\x82\x02\n" + 2066 "\x0eSimpleResponse\x12/\n" + 2067 "\apayload\x18\x01 \x01(\v2\x15.grpc.testing.PayloadR\apayload\x12\x1a\n" + 2068 "\busername\x18\x02 \x01(\tR\busername\x12\x1f\n" + 2069 "\voauth_scope\x18\x03 \x01(\tR\n" + 2070 "oauthScope\x12\x1b\n" + 2071 "\tserver_id\x18\x04 \x01(\tR\bserverId\x12I\n" + 2072 "\x11grpclb_route_type\x18\x05 \x01(\x0e2\x1d.grpc.testing.GrpclbRouteTypeR\x0fgrpclbRouteType\x12\x1a\n" + 2073 "\bhostname\x18\x06 \x01(\tR\bhostname\"\x92\x01\n" + 2074 "\x19StreamingInputCallRequest\x12/\n" + 2075 "\apayload\x18\x01 \x01(\v2\x15.grpc.testing.PayloadR\apayload\x12D\n" + 2076 "\x11expect_compressed\x18\x02 \x01(\v2\x17.grpc.testing.BoolValueR\x10expectCompressed\"T\n" + 2077 "\x1aStreamingInputCallResponse\x126\n" + 2078 "\x17aggregated_payload_size\x18\x01 \x01(\x05R\x15aggregatedPayloadSize\"\x82\x01\n" + 2079 "\x12ResponseParameters\x12\x12\n" + 2080 "\x04size\x18\x01 \x01(\x05R\x04size\x12\x1f\n" + 2081 "\vinterval_us\x18\x02 \x01(\x05R\n" + 2082 "intervalUs\x127\n" + 2083 "\n" + 2084 "compressed\x18\x03 \x01(\v2\x17.grpc.testing.BoolValueR\n" + 2085 "compressed\"\xe9\x02\n" + 2086 "\x1aStreamingOutputCallRequest\x12>\n" + 2087 "\rresponse_type\x18\x01 \x01(\x0e2\x19.grpc.testing.PayloadTypeR\fresponseType\x12Q\n" + 2088 "\x13response_parameters\x18\x02 \x03(\v2 .grpc.testing.ResponseParametersR\x12responseParameters\x12/\n" + 2089 "\apayload\x18\x03 \x01(\v2\x15.grpc.testing.PayloadR\apayload\x12A\n" + 2090 "\x0fresponse_status\x18\a \x01(\v2\x18.grpc.testing.EchoStatusR\x0eresponseStatus\x12D\n" + 2091 "\x0forca_oob_report\x18\b \x01(\v2\x1c.grpc.testing.TestOrcaReportR\rorcaOobReport\"N\n" + 2092 "\x1bStreamingOutputCallResponse\x12/\n" + 2093 "\apayload\x18\x01 \x01(\v2\x15.grpc.testing.PayloadR\apayload\"J\n" + 2094 "\x0fReconnectParams\x127\n" + 2095 "\x18max_reconnect_backoff_ms\x18\x01 \x01(\x05R\x15maxReconnectBackoffMs\"F\n" + 2096 "\rReconnectInfo\x12\x16\n" + 2097 "\x06passed\x18\x01 \x01(\bR\x06passed\x12\x1d\n" + 2098 "\n" + 2099 "backoff_ms\x18\x02 \x03(\x05R\tbackoffMs\"{\n" + 2100 "\x18LoadBalancerStatsRequest\x12\x19\n" + 2101 "\bnum_rpcs\x18\x01 \x01(\x05R\anumRpcs\x12\x1f\n" + 2102 "\vtimeout_sec\x18\x02 \x01(\x05R\n" + 2103 "timeoutSec\x12#\n" + 2104 "\rmetadata_keys\x18\x03 \x03(\tR\fmetadataKeys\"\xd0\t\n" + 2105 "\x19LoadBalancerStatsResponse\x12Y\n" + 2106 "\frpcs_by_peer\x18\x01 \x03(\v27.grpc.testing.LoadBalancerStatsResponse.RpcsByPeerEntryR\n" + 2107 "rpcsByPeer\x12!\n" + 2108 "\fnum_failures\x18\x02 \x01(\x05R\vnumFailures\x12_\n" + 2109 "\x0erpcs_by_method\x18\x03 \x03(\v29.grpc.testing.LoadBalancerStatsResponse.RpcsByMethodEntryR\frpcsByMethod\x12h\n" + 2110 "\x11metadatas_by_peer\x18\x04 \x03(\v2<.grpc.testing.LoadBalancerStatsResponse.MetadatasByPeerEntryR\x0fmetadatasByPeer\x1a\x81\x01\n" + 2111 "\rMetadataEntry\x12\x10\n" + 2112 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + 2113 "\x05value\x18\x02 \x01(\tR\x05value\x12H\n" + 2114 "\x04type\x18\x03 \x01(\x0e24.grpc.testing.LoadBalancerStatsResponse.MetadataTypeR\x04type\x1a`\n" + 2115 "\vRpcMetadata\x12Q\n" + 2116 "\bmetadata\x18\x01 \x03(\v25.grpc.testing.LoadBalancerStatsResponse.MetadataEntryR\bmetadata\x1ah\n" + 2117 "\x0eMetadataByPeer\x12V\n" + 2118 "\frpc_metadata\x18\x01 \x03(\v23.grpc.testing.LoadBalancerStatsResponse.RpcMetadataR\vrpcMetadata\x1a\xb1\x01\n" + 2119 "\n" + 2120 "RpcsByPeer\x12d\n" + 2121 "\frpcs_by_peer\x18\x01 \x03(\v2B.grpc.testing.LoadBalancerStatsResponse.RpcsByPeer.RpcsByPeerEntryR\n" + 2122 "rpcsByPeer\x1a=\n" + 2123 "\x0fRpcsByPeerEntry\x12\x10\n" + 2124 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + 2125 "\x05value\x18\x02 \x01(\x05R\x05value:\x028\x01\x1a=\n" + 2126 "\x0fRpcsByPeerEntry\x12\x10\n" + 2127 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + 2128 "\x05value\x18\x02 \x01(\x05R\x05value:\x028\x01\x1as\n" + 2129 "\x11RpcsByMethodEntry\x12\x10\n" + 2130 "\x03key\x18\x01 \x01(\tR\x03key\x12H\n" + 2131 "\x05value\x18\x02 \x01(\v22.grpc.testing.LoadBalancerStatsResponse.RpcsByPeerR\x05value:\x028\x01\x1az\n" + 2132 "\x14MetadatasByPeerEntry\x12\x10\n" + 2133 "\x03key\x18\x01 \x01(\tR\x03key\x12L\n" + 2134 "\x05value\x18\x02 \x01(\v26.grpc.testing.LoadBalancerStatsResponse.MetadataByPeerR\x05value:\x028\x01\"6\n" + 2135 "\fMetadataType\x12\v\n" + 2136 "\aUNKNOWN\x10\x00\x12\v\n" + 2137 "\aINITIAL\x10\x01\x12\f\n" + 2138 "\bTRAILING\x10\x02\"%\n" + 2139 "#LoadBalancerAccumulatedStatsRequest\"\x86\t\n" + 2140 "$LoadBalancerAccumulatedStatsResponse\x12\x8e\x01\n" + 2141 "\x1anum_rpcs_started_by_method\x18\x01 \x03(\v2N.grpc.testing.LoadBalancerAccumulatedStatsResponse.NumRpcsStartedByMethodEntryB\x02\x18\x01R\x16numRpcsStartedByMethod\x12\x94\x01\n" + 2142 "\x1cnum_rpcs_succeeded_by_method\x18\x02 \x03(\v2P.grpc.testing.LoadBalancerAccumulatedStatsResponse.NumRpcsSucceededByMethodEntryB\x02\x18\x01R\x18numRpcsSucceededByMethod\x12\x8b\x01\n" + 2143 "\x19num_rpcs_failed_by_method\x18\x03 \x03(\v2M.grpc.testing.LoadBalancerAccumulatedStatsResponse.NumRpcsFailedByMethodEntryB\x02\x18\x01R\x15numRpcsFailedByMethod\x12p\n" + 2144 "\x10stats_per_method\x18\x04 \x03(\v2F.grpc.testing.LoadBalancerAccumulatedStatsResponse.StatsPerMethodEntryR\x0estatsPerMethod\x1aI\n" + 2145 "\x1bNumRpcsStartedByMethodEntry\x12\x10\n" + 2146 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + 2147 "\x05value\x18\x02 \x01(\x05R\x05value:\x028\x01\x1aK\n" + 2148 "\x1dNumRpcsSucceededByMethodEntry\x12\x10\n" + 2149 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + 2150 "\x05value\x18\x02 \x01(\x05R\x05value:\x028\x01\x1aH\n" + 2151 "\x1aNumRpcsFailedByMethodEntry\x12\x10\n" + 2152 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + 2153 "\x05value\x18\x02 \x01(\x05R\x05value:\x028\x01\x1a\xcf\x01\n" + 2154 "\vMethodStats\x12!\n" + 2155 "\frpcs_started\x18\x01 \x01(\x05R\vrpcsStarted\x12b\n" + 2156 "\x06result\x18\x02 \x03(\v2J.grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats.ResultEntryR\x06result\x1a9\n" + 2157 "\vResultEntry\x12\x10\n" + 2158 "\x03key\x18\x01 \x01(\x05R\x03key\x12\x14\n" + 2159 "\x05value\x18\x02 \x01(\x05R\x05value:\x028\x01\x1a\x81\x01\n" + 2160 "\x13StatsPerMethodEntry\x12\x10\n" + 2161 "\x03key\x18\x01 \x01(\tR\x03key\x12T\n" + 2162 "\x05value\x18\x02 \x01(\v2>.grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStatsR\x05value:\x028\x01\"\xe9\x02\n" + 2163 "\x16ClientConfigureRequest\x12B\n" + 2164 "\x05types\x18\x01 \x03(\x0e2,.grpc.testing.ClientConfigureRequest.RpcTypeR\x05types\x12I\n" + 2165 "\bmetadata\x18\x02 \x03(\v2-.grpc.testing.ClientConfigureRequest.MetadataR\bmetadata\x12\x1f\n" + 2166 "\vtimeout_sec\x18\x03 \x01(\x05R\n" + 2167 "timeoutSec\x1at\n" + 2168 "\bMetadata\x12@\n" + 2169 "\x04type\x18\x01 \x01(\x0e2,.grpc.testing.ClientConfigureRequest.RpcTypeR\x04type\x12\x10\n" + 2170 "\x03key\x18\x02 \x01(\tR\x03key\x12\x14\n" + 2171 "\x05value\x18\x03 \x01(\tR\x05value\")\n" + 2172 "\aRpcType\x12\x0e\n" + 2173 "\n" + 2174 "EMPTY_CALL\x10\x00\x12\x0e\n" + 2175 "\n" + 2176 "UNARY_CALL\x10\x01\"\x19\n" + 2177 "\x17ClientConfigureResponse\"\x1e\n" + 2178 "\n" + 2179 "MemorySize\x12\x10\n" + 2180 "\x03rss\x18\x01 \x01(\x03R\x03rss\"\x8b\x03\n" + 2181 "\x0eTestOrcaReport\x12'\n" + 2182 "\x0fcpu_utilization\x18\x01 \x01(\x01R\x0ecpuUtilization\x12-\n" + 2183 "\x12memory_utilization\x18\x02 \x01(\x01R\x11memoryUtilization\x12P\n" + 2184 "\frequest_cost\x18\x03 \x03(\v2-.grpc.testing.TestOrcaReport.RequestCostEntryR\vrequestCost\x12O\n" + 2185 "\vutilization\x18\x04 \x03(\v2-.grpc.testing.TestOrcaReport.UtilizationEntryR\vutilization\x1a>\n" + 2186 "\x10RequestCostEntry\x12\x10\n" + 2187 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + 2188 "\x05value\x18\x02 \x01(\x01R\x05value:\x028\x01\x1a>\n" + 2189 "\x10UtilizationEntry\x12\x10\n" + 2190 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + 2191 "\x05value\x18\x02 \x01(\x01R\x05value:\x028\x01\"\x7f\n" + 2192 "\x16SetReturnStatusRequest\x12-\n" + 2193 "\x13grpc_code_to_return\x18\x01 \x01(\x05R\x10grpcCodeToReturn\x126\n" + 2194 "\x17grpc_status_description\x18\x02 \x01(\tR\x15grpcStatusDescription\"\xa5\x02\n" + 2195 "\vHookRequest\x12F\n" + 2196 "\acommand\x18\x01 \x01(\x0e2,.grpc.testing.HookRequest.HookRequestCommandR\acommand\x12-\n" + 2197 "\x13grpc_code_to_return\x18\x02 \x01(\x05R\x10grpcCodeToReturn\x126\n" + 2198 "\x17grpc_status_description\x18\x03 \x01(\tR\x15grpcStatusDescription\x12\x1f\n" + 2199 "\vserver_port\x18\x04 \x01(\x05R\n" + 2200 "serverPort\"F\n" + 2201 "\x12HookRequestCommand\x12\x0f\n" + 2202 "\vUNSPECIFIED\x10\x00\x12\t\n" + 2203 "\x05START\x10\x01\x12\b\n" + 2204 "\x04STOP\x10\x02\x12\n" + 2205 "\n" + 2206 "\x06RETURN\x10\x03\"\x0e\n" + 2207 "\fHookResponse*\x1f\n" + 2208 "\vPayloadType\x12\x10\n" + 2209 "\fCOMPRESSABLE\x10\x00*o\n" + 2210 "\x0fGrpclbRouteType\x12\x1d\n" + 2211 "\x19GRPCLB_ROUTE_TYPE_UNKNOWN\x10\x00\x12\x1e\n" + 2212 "\x1aGRPCLB_ROUTE_TYPE_FALLBACK\x10\x01\x12\x1d\n" + 2213 "\x19GRPCLB_ROUTE_TYPE_BACKEND\x10\x02B\x1d\n" + 2214 "\x1bio.grpc.testing.integrationb\x06proto3" 2215 2216 var ( 2217 file_grpc_testing_messages_proto_rawDescOnce sync.Once 2218 file_grpc_testing_messages_proto_rawDescData []byte 2219 ) 2220 2221 func file_grpc_testing_messages_proto_rawDescGZIP() []byte { 2222 file_grpc_testing_messages_proto_rawDescOnce.Do(func() { 2223 file_grpc_testing_messages_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_grpc_testing_messages_proto_rawDesc), len(file_grpc_testing_messages_proto_rawDesc))) 2224 }) 2225 return file_grpc_testing_messages_proto_rawDescData 2226 } 2227 2228 var file_grpc_testing_messages_proto_enumTypes = make([]protoimpl.EnumInfo, 5) 2229 var file_grpc_testing_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 40) 2230 var file_grpc_testing_messages_proto_goTypes = []any{ 2231 (PayloadType)(0), // 0: grpc.testing.PayloadType 2232 (GrpclbRouteType)(0), // 1: grpc.testing.GrpclbRouteType 2233 (LoadBalancerStatsResponse_MetadataType)(0), // 2: grpc.testing.LoadBalancerStatsResponse.MetadataType 2234 (ClientConfigureRequest_RpcType)(0), // 3: grpc.testing.ClientConfigureRequest.RpcType 2235 (HookRequest_HookRequestCommand)(0), // 4: grpc.testing.HookRequest.HookRequestCommand 2236 (*BoolValue)(nil), // 5: grpc.testing.BoolValue 2237 (*Payload)(nil), // 6: grpc.testing.Payload 2238 (*EchoStatus)(nil), // 7: grpc.testing.EchoStatus 2239 (*SimpleRequest)(nil), // 8: grpc.testing.SimpleRequest 2240 (*SimpleResponse)(nil), // 9: grpc.testing.SimpleResponse 2241 (*StreamingInputCallRequest)(nil), // 10: grpc.testing.StreamingInputCallRequest 2242 (*StreamingInputCallResponse)(nil), // 11: grpc.testing.StreamingInputCallResponse 2243 (*ResponseParameters)(nil), // 12: grpc.testing.ResponseParameters 2244 (*StreamingOutputCallRequest)(nil), // 13: grpc.testing.StreamingOutputCallRequest 2245 (*StreamingOutputCallResponse)(nil), // 14: grpc.testing.StreamingOutputCallResponse 2246 (*ReconnectParams)(nil), // 15: grpc.testing.ReconnectParams 2247 (*ReconnectInfo)(nil), // 16: grpc.testing.ReconnectInfo 2248 (*LoadBalancerStatsRequest)(nil), // 17: grpc.testing.LoadBalancerStatsRequest 2249 (*LoadBalancerStatsResponse)(nil), // 18: grpc.testing.LoadBalancerStatsResponse 2250 (*LoadBalancerAccumulatedStatsRequest)(nil), // 19: grpc.testing.LoadBalancerAccumulatedStatsRequest 2251 (*LoadBalancerAccumulatedStatsResponse)(nil), // 20: grpc.testing.LoadBalancerAccumulatedStatsResponse 2252 (*ClientConfigureRequest)(nil), // 21: grpc.testing.ClientConfigureRequest 2253 (*ClientConfigureResponse)(nil), // 22: grpc.testing.ClientConfigureResponse 2254 (*MemorySize)(nil), // 23: grpc.testing.MemorySize 2255 (*TestOrcaReport)(nil), // 24: grpc.testing.TestOrcaReport 2256 (*SetReturnStatusRequest)(nil), // 25: grpc.testing.SetReturnStatusRequest 2257 (*HookRequest)(nil), // 26: grpc.testing.HookRequest 2258 (*HookResponse)(nil), // 27: grpc.testing.HookResponse 2259 (*LoadBalancerStatsResponse_MetadataEntry)(nil), // 28: grpc.testing.LoadBalancerStatsResponse.MetadataEntry 2260 (*LoadBalancerStatsResponse_RpcMetadata)(nil), // 29: grpc.testing.LoadBalancerStatsResponse.RpcMetadata 2261 (*LoadBalancerStatsResponse_MetadataByPeer)(nil), // 30: grpc.testing.LoadBalancerStatsResponse.MetadataByPeer 2262 (*LoadBalancerStatsResponse_RpcsByPeer)(nil), // 31: grpc.testing.LoadBalancerStatsResponse.RpcsByPeer 2263 nil, // 32: grpc.testing.LoadBalancerStatsResponse.RpcsByPeerEntry 2264 nil, // 33: grpc.testing.LoadBalancerStatsResponse.RpcsByMethodEntry 2265 nil, // 34: grpc.testing.LoadBalancerStatsResponse.MetadatasByPeerEntry 2266 nil, // 35: grpc.testing.LoadBalancerStatsResponse.RpcsByPeer.RpcsByPeerEntry 2267 nil, // 36: grpc.testing.LoadBalancerAccumulatedStatsResponse.NumRpcsStartedByMethodEntry 2268 nil, // 37: grpc.testing.LoadBalancerAccumulatedStatsResponse.NumRpcsSucceededByMethodEntry 2269 nil, // 38: grpc.testing.LoadBalancerAccumulatedStatsResponse.NumRpcsFailedByMethodEntry 2270 (*LoadBalancerAccumulatedStatsResponse_MethodStats)(nil), // 39: grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats 2271 nil, // 40: grpc.testing.LoadBalancerAccumulatedStatsResponse.StatsPerMethodEntry 2272 nil, // 41: grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats.ResultEntry 2273 (*ClientConfigureRequest_Metadata)(nil), // 42: grpc.testing.ClientConfigureRequest.Metadata 2274 nil, // 43: grpc.testing.TestOrcaReport.RequestCostEntry 2275 nil, // 44: grpc.testing.TestOrcaReport.UtilizationEntry 2276 } 2277 var file_grpc_testing_messages_proto_depIdxs = []int32{ 2278 0, // 0: grpc.testing.Payload.type:type_name -> grpc.testing.PayloadType 2279 0, // 1: grpc.testing.SimpleRequest.response_type:type_name -> grpc.testing.PayloadType 2280 6, // 2: grpc.testing.SimpleRequest.payload:type_name -> grpc.testing.Payload 2281 5, // 3: grpc.testing.SimpleRequest.response_compressed:type_name -> grpc.testing.BoolValue 2282 7, // 4: grpc.testing.SimpleRequest.response_status:type_name -> grpc.testing.EchoStatus 2283 5, // 5: grpc.testing.SimpleRequest.expect_compressed:type_name -> grpc.testing.BoolValue 2284 24, // 6: grpc.testing.SimpleRequest.orca_per_query_report:type_name -> grpc.testing.TestOrcaReport 2285 6, // 7: grpc.testing.SimpleResponse.payload:type_name -> grpc.testing.Payload 2286 1, // 8: grpc.testing.SimpleResponse.grpclb_route_type:type_name -> grpc.testing.GrpclbRouteType 2287 6, // 9: grpc.testing.StreamingInputCallRequest.payload:type_name -> grpc.testing.Payload 2288 5, // 10: grpc.testing.StreamingInputCallRequest.expect_compressed:type_name -> grpc.testing.BoolValue 2289 5, // 11: grpc.testing.ResponseParameters.compressed:type_name -> grpc.testing.BoolValue 2290 0, // 12: grpc.testing.StreamingOutputCallRequest.response_type:type_name -> grpc.testing.PayloadType 2291 12, // 13: grpc.testing.StreamingOutputCallRequest.response_parameters:type_name -> grpc.testing.ResponseParameters 2292 6, // 14: grpc.testing.StreamingOutputCallRequest.payload:type_name -> grpc.testing.Payload 2293 7, // 15: grpc.testing.StreamingOutputCallRequest.response_status:type_name -> grpc.testing.EchoStatus 2294 24, // 16: grpc.testing.StreamingOutputCallRequest.orca_oob_report:type_name -> grpc.testing.TestOrcaReport 2295 6, // 17: grpc.testing.StreamingOutputCallResponse.payload:type_name -> grpc.testing.Payload 2296 32, // 18: grpc.testing.LoadBalancerStatsResponse.rpcs_by_peer:type_name -> grpc.testing.LoadBalancerStatsResponse.RpcsByPeerEntry 2297 33, // 19: grpc.testing.LoadBalancerStatsResponse.rpcs_by_method:type_name -> grpc.testing.LoadBalancerStatsResponse.RpcsByMethodEntry 2298 34, // 20: grpc.testing.LoadBalancerStatsResponse.metadatas_by_peer:type_name -> grpc.testing.LoadBalancerStatsResponse.MetadatasByPeerEntry 2299 36, // 21: grpc.testing.LoadBalancerAccumulatedStatsResponse.num_rpcs_started_by_method:type_name -> grpc.testing.LoadBalancerAccumulatedStatsResponse.NumRpcsStartedByMethodEntry 2300 37, // 22: grpc.testing.LoadBalancerAccumulatedStatsResponse.num_rpcs_succeeded_by_method:type_name -> grpc.testing.LoadBalancerAccumulatedStatsResponse.NumRpcsSucceededByMethodEntry 2301 38, // 23: grpc.testing.LoadBalancerAccumulatedStatsResponse.num_rpcs_failed_by_method:type_name -> grpc.testing.LoadBalancerAccumulatedStatsResponse.NumRpcsFailedByMethodEntry 2302 40, // 24: grpc.testing.LoadBalancerAccumulatedStatsResponse.stats_per_method:type_name -> grpc.testing.LoadBalancerAccumulatedStatsResponse.StatsPerMethodEntry 2303 3, // 25: grpc.testing.ClientConfigureRequest.types:type_name -> grpc.testing.ClientConfigureRequest.RpcType 2304 42, // 26: grpc.testing.ClientConfigureRequest.metadata:type_name -> grpc.testing.ClientConfigureRequest.Metadata 2305 43, // 27: grpc.testing.TestOrcaReport.request_cost:type_name -> grpc.testing.TestOrcaReport.RequestCostEntry 2306 44, // 28: grpc.testing.TestOrcaReport.utilization:type_name -> grpc.testing.TestOrcaReport.UtilizationEntry 2307 4, // 29: grpc.testing.HookRequest.command:type_name -> grpc.testing.HookRequest.HookRequestCommand 2308 2, // 30: grpc.testing.LoadBalancerStatsResponse.MetadataEntry.type:type_name -> grpc.testing.LoadBalancerStatsResponse.MetadataType 2309 28, // 31: grpc.testing.LoadBalancerStatsResponse.RpcMetadata.metadata:type_name -> grpc.testing.LoadBalancerStatsResponse.MetadataEntry 2310 29, // 32: grpc.testing.LoadBalancerStatsResponse.MetadataByPeer.rpc_metadata:type_name -> grpc.testing.LoadBalancerStatsResponse.RpcMetadata 2311 35, // 33: grpc.testing.LoadBalancerStatsResponse.RpcsByPeer.rpcs_by_peer:type_name -> grpc.testing.LoadBalancerStatsResponse.RpcsByPeer.RpcsByPeerEntry 2312 31, // 34: grpc.testing.LoadBalancerStatsResponse.RpcsByMethodEntry.value:type_name -> grpc.testing.LoadBalancerStatsResponse.RpcsByPeer 2313 30, // 35: grpc.testing.LoadBalancerStatsResponse.MetadatasByPeerEntry.value:type_name -> grpc.testing.LoadBalancerStatsResponse.MetadataByPeer 2314 41, // 36: grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats.result:type_name -> grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats.ResultEntry 2315 39, // 37: grpc.testing.LoadBalancerAccumulatedStatsResponse.StatsPerMethodEntry.value:type_name -> grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats 2316 3, // 38: grpc.testing.ClientConfigureRequest.Metadata.type:type_name -> grpc.testing.ClientConfigureRequest.RpcType 2317 39, // [39:39] is the sub-list for method output_type 2318 39, // [39:39] is the sub-list for method input_type 2319 39, // [39:39] is the sub-list for extension type_name 2320 39, // [39:39] is the sub-list for extension extendee 2321 0, // [0:39] is the sub-list for field type_name 2322 } 2323 2324 func init() { file_grpc_testing_messages_proto_init() } 2325 func file_grpc_testing_messages_proto_init() { 2326 if File_grpc_testing_messages_proto != nil { 2327 return 2328 } 2329 type x struct{} 2330 out := protoimpl.TypeBuilder{ 2331 File: protoimpl.DescBuilder{ 2332 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 2333 RawDescriptor: unsafe.Slice(unsafe.StringData(file_grpc_testing_messages_proto_rawDesc), len(file_grpc_testing_messages_proto_rawDesc)), 2334 NumEnums: 5, 2335 NumMessages: 40, 2336 NumExtensions: 0, 2337 NumServices: 0, 2338 }, 2339 GoTypes: file_grpc_testing_messages_proto_goTypes, 2340 DependencyIndexes: file_grpc_testing_messages_proto_depIdxs, 2341 EnumInfos: file_grpc_testing_messages_proto_enumTypes, 2342 MessageInfos: file_grpc_testing_messages_proto_msgTypes, 2343 }.Build() 2344 File_grpc_testing_messages_proto = out.File 2345 file_grpc_testing_messages_proto_goTypes = nil 2346 file_grpc_testing_messages_proto_depIdxs = nil 2347 }