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