Package io.grpc.lb.v1
Class LoadBalanceResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LoadBalanceResponse.Builder>
-
- io.grpc.lb.v1.LoadBalanceResponse.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,LoadBalanceResponseOrBuilder
,Cloneable
- Enclosing class:
- LoadBalanceResponse
public static final class LoadBalanceResponse.Builder extends GeneratedMessageV3.Builder<LoadBalanceResponse.Builder> implements LoadBalanceResponseOrBuilder
Protobuf typegrpc.lb.v1.LoadBalanceResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadBalanceResponse.Builder
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
LoadBalanceResponse
build()
LoadBalanceResponse
buildPartial()
LoadBalanceResponse.Builder
clear()
LoadBalanceResponse.Builder
clearFallbackResponse()
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).LoadBalanceResponse.Builder
clearField(Descriptors.FieldDescriptor field)
LoadBalanceResponse.Builder
clearInitialResponse()
This message should be sent on the first response to the client.LoadBalanceResponse.Builder
clearLoadBalanceResponseType()
LoadBalanceResponse.Builder
clearOneof(Descriptors.OneofDescriptor oneof)
LoadBalanceResponse.Builder
clearServerList()
Contains the list of servers selected by the load balancer.LoadBalanceResponse.Builder
clone()
LoadBalanceResponse
getDefaultInstanceForType()
static Descriptors.Descriptor
getDescriptor()
Descriptors.Descriptor
getDescriptorForType()
FallbackResponse
getFallbackResponse()
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).FallbackResponse.Builder
getFallbackResponseBuilder()
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).FallbackResponseOrBuilder
getFallbackResponseOrBuilder()
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).InitialLoadBalanceResponse
getInitialResponse()
This message should be sent on the first response to the client.InitialLoadBalanceResponse.Builder
getInitialResponseBuilder()
This message should be sent on the first response to the client.InitialLoadBalanceResponseOrBuilder
getInitialResponseOrBuilder()
This message should be sent on the first response to the client.LoadBalanceResponse.LoadBalanceResponseTypeCase
getLoadBalanceResponseTypeCase()
ServerList
getServerList()
Contains the list of servers selected by the load balancer.ServerList.Builder
getServerListBuilder()
Contains the list of servers selected by the load balancer.ServerListOrBuilder
getServerListOrBuilder()
Contains the list of servers selected by the load balancer.boolean
hasFallbackResponse()
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).boolean
hasInitialResponse()
This message should be sent on the first response to the client.boolean
hasServerList()
Contains the list of servers selected by the load balancer.protected GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
LoadBalanceResponse.Builder
mergeFallbackResponse(FallbackResponse value)
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).LoadBalanceResponse.Builder
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
LoadBalanceResponse.Builder
mergeFrom(Message other)
LoadBalanceResponse.Builder
mergeFrom(LoadBalanceResponse other)
LoadBalanceResponse.Builder
mergeInitialResponse(InitialLoadBalanceResponse value)
This message should be sent on the first response to the client.LoadBalanceResponse.Builder
mergeServerList(ServerList value)
Contains the list of servers selected by the load balancer.LoadBalanceResponse.Builder
mergeUnknownFields(UnknownFieldSet unknownFields)
LoadBalanceResponse.Builder
setFallbackResponse(FallbackResponse value)
If this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).LoadBalanceResponse.Builder
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).LoadBalanceResponse.Builder
setField(Descriptors.FieldDescriptor field, Object value)
LoadBalanceResponse.Builder
setInitialResponse(InitialLoadBalanceResponse value)
This message should be sent on the first response to the client.LoadBalanceResponse.Builder
setInitialResponse(InitialLoadBalanceResponse.Builder builderForValue)
This message should be sent on the first response to the client.LoadBalanceResponse.Builder
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
LoadBalanceResponse.Builder
setServerList(ServerList value)
Contains the list of servers selected by the load balancer.LoadBalanceResponse.Builder
setServerList(ServerList.Builder builderForValue)
Contains the list of servers selected by the load balancer.LoadBalanceResponse.Builder
setUnknownFields(UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3.Builder<LoadBalanceResponse.Builder>
-
clear
public LoadBalanceResponse.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<LoadBalanceResponse.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<LoadBalanceResponse.Builder>
-
getDefaultInstanceForType
public LoadBalanceResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public LoadBalanceResponse build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public LoadBalanceResponse buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public LoadBalanceResponse.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<LoadBalanceResponse.Builder>
-
setField
public LoadBalanceResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<LoadBalanceResponse.Builder>
-
clearField
public LoadBalanceResponse.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<LoadBalanceResponse.Builder>
-
clearOneof
public LoadBalanceResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<LoadBalanceResponse.Builder>
-
setRepeatedField
public LoadBalanceResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<LoadBalanceResponse.Builder>
-
addRepeatedField
public LoadBalanceResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<LoadBalanceResponse.Builder>
-
mergeFrom
public LoadBalanceResponse.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<LoadBalanceResponse.Builder>
-
mergeFrom
public LoadBalanceResponse.Builder mergeFrom(LoadBalanceResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<LoadBalanceResponse.Builder>
-
mergeFrom
public LoadBalanceResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Specified by:
mergeFrom
in interfaceMessageLite.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<LoadBalanceResponse.Builder>
- Throws:
IOException
-
getLoadBalanceResponseTypeCase
public LoadBalanceResponse.LoadBalanceResponseTypeCase getLoadBalanceResponseTypeCase()
- Specified by:
getLoadBalanceResponseTypeCase
in interfaceLoadBalanceResponseOrBuilder
-
clearLoadBalanceResponseType
public LoadBalanceResponse.Builder 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
public InitialLoadBalanceResponse 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
public LoadBalanceResponse.Builder setInitialResponse(InitialLoadBalanceResponse value)
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
public LoadBalanceResponse.Builder mergeInitialResponse(InitialLoadBalanceResponse value)
This message should be sent on the first response to the client.
.grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1;
-
clearInitialResponse
public LoadBalanceResponse.Builder clearInitialResponse()
This message should be sent on the first response to the client.
.grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1;
-
getInitialResponseBuilder
public InitialLoadBalanceResponse.Builder getInitialResponseBuilder()
This message should be sent on the first response to the client.
.grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1;
-
getInitialResponseOrBuilder
public InitialLoadBalanceResponseOrBuilder 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
-
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
public ServerList 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
public LoadBalanceResponse.Builder setServerList(ServerList value)
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
public LoadBalanceResponse.Builder setServerList(ServerList.Builder builderForValue)
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
public LoadBalanceResponse.Builder mergeServerList(ServerList value)
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
public LoadBalanceResponse.Builder 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
public ServerList.Builder 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
public ServerListOrBuilder 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
-
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
public FallbackResponse 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
public LoadBalanceResponse.Builder setFallbackResponse(FallbackResponse value)
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
public LoadBalanceResponse.Builder 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).
.grpc.lb.v1.FallbackResponse fallback_response = 3;
-
mergeFallbackResponse
public LoadBalanceResponse.Builder mergeFallbackResponse(FallbackResponse value)
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
public LoadBalanceResponse.Builder 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
public FallbackResponse.Builder 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
public FallbackResponseOrBuilder 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
-
setUnknownFields
public final LoadBalanceResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<LoadBalanceResponse.Builder>
-
mergeUnknownFields
public final LoadBalanceResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<LoadBalanceResponse.Builder>
-
-