google.golang.org/grpc@v1.72.2/balancer/grpclb/grpc_lb_v1/load_balancer.pb.go (about) 1 // Copyright 2015 The 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 // This file defines the GRPCLB LoadBalancing protocol. 16 // 17 // The canonical version of this proto can be found at 18 // https://github.com/grpc/grpc-proto/blob/master/grpc/lb/v1/load_balancer.proto 19 20 // Code generated by protoc-gen-go. DO NOT EDIT. 21 // versions: 22 // protoc-gen-go v1.36.5 23 // protoc v5.27.1 24 // source: grpc/lb/v1/load_balancer.proto 25 26 package grpc_lb_v1 27 28 import ( 29 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 30 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 31 durationpb "google.golang.org/protobuf/types/known/durationpb" 32 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 33 reflect "reflect" 34 sync "sync" 35 unsafe "unsafe" 36 ) 37 38 const ( 39 // Verify that this generated code is sufficiently up-to-date. 40 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 41 // Verify that runtime/protoimpl is sufficiently up-to-date. 42 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 43 ) 44 45 type LoadBalanceRequest struct { 46 state protoimpl.MessageState `protogen:"open.v1"` 47 // Types that are valid to be assigned to LoadBalanceRequestType: 48 // 49 // *LoadBalanceRequest_InitialRequest 50 // *LoadBalanceRequest_ClientStats 51 LoadBalanceRequestType isLoadBalanceRequest_LoadBalanceRequestType `protobuf_oneof:"load_balance_request_type"` 52 unknownFields protoimpl.UnknownFields 53 sizeCache protoimpl.SizeCache 54 } 55 56 func (x *LoadBalanceRequest) Reset() { 57 *x = LoadBalanceRequest{} 58 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[0] 59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 60 ms.StoreMessageInfo(mi) 61 } 62 63 func (x *LoadBalanceRequest) String() string { 64 return protoimpl.X.MessageStringOf(x) 65 } 66 67 func (*LoadBalanceRequest) ProtoMessage() {} 68 69 func (x *LoadBalanceRequest) ProtoReflect() protoreflect.Message { 70 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[0] 71 if x != nil { 72 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 73 if ms.LoadMessageInfo() == nil { 74 ms.StoreMessageInfo(mi) 75 } 76 return ms 77 } 78 return mi.MessageOf(x) 79 } 80 81 // Deprecated: Use LoadBalanceRequest.ProtoReflect.Descriptor instead. 82 func (*LoadBalanceRequest) Descriptor() ([]byte, []int) { 83 return file_grpc_lb_v1_load_balancer_proto_rawDescGZIP(), []int{0} 84 } 85 86 func (x *LoadBalanceRequest) GetLoadBalanceRequestType() isLoadBalanceRequest_LoadBalanceRequestType { 87 if x != nil { 88 return x.LoadBalanceRequestType 89 } 90 return nil 91 } 92 93 func (x *LoadBalanceRequest) GetInitialRequest() *InitialLoadBalanceRequest { 94 if x != nil { 95 if x, ok := x.LoadBalanceRequestType.(*LoadBalanceRequest_InitialRequest); ok { 96 return x.InitialRequest 97 } 98 } 99 return nil 100 } 101 102 func (x *LoadBalanceRequest) GetClientStats() *ClientStats { 103 if x != nil { 104 if x, ok := x.LoadBalanceRequestType.(*LoadBalanceRequest_ClientStats); ok { 105 return x.ClientStats 106 } 107 } 108 return nil 109 } 110 111 type isLoadBalanceRequest_LoadBalanceRequestType interface { 112 isLoadBalanceRequest_LoadBalanceRequestType() 113 } 114 115 type LoadBalanceRequest_InitialRequest struct { 116 // This message should be sent on the first request to the load balancer. 117 InitialRequest *InitialLoadBalanceRequest `protobuf:"bytes,1,opt,name=initial_request,json=initialRequest,proto3,oneof"` 118 } 119 120 type LoadBalanceRequest_ClientStats struct { 121 // The client stats should be periodically reported to the load balancer 122 // based on the duration defined in the InitialLoadBalanceResponse. 123 ClientStats *ClientStats `protobuf:"bytes,2,opt,name=client_stats,json=clientStats,proto3,oneof"` 124 } 125 126 func (*LoadBalanceRequest_InitialRequest) isLoadBalanceRequest_LoadBalanceRequestType() {} 127 128 func (*LoadBalanceRequest_ClientStats) isLoadBalanceRequest_LoadBalanceRequestType() {} 129 130 type InitialLoadBalanceRequest struct { 131 state protoimpl.MessageState `protogen:"open.v1"` 132 // The name of the load balanced service (e.g., service.googleapis.com). Its 133 // length should be less than 256 bytes. 134 // The name might include a port number. How to handle the port number is up 135 // to the balancer. 136 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 137 unknownFields protoimpl.UnknownFields 138 sizeCache protoimpl.SizeCache 139 } 140 141 func (x *InitialLoadBalanceRequest) Reset() { 142 *x = InitialLoadBalanceRequest{} 143 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[1] 144 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 145 ms.StoreMessageInfo(mi) 146 } 147 148 func (x *InitialLoadBalanceRequest) String() string { 149 return protoimpl.X.MessageStringOf(x) 150 } 151 152 func (*InitialLoadBalanceRequest) ProtoMessage() {} 153 154 func (x *InitialLoadBalanceRequest) ProtoReflect() protoreflect.Message { 155 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[1] 156 if x != nil { 157 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 158 if ms.LoadMessageInfo() == nil { 159 ms.StoreMessageInfo(mi) 160 } 161 return ms 162 } 163 return mi.MessageOf(x) 164 } 165 166 // Deprecated: Use InitialLoadBalanceRequest.ProtoReflect.Descriptor instead. 167 func (*InitialLoadBalanceRequest) Descriptor() ([]byte, []int) { 168 return file_grpc_lb_v1_load_balancer_proto_rawDescGZIP(), []int{1} 169 } 170 171 func (x *InitialLoadBalanceRequest) GetName() string { 172 if x != nil { 173 return x.Name 174 } 175 return "" 176 } 177 178 // Contains the number of calls finished for a particular load balance token. 179 type ClientStatsPerToken struct { 180 state protoimpl.MessageState `protogen:"open.v1"` 181 // See Server.load_balance_token. 182 LoadBalanceToken string `protobuf:"bytes,1,opt,name=load_balance_token,json=loadBalanceToken,proto3" json:"load_balance_token,omitempty"` 183 // The total number of RPCs that finished associated with the token. 184 NumCalls int64 `protobuf:"varint,2,opt,name=num_calls,json=numCalls,proto3" json:"num_calls,omitempty"` 185 unknownFields protoimpl.UnknownFields 186 sizeCache protoimpl.SizeCache 187 } 188 189 func (x *ClientStatsPerToken) Reset() { 190 *x = ClientStatsPerToken{} 191 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[2] 192 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 193 ms.StoreMessageInfo(mi) 194 } 195 196 func (x *ClientStatsPerToken) String() string { 197 return protoimpl.X.MessageStringOf(x) 198 } 199 200 func (*ClientStatsPerToken) ProtoMessage() {} 201 202 func (x *ClientStatsPerToken) ProtoReflect() protoreflect.Message { 203 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[2] 204 if x != nil { 205 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 206 if ms.LoadMessageInfo() == nil { 207 ms.StoreMessageInfo(mi) 208 } 209 return ms 210 } 211 return mi.MessageOf(x) 212 } 213 214 // Deprecated: Use ClientStatsPerToken.ProtoReflect.Descriptor instead. 215 func (*ClientStatsPerToken) Descriptor() ([]byte, []int) { 216 return file_grpc_lb_v1_load_balancer_proto_rawDescGZIP(), []int{2} 217 } 218 219 func (x *ClientStatsPerToken) GetLoadBalanceToken() string { 220 if x != nil { 221 return x.LoadBalanceToken 222 } 223 return "" 224 } 225 226 func (x *ClientStatsPerToken) GetNumCalls() int64 { 227 if x != nil { 228 return x.NumCalls 229 } 230 return 0 231 } 232 233 // Contains client level statistics that are useful to load balancing. Each 234 // count except the timestamp should be reset to zero after reporting the stats. 235 type ClientStats struct { 236 state protoimpl.MessageState `protogen:"open.v1"` 237 // The timestamp of generating the report. 238 Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 239 // The total number of RPCs that started. 240 NumCallsStarted int64 `protobuf:"varint,2,opt,name=num_calls_started,json=numCallsStarted,proto3" json:"num_calls_started,omitempty"` 241 // The total number of RPCs that finished. 242 NumCallsFinished int64 `protobuf:"varint,3,opt,name=num_calls_finished,json=numCallsFinished,proto3" json:"num_calls_finished,omitempty"` 243 // The total number of RPCs that failed to reach a server except dropped RPCs. 244 NumCallsFinishedWithClientFailedToSend int64 `protobuf:"varint,6,opt,name=num_calls_finished_with_client_failed_to_send,json=numCallsFinishedWithClientFailedToSend,proto3" json:"num_calls_finished_with_client_failed_to_send,omitempty"` 245 // The total number of RPCs that finished and are known to have been received 246 // by a server. 247 NumCallsFinishedKnownReceived int64 `protobuf:"varint,7,opt,name=num_calls_finished_known_received,json=numCallsFinishedKnownReceived,proto3" json:"num_calls_finished_known_received,omitempty"` 248 // The list of dropped calls. 249 CallsFinishedWithDrop []*ClientStatsPerToken `protobuf:"bytes,8,rep,name=calls_finished_with_drop,json=callsFinishedWithDrop,proto3" json:"calls_finished_with_drop,omitempty"` 250 unknownFields protoimpl.UnknownFields 251 sizeCache protoimpl.SizeCache 252 } 253 254 func (x *ClientStats) Reset() { 255 *x = ClientStats{} 256 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[3] 257 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 258 ms.StoreMessageInfo(mi) 259 } 260 261 func (x *ClientStats) String() string { 262 return protoimpl.X.MessageStringOf(x) 263 } 264 265 func (*ClientStats) ProtoMessage() {} 266 267 func (x *ClientStats) ProtoReflect() protoreflect.Message { 268 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[3] 269 if x != nil { 270 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 271 if ms.LoadMessageInfo() == nil { 272 ms.StoreMessageInfo(mi) 273 } 274 return ms 275 } 276 return mi.MessageOf(x) 277 } 278 279 // Deprecated: Use ClientStats.ProtoReflect.Descriptor instead. 280 func (*ClientStats) Descriptor() ([]byte, []int) { 281 return file_grpc_lb_v1_load_balancer_proto_rawDescGZIP(), []int{3} 282 } 283 284 func (x *ClientStats) GetTimestamp() *timestamppb.Timestamp { 285 if x != nil { 286 return x.Timestamp 287 } 288 return nil 289 } 290 291 func (x *ClientStats) GetNumCallsStarted() int64 { 292 if x != nil { 293 return x.NumCallsStarted 294 } 295 return 0 296 } 297 298 func (x *ClientStats) GetNumCallsFinished() int64 { 299 if x != nil { 300 return x.NumCallsFinished 301 } 302 return 0 303 } 304 305 func (x *ClientStats) GetNumCallsFinishedWithClientFailedToSend() int64 { 306 if x != nil { 307 return x.NumCallsFinishedWithClientFailedToSend 308 } 309 return 0 310 } 311 312 func (x *ClientStats) GetNumCallsFinishedKnownReceived() int64 { 313 if x != nil { 314 return x.NumCallsFinishedKnownReceived 315 } 316 return 0 317 } 318 319 func (x *ClientStats) GetCallsFinishedWithDrop() []*ClientStatsPerToken { 320 if x != nil { 321 return x.CallsFinishedWithDrop 322 } 323 return nil 324 } 325 326 type LoadBalanceResponse struct { 327 state protoimpl.MessageState `protogen:"open.v1"` 328 // Types that are valid to be assigned to LoadBalanceResponseType: 329 // 330 // *LoadBalanceResponse_InitialResponse 331 // *LoadBalanceResponse_ServerList 332 // *LoadBalanceResponse_FallbackResponse 333 LoadBalanceResponseType isLoadBalanceResponse_LoadBalanceResponseType `protobuf_oneof:"load_balance_response_type"` 334 unknownFields protoimpl.UnknownFields 335 sizeCache protoimpl.SizeCache 336 } 337 338 func (x *LoadBalanceResponse) Reset() { 339 *x = LoadBalanceResponse{} 340 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[4] 341 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 342 ms.StoreMessageInfo(mi) 343 } 344 345 func (x *LoadBalanceResponse) String() string { 346 return protoimpl.X.MessageStringOf(x) 347 } 348 349 func (*LoadBalanceResponse) ProtoMessage() {} 350 351 func (x *LoadBalanceResponse) ProtoReflect() protoreflect.Message { 352 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[4] 353 if x != nil { 354 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 355 if ms.LoadMessageInfo() == nil { 356 ms.StoreMessageInfo(mi) 357 } 358 return ms 359 } 360 return mi.MessageOf(x) 361 } 362 363 // Deprecated: Use LoadBalanceResponse.ProtoReflect.Descriptor instead. 364 func (*LoadBalanceResponse) Descriptor() ([]byte, []int) { 365 return file_grpc_lb_v1_load_balancer_proto_rawDescGZIP(), []int{4} 366 } 367 368 func (x *LoadBalanceResponse) GetLoadBalanceResponseType() isLoadBalanceResponse_LoadBalanceResponseType { 369 if x != nil { 370 return x.LoadBalanceResponseType 371 } 372 return nil 373 } 374 375 func (x *LoadBalanceResponse) GetInitialResponse() *InitialLoadBalanceResponse { 376 if x != nil { 377 if x, ok := x.LoadBalanceResponseType.(*LoadBalanceResponse_InitialResponse); ok { 378 return x.InitialResponse 379 } 380 } 381 return nil 382 } 383 384 func (x *LoadBalanceResponse) GetServerList() *ServerList { 385 if x != nil { 386 if x, ok := x.LoadBalanceResponseType.(*LoadBalanceResponse_ServerList); ok { 387 return x.ServerList 388 } 389 } 390 return nil 391 } 392 393 func (x *LoadBalanceResponse) GetFallbackResponse() *FallbackResponse { 394 if x != nil { 395 if x, ok := x.LoadBalanceResponseType.(*LoadBalanceResponse_FallbackResponse); ok { 396 return x.FallbackResponse 397 } 398 } 399 return nil 400 } 401 402 type isLoadBalanceResponse_LoadBalanceResponseType interface { 403 isLoadBalanceResponse_LoadBalanceResponseType() 404 } 405 406 type LoadBalanceResponse_InitialResponse struct { 407 // This message should be sent on the first response to the client. 408 InitialResponse *InitialLoadBalanceResponse `protobuf:"bytes,1,opt,name=initial_response,json=initialResponse,proto3,oneof"` 409 } 410 411 type LoadBalanceResponse_ServerList struct { 412 // Contains the list of servers selected by the load balancer. The client 413 // should send requests to these servers in the specified order. 414 ServerList *ServerList `protobuf:"bytes,2,opt,name=server_list,json=serverList,proto3,oneof"` 415 } 416 417 type LoadBalanceResponse_FallbackResponse struct { 418 // If this field is set, then the client should eagerly enter fallback 419 // mode (even if there are existing, healthy connections to backends). 420 FallbackResponse *FallbackResponse `protobuf:"bytes,3,opt,name=fallback_response,json=fallbackResponse,proto3,oneof"` 421 } 422 423 func (*LoadBalanceResponse_InitialResponse) isLoadBalanceResponse_LoadBalanceResponseType() {} 424 425 func (*LoadBalanceResponse_ServerList) isLoadBalanceResponse_LoadBalanceResponseType() {} 426 427 func (*LoadBalanceResponse_FallbackResponse) isLoadBalanceResponse_LoadBalanceResponseType() {} 428 429 type FallbackResponse struct { 430 state protoimpl.MessageState `protogen:"open.v1"` 431 unknownFields protoimpl.UnknownFields 432 sizeCache protoimpl.SizeCache 433 } 434 435 func (x *FallbackResponse) Reset() { 436 *x = FallbackResponse{} 437 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[5] 438 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 439 ms.StoreMessageInfo(mi) 440 } 441 442 func (x *FallbackResponse) String() string { 443 return protoimpl.X.MessageStringOf(x) 444 } 445 446 func (*FallbackResponse) ProtoMessage() {} 447 448 func (x *FallbackResponse) ProtoReflect() protoreflect.Message { 449 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[5] 450 if x != nil { 451 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 452 if ms.LoadMessageInfo() == nil { 453 ms.StoreMessageInfo(mi) 454 } 455 return ms 456 } 457 return mi.MessageOf(x) 458 } 459 460 // Deprecated: Use FallbackResponse.ProtoReflect.Descriptor instead. 461 func (*FallbackResponse) Descriptor() ([]byte, []int) { 462 return file_grpc_lb_v1_load_balancer_proto_rawDescGZIP(), []int{5} 463 } 464 465 type InitialLoadBalanceResponse struct { 466 state protoimpl.MessageState `protogen:"open.v1"` 467 // This interval defines how often the client should send the client stats 468 // to the load balancer. Stats should only be reported when the duration is 469 // positive. 470 ClientStatsReportInterval *durationpb.Duration `protobuf:"bytes,2,opt,name=client_stats_report_interval,json=clientStatsReportInterval,proto3" json:"client_stats_report_interval,omitempty"` 471 unknownFields protoimpl.UnknownFields 472 sizeCache protoimpl.SizeCache 473 } 474 475 func (x *InitialLoadBalanceResponse) Reset() { 476 *x = InitialLoadBalanceResponse{} 477 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[6] 478 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 479 ms.StoreMessageInfo(mi) 480 } 481 482 func (x *InitialLoadBalanceResponse) String() string { 483 return protoimpl.X.MessageStringOf(x) 484 } 485 486 func (*InitialLoadBalanceResponse) ProtoMessage() {} 487 488 func (x *InitialLoadBalanceResponse) ProtoReflect() protoreflect.Message { 489 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[6] 490 if x != nil { 491 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 492 if ms.LoadMessageInfo() == nil { 493 ms.StoreMessageInfo(mi) 494 } 495 return ms 496 } 497 return mi.MessageOf(x) 498 } 499 500 // Deprecated: Use InitialLoadBalanceResponse.ProtoReflect.Descriptor instead. 501 func (*InitialLoadBalanceResponse) Descriptor() ([]byte, []int) { 502 return file_grpc_lb_v1_load_balancer_proto_rawDescGZIP(), []int{6} 503 } 504 505 func (x *InitialLoadBalanceResponse) GetClientStatsReportInterval() *durationpb.Duration { 506 if x != nil { 507 return x.ClientStatsReportInterval 508 } 509 return nil 510 } 511 512 type ServerList struct { 513 state protoimpl.MessageState `protogen:"open.v1"` 514 // Contains a list of servers selected by the load balancer. The list will 515 // be updated when server resolutions change or as needed to balance load 516 // across more servers. The client should consume the server list in order 517 // unless instructed otherwise via the client_config. 518 Servers []*Server `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"` 519 unknownFields protoimpl.UnknownFields 520 sizeCache protoimpl.SizeCache 521 } 522 523 func (x *ServerList) Reset() { 524 *x = ServerList{} 525 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[7] 526 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 527 ms.StoreMessageInfo(mi) 528 } 529 530 func (x *ServerList) String() string { 531 return protoimpl.X.MessageStringOf(x) 532 } 533 534 func (*ServerList) ProtoMessage() {} 535 536 func (x *ServerList) ProtoReflect() protoreflect.Message { 537 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[7] 538 if x != nil { 539 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 540 if ms.LoadMessageInfo() == nil { 541 ms.StoreMessageInfo(mi) 542 } 543 return ms 544 } 545 return mi.MessageOf(x) 546 } 547 548 // Deprecated: Use ServerList.ProtoReflect.Descriptor instead. 549 func (*ServerList) Descriptor() ([]byte, []int) { 550 return file_grpc_lb_v1_load_balancer_proto_rawDescGZIP(), []int{7} 551 } 552 553 func (x *ServerList) GetServers() []*Server { 554 if x != nil { 555 return x.Servers 556 } 557 return nil 558 } 559 560 // Contains server information. When the drop field is not true, use the other 561 // fields. 562 type Server struct { 563 state protoimpl.MessageState `protogen:"open.v1"` 564 // A resolved address for the server, serialized in network-byte-order. It may 565 // either be an IPv4 or IPv6 address. 566 IpAddress []byte `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` 567 // A resolved port number for the server. 568 Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` 569 // An opaque but printable token for load reporting. The client must include 570 // the token of the picked server into the initial metadata when it starts a 571 // call to that server. The token is used by the server to verify the request 572 // and to allow the server to report load to the gRPC LB system. The token is 573 // also used in client stats for reporting dropped calls. 574 // 575 // Its length can be variable but must be less than 50 bytes. 576 LoadBalanceToken string `protobuf:"bytes,3,opt,name=load_balance_token,json=loadBalanceToken,proto3" json:"load_balance_token,omitempty"` 577 // Indicates whether this particular request should be dropped by the client. 578 // If the request is dropped, there will be a corresponding entry in 579 // ClientStats.calls_finished_with_drop. 580 Drop bool `protobuf:"varint,4,opt,name=drop,proto3" json:"drop,omitempty"` 581 unknownFields protoimpl.UnknownFields 582 sizeCache protoimpl.SizeCache 583 } 584 585 func (x *Server) Reset() { 586 *x = Server{} 587 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[8] 588 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 589 ms.StoreMessageInfo(mi) 590 } 591 592 func (x *Server) String() string { 593 return protoimpl.X.MessageStringOf(x) 594 } 595 596 func (*Server) ProtoMessage() {} 597 598 func (x *Server) ProtoReflect() protoreflect.Message { 599 mi := &file_grpc_lb_v1_load_balancer_proto_msgTypes[8] 600 if x != nil { 601 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 602 if ms.LoadMessageInfo() == nil { 603 ms.StoreMessageInfo(mi) 604 } 605 return ms 606 } 607 return mi.MessageOf(x) 608 } 609 610 // Deprecated: Use Server.ProtoReflect.Descriptor instead. 611 func (*Server) Descriptor() ([]byte, []int) { 612 return file_grpc_lb_v1_load_balancer_proto_rawDescGZIP(), []int{8} 613 } 614 615 func (x *Server) GetIpAddress() []byte { 616 if x != nil { 617 return x.IpAddress 618 } 619 return nil 620 } 621 622 func (x *Server) GetPort() int32 { 623 if x != nil { 624 return x.Port 625 } 626 return 0 627 } 628 629 func (x *Server) GetLoadBalanceToken() string { 630 if x != nil { 631 return x.LoadBalanceToken 632 } 633 return "" 634 } 635 636 func (x *Server) GetDrop() bool { 637 if x != nil { 638 return x.Drop 639 } 640 return false 641 } 642 643 var File_grpc_lb_v1_load_balancer_proto protoreflect.FileDescriptor 644 645 var file_grpc_lb_v1_load_balancer_proto_rawDesc = string([]byte{ 646 0x0a, 0x1e, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x6c, 0x62, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x6f, 0x61, 647 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 648 0x12, 0x0a, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x6c, 0x62, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 649 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 650 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 651 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 652 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x01, 653 0x0a, 0x12, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 654 0x75, 0x65, 0x73, 0x74, 0x12, 0x50, 0x0a, 0x0f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 655 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 656 0x67, 0x72, 0x70, 0x63, 0x2e, 0x6c, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 657 0x61, 0x6c, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 658 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x52, 659 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 660 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 661 0x72, 0x70, 0x63, 0x2e, 0x6c, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 662 0x53, 0x74, 0x61, 0x74, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 663 0x74, 0x61, 0x74, 0x73, 0x42, 0x1b, 0x0a, 0x19, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x61, 0x6c, 664 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 665 0x65, 0x22, 0x2f, 0x0a, 0x19, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x4c, 0x6f, 0x61, 0x64, 666 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 667 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 668 0x6d, 0x65, 0x22, 0x60, 0x0a, 0x13, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 669 0x73, 0x50, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x6f, 0x61, 670 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 671 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 672 0x63, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x75, 0x6d, 0x5f, 0x63, 673 0x61, 0x6c, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x75, 0x6d, 0x43, 674 0x61, 0x6c, 0x6c, 0x73, 0x22, 0xb0, 0x03, 0x0a, 0x0b, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 675 0x74, 0x61, 0x74, 0x73, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 676 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 677 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 678 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2a, 679 0x0a, 0x11, 0x6e, 0x75, 0x6d, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x72, 680 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x75, 0x6d, 0x43, 0x61, 681 0x6c, 0x6c, 0x73, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x6e, 0x75, 682 0x6d, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x5f, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 683 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6e, 0x75, 0x6d, 0x43, 0x61, 0x6c, 0x6c, 0x73, 684 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, 0x5d, 0x0a, 0x2d, 0x6e, 0x75, 0x6d, 0x5f, 685 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x5f, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x77, 686 0x69, 0x74, 0x68, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x65, 687 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x65, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 688 0x26, 0x6e, 0x75, 0x6d, 0x43, 0x61, 0x6c, 0x6c, 0x73, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 689 0x64, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x65, 690 0x64, 0x54, 0x6f, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x48, 0x0a, 0x21, 0x6e, 0x75, 0x6d, 0x5f, 0x63, 691 0x61, 0x6c, 0x6c, 0x73, 0x5f, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x6b, 0x6e, 692 0x6f, 0x77, 0x6e, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 693 0x28, 0x03, 0x52, 0x1d, 0x6e, 0x75, 0x6d, 0x43, 0x61, 0x6c, 0x6c, 0x73, 0x46, 0x69, 0x6e, 0x69, 694 0x73, 0x68, 0x65, 0x64, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 695 0x64, 0x12, 0x58, 0x0a, 0x18, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x5f, 0x66, 0x69, 0x6e, 0x69, 0x73, 696 0x68, 0x65, 0x64, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x64, 0x72, 0x6f, 0x70, 0x18, 0x08, 0x20, 697 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x6c, 0x62, 0x2e, 0x76, 0x31, 698 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x50, 0x65, 0x72, 0x54, 699 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x15, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x46, 0x69, 0x6e, 0x69, 0x73, 700 0x68, 0x65, 0x64, 0x57, 0x69, 0x74, 0x68, 0x44, 0x72, 0x6f, 0x70, 0x4a, 0x04, 0x08, 0x04, 0x10, 701 0x05, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x22, 0x90, 0x02, 0x0a, 0x13, 0x4c, 0x6f, 0x61, 0x64, 702 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 703 0x53, 0x0a, 0x10, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 704 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x72, 0x70, 0x63, 705 0x2e, 0x6c, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x4c, 0x6f, 706 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 707 0x65, 0x48, 0x00, 0x52, 0x0f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 708 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6c, 709 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x70, 0x63, 710 0x2e, 0x6c, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x69, 0x73, 711 0x74, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 712 0x4b, 0x0a, 0x11, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x72, 0x65, 0x73, 0x70, 713 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x70, 714 0x63, 0x2e, 0x6c, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 715 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x10, 0x66, 0x61, 0x6c, 0x6c, 716 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x1c, 0x0a, 0x1a, 717 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x73, 718 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x46, 0x61, 719 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7e, 720 0x0a, 0x1a, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 721 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x1c, 722 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x5f, 0x72, 0x65, 0x70, 723 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 724 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 725 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x19, 0x63, 726 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 727 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0x40, 728 0x0a, 0x0a, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x07, 729 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 730 0x67, 0x72, 0x70, 0x63, 0x2e, 0x6c, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 731 0x72, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 732 0x22, 0x83, 0x01, 0x0a, 0x06, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 733 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 734 0x09, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 735 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x2c, 736 0x0a, 0x12, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x74, 737 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6c, 0x6f, 0x61, 0x64, 738 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x12, 0x0a, 0x04, 739 0x64, 0x72, 0x6f, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x72, 0x6f, 0x70, 740 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x32, 0x62, 0x0a, 0x0c, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 741 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x12, 0x52, 0x0a, 0x0b, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 742 0x65, 0x4c, 0x6f, 0x61, 0x64, 0x12, 0x1e, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x6c, 0x62, 0x2e, 743 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 744 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x6c, 0x62, 0x2e, 745 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 746 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x42, 0x57, 0x0a, 0x0d, 0x69, 0x6f, 747 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x6c, 0x62, 0x2e, 0x76, 0x31, 0x42, 0x11, 0x4c, 0x6f, 0x61, 748 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 749 0x5a, 0x31, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 750 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 751 0x72, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x6c, 0x62, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x6c, 0x62, 752 0x5f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 753 }) 754 755 var ( 756 file_grpc_lb_v1_load_balancer_proto_rawDescOnce sync.Once 757 file_grpc_lb_v1_load_balancer_proto_rawDescData []byte 758 ) 759 760 func file_grpc_lb_v1_load_balancer_proto_rawDescGZIP() []byte { 761 file_grpc_lb_v1_load_balancer_proto_rawDescOnce.Do(func() { 762 file_grpc_lb_v1_load_balancer_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_grpc_lb_v1_load_balancer_proto_rawDesc), len(file_grpc_lb_v1_load_balancer_proto_rawDesc))) 763 }) 764 return file_grpc_lb_v1_load_balancer_proto_rawDescData 765 } 766 767 var file_grpc_lb_v1_load_balancer_proto_msgTypes = make([]protoimpl.MessageInfo, 9) 768 var file_grpc_lb_v1_load_balancer_proto_goTypes = []any{ 769 (*LoadBalanceRequest)(nil), // 0: grpc.lb.v1.LoadBalanceRequest 770 (*InitialLoadBalanceRequest)(nil), // 1: grpc.lb.v1.InitialLoadBalanceRequest 771 (*ClientStatsPerToken)(nil), // 2: grpc.lb.v1.ClientStatsPerToken 772 (*ClientStats)(nil), // 3: grpc.lb.v1.ClientStats 773 (*LoadBalanceResponse)(nil), // 4: grpc.lb.v1.LoadBalanceResponse 774 (*FallbackResponse)(nil), // 5: grpc.lb.v1.FallbackResponse 775 (*InitialLoadBalanceResponse)(nil), // 6: grpc.lb.v1.InitialLoadBalanceResponse 776 (*ServerList)(nil), // 7: grpc.lb.v1.ServerList 777 (*Server)(nil), // 8: grpc.lb.v1.Server 778 (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp 779 (*durationpb.Duration)(nil), // 10: google.protobuf.Duration 780 } 781 var file_grpc_lb_v1_load_balancer_proto_depIdxs = []int32{ 782 1, // 0: grpc.lb.v1.LoadBalanceRequest.initial_request:type_name -> grpc.lb.v1.InitialLoadBalanceRequest 783 3, // 1: grpc.lb.v1.LoadBalanceRequest.client_stats:type_name -> grpc.lb.v1.ClientStats 784 9, // 2: grpc.lb.v1.ClientStats.timestamp:type_name -> google.protobuf.Timestamp 785 2, // 3: grpc.lb.v1.ClientStats.calls_finished_with_drop:type_name -> grpc.lb.v1.ClientStatsPerToken 786 6, // 4: grpc.lb.v1.LoadBalanceResponse.initial_response:type_name -> grpc.lb.v1.InitialLoadBalanceResponse 787 7, // 5: grpc.lb.v1.LoadBalanceResponse.server_list:type_name -> grpc.lb.v1.ServerList 788 5, // 6: grpc.lb.v1.LoadBalanceResponse.fallback_response:type_name -> grpc.lb.v1.FallbackResponse 789 10, // 7: grpc.lb.v1.InitialLoadBalanceResponse.client_stats_report_interval:type_name -> google.protobuf.Duration 790 8, // 8: grpc.lb.v1.ServerList.servers:type_name -> grpc.lb.v1.Server 791 0, // 9: grpc.lb.v1.LoadBalancer.BalanceLoad:input_type -> grpc.lb.v1.LoadBalanceRequest 792 4, // 10: grpc.lb.v1.LoadBalancer.BalanceLoad:output_type -> grpc.lb.v1.LoadBalanceResponse 793 10, // [10:11] is the sub-list for method output_type 794 9, // [9:10] is the sub-list for method input_type 795 9, // [9:9] is the sub-list for extension type_name 796 9, // [9:9] is the sub-list for extension extendee 797 0, // [0:9] is the sub-list for field type_name 798 } 799 800 func init() { file_grpc_lb_v1_load_balancer_proto_init() } 801 func file_grpc_lb_v1_load_balancer_proto_init() { 802 if File_grpc_lb_v1_load_balancer_proto != nil { 803 return 804 } 805 file_grpc_lb_v1_load_balancer_proto_msgTypes[0].OneofWrappers = []any{ 806 (*LoadBalanceRequest_InitialRequest)(nil), 807 (*LoadBalanceRequest_ClientStats)(nil), 808 } 809 file_grpc_lb_v1_load_balancer_proto_msgTypes[4].OneofWrappers = []any{ 810 (*LoadBalanceResponse_InitialResponse)(nil), 811 (*LoadBalanceResponse_ServerList)(nil), 812 (*LoadBalanceResponse_FallbackResponse)(nil), 813 } 814 type x struct{} 815 out := protoimpl.TypeBuilder{ 816 File: protoimpl.DescBuilder{ 817 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 818 RawDescriptor: unsafe.Slice(unsafe.StringData(file_grpc_lb_v1_load_balancer_proto_rawDesc), len(file_grpc_lb_v1_load_balancer_proto_rawDesc)), 819 NumEnums: 0, 820 NumMessages: 9, 821 NumExtensions: 0, 822 NumServices: 1, 823 }, 824 GoTypes: file_grpc_lb_v1_load_balancer_proto_goTypes, 825 DependencyIndexes: file_grpc_lb_v1_load_balancer_proto_depIdxs, 826 MessageInfos: file_grpc_lb_v1_load_balancer_proto_msgTypes, 827 }.Build() 828 File_grpc_lb_v1_load_balancer_proto = out.File 829 file_grpc_lb_v1_load_balancer_proto_goTypes = nil 830 file_grpc_lb_v1_load_balancer_proto_depIdxs = nil 831 }