Package io.grpc.lb.v1
Class LoadBalanceResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<LoadBalanceResponse.Builder>
com.google.protobuf.GeneratedMessage.Builder<LoadBalanceResponse.Builder>
io.grpc.lb.v1.LoadBalanceResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,LoadBalanceResponseOrBuilder
,Cloneable
- Enclosing class:
LoadBalanceResponse
public static final class LoadBalanceResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LoadBalanceResponse.Builder>
implements LoadBalanceResponseOrBuilder
Protobuf type
grpc.lb.v1.LoadBalanceResponse
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private com.google.protobuf.SingleFieldBuilder
<FallbackResponse, FallbackResponse.Builder, FallbackResponseOrBuilder> private com.google.protobuf.SingleFieldBuilder
<InitialLoadBalanceResponse, InitialLoadBalanceResponse.Builder, InitialLoadBalanceResponseOrBuilder> private Object
private int
private com.google.protobuf.SingleFieldBuilder
<ServerList, ServerList.Builder, ServerListOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(LoadBalanceResponse result) private void
clear()
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).This message should be sent on the first response to the client.Contains the list of servers selected by the load balancer.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).This message should be sent on the first response to the client.This message should be sent on the first response to the client.This message should be sent on the first response to the client.Contains the list of servers selected by the load balancer.Contains the list of servers selected by the load balancer.Contains the list of servers selected by the load balancer.boolean
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).boolean
This message should be sent on the first response to the client.boolean
Contains the list of servers selected by the load balancer.private com.google.protobuf.SingleFieldBuilder
<FallbackResponse, FallbackResponse.Builder, FallbackResponseOrBuilder> If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.SingleFieldBuilder
<InitialLoadBalanceResponse, InitialLoadBalanceResponse.Builder, InitialLoadBalanceResponseOrBuilder> This message should be sent on the first response to the client.private com.google.protobuf.SingleFieldBuilder
<ServerList, ServerList.Builder, ServerListOrBuilder> Contains the list of servers selected by the load balancer.final boolean
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(LoadBalanceResponse other) This message should be sent on the first response to the client.mergeServerList
(ServerList value) Contains the list of servers selected by the load balancer.If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).setFallbackResponse
(FallbackResponse.Builder builderForValue) If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).This message should be sent on the first response to the client.setInitialResponse
(InitialLoadBalanceResponse.Builder builderForValue) This message should be sent on the first response to the client.setServerList
(ServerList value) Contains the list of servers selected by the load balancer.setServerList
(ServerList.Builder builderForValue) Contains the list of servers selected by the load balancer.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
loadBalanceResponseTypeCase_
private int loadBalanceResponseTypeCase_ -
loadBalanceResponseType_
-
bitField0_
private int bitField0_ -
initialResponseBuilder_
private com.google.protobuf.SingleFieldBuilder<InitialLoadBalanceResponse,InitialLoadBalanceResponse.Builder, initialResponseBuilder_InitialLoadBalanceResponseOrBuilder> -
serverListBuilder_
private com.google.protobuf.SingleFieldBuilder<ServerList,ServerList.Builder, serverListBuilder_ServerListOrBuilder> -
fallbackResponseBuilder_
private com.google.protobuf.SingleFieldBuilder<FallbackResponse,FallbackResponse.Builder, fallbackResponseBuilder_FallbackResponseOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<LoadBalanceResponse.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<LoadBalanceResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<LoadBalanceResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LoadBalanceResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<LoadBalanceResponse.Builder>
-
mergeFrom
public LoadBalanceResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LoadBalanceResponse.Builder>
- Throws:
IOException
-
getLoadBalanceResponseTypeCase
- Specified by:
getLoadBalanceResponseTypeCase
in interfaceLoadBalanceResponseOrBuilder
-
clearLoadBalanceResponseType
-
hasInitialResponse
public boolean hasInitialResponse()This message should be sent on the first response to the client.
.grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1;
- Specified by:
hasInitialResponse
in interfaceLoadBalanceResponseOrBuilder
- Returns:
- Whether the initialResponse field is set.
-
getInitialResponse
This message should be sent on the first response to the client.
.grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1;
- Specified by:
getInitialResponse
in interfaceLoadBalanceResponseOrBuilder
- Returns:
- The initialResponse.
-
setInitialResponse
This message should be sent on the first response to the client.
.grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1;
-
setInitialResponse
public LoadBalanceResponse.Builder setInitialResponse(InitialLoadBalanceResponse.Builder builderForValue) This message should be sent on the first response to the client.
.grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1;
-
mergeInitialResponse
This message should be sent on the first response to the client.
.grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1;
-
clearInitialResponse
This message should be sent on the first response to the client.
.grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1;
-
getInitialResponseBuilder
This message should be sent on the first response to the client.
.grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1;
-
getInitialResponseOrBuilder
This message should be sent on the first response to the client.
.grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1;
- Specified by:
getInitialResponseOrBuilder
in interfaceLoadBalanceResponseOrBuilder
-
internalGetInitialResponseFieldBuilder
private com.google.protobuf.SingleFieldBuilder<InitialLoadBalanceResponse,InitialLoadBalanceResponse.Builder, internalGetInitialResponseFieldBuilder()InitialLoadBalanceResponseOrBuilder> This message should be sent on the first response to the client.
.grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1;
-
hasServerList
public boolean hasServerList()Contains the list of servers selected by the load balancer. The client should send requests to these servers in the specified order.
.grpc.lb.v1.ServerList server_list = 2;
- Specified by:
hasServerList
in interfaceLoadBalanceResponseOrBuilder
- Returns:
- Whether the serverList field is set.
-
getServerList
Contains the list of servers selected by the load balancer. The client should send requests to these servers in the specified order.
.grpc.lb.v1.ServerList server_list = 2;
- Specified by:
getServerList
in interfaceLoadBalanceResponseOrBuilder
- Returns:
- The serverList.
-
setServerList
Contains the list of servers selected by the load balancer. The client should send requests to these servers in the specified order.
.grpc.lb.v1.ServerList server_list = 2;
-
setServerList
Contains the list of servers selected by the load balancer. The client should send requests to these servers in the specified order.
.grpc.lb.v1.ServerList server_list = 2;
-
mergeServerList
Contains the list of servers selected by the load balancer. The client should send requests to these servers in the specified order.
.grpc.lb.v1.ServerList server_list = 2;
-
clearServerList
Contains the list of servers selected by the load balancer. The client should send requests to these servers in the specified order.
.grpc.lb.v1.ServerList server_list = 2;
-
getServerListBuilder
Contains the list of servers selected by the load balancer. The client should send requests to these servers in the specified order.
.grpc.lb.v1.ServerList server_list = 2;
-
getServerListOrBuilder
Contains the list of servers selected by the load balancer. The client should send requests to these servers in the specified order.
.grpc.lb.v1.ServerList server_list = 2;
- Specified by:
getServerListOrBuilder
in interfaceLoadBalanceResponseOrBuilder
-
internalGetServerListFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ServerList,ServerList.Builder, internalGetServerListFieldBuilder()ServerListOrBuilder> Contains the list of servers selected by the load balancer. The client should send requests to these servers in the specified order.
.grpc.lb.v1.ServerList server_list = 2;
-
hasFallbackResponse
public boolean hasFallbackResponse()If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).
.grpc.lb.v1.FallbackResponse fallback_response = 3;
- Specified by:
hasFallbackResponse
in interfaceLoadBalanceResponseOrBuilder
- Returns:
- Whether the fallbackResponse field is set.
-
getFallbackResponse
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).
.grpc.lb.v1.FallbackResponse fallback_response = 3;
- Specified by:
getFallbackResponse
in interfaceLoadBalanceResponseOrBuilder
- Returns:
- The fallbackResponse.
-
setFallbackResponse
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).
.grpc.lb.v1.FallbackResponse fallback_response = 3;
-
setFallbackResponse
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).
.grpc.lb.v1.FallbackResponse fallback_response = 3;
-
mergeFallbackResponse
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).
.grpc.lb.v1.FallbackResponse fallback_response = 3;
-
clearFallbackResponse
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).
.grpc.lb.v1.FallbackResponse fallback_response = 3;
-
getFallbackResponseBuilder
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).
.grpc.lb.v1.FallbackResponse fallback_response = 3;
-
getFallbackResponseOrBuilder
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).
.grpc.lb.v1.FallbackResponse fallback_response = 3;
- Specified by:
getFallbackResponseOrBuilder
in interfaceLoadBalanceResponseOrBuilder
-
internalGetFallbackResponseFieldBuilder
private com.google.protobuf.SingleFieldBuilder<FallbackResponse,FallbackResponse.Builder, internalGetFallbackResponseFieldBuilder()FallbackResponseOrBuilder> If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).
.grpc.lb.v1.FallbackResponse fallback_response = 3;
-