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 intprivate com.google.protobuf.SingleFieldBuilder<FallbackResponse, FallbackResponse.Builder, FallbackResponseOrBuilder> private com.google.protobuf.SingleFieldBuilder<InitialLoadBalanceResponse, InitialLoadBalanceResponse.Builder, InitialLoadBalanceResponseOrBuilder> private Objectprivate intprivate com.google.protobuf.SingleFieldBuilder<ServerList, ServerList.Builder, ServerListOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(LoadBalanceResponse result) private voidclear()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.Descriptorcom.google.protobuf.Descriptors.DescriptorIf 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.booleanIf this field is set, then the client should eagerly enter fallback mode (even if there are existing, healthy connections to backends).booleanThis message should be sent on the first response to the client.booleanContains 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.FieldAccessorTableprivate 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 booleanIf 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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, InitialLoadBalanceResponseOrBuilder> initialResponseBuilder_ -
serverListBuilder_
private com.google.protobuf.SingleFieldBuilder<ServerList, ServerList.Builder, ServerListOrBuilder> serverListBuilder_ -
fallbackResponseBuilder_
private com.google.protobuf.SingleFieldBuilder<FallbackResponse, FallbackResponse.Builder, FallbackResponseOrBuilder> fallbackResponseBuilder_
-
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LoadBalanceResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LoadBalanceResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LoadBalanceResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LoadBalanceResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LoadBalanceResponse.Builder>- Throws:
IOException
-
getLoadBalanceResponseTypeCase
- Specified by:
getLoadBalanceResponseTypeCasein 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:
hasInitialResponsein 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:
getInitialResponsein 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:
getInitialResponseOrBuilderin interfaceLoadBalanceResponseOrBuilder
-
internalGetInitialResponseFieldBuilder
private com.google.protobuf.SingleFieldBuilder<InitialLoadBalanceResponse, InitialLoadBalanceResponse.Builder, InitialLoadBalanceResponseOrBuilder> internalGetInitialResponseFieldBuilder()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:
hasServerListin 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:
getServerListin 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:
getServerListOrBuilderin interfaceLoadBalanceResponseOrBuilder
-
internalGetServerListFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ServerList, ServerList.Builder, ServerListOrBuilder> internalGetServerListFieldBuilder()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:
hasFallbackResponsein 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:
getFallbackResponsein 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:
getFallbackResponseOrBuilderin interfaceLoadBalanceResponseOrBuilder
-
internalGetFallbackResponseFieldBuilder
private com.google.protobuf.SingleFieldBuilder<FallbackResponse, FallbackResponse.Builder, FallbackResponseOrBuilder> internalGetFallbackResponseFieldBuilder()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;
-