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