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