Package io.grpc.lb.v1
Class ServerList.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ServerList.Builder>
-
- io.grpc.lb.v1.ServerList.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,ServerListOrBuilder
,Cloneable
- Enclosing class:
- ServerList
public static final class ServerList.Builder extends GeneratedMessageV3.Builder<ServerList.Builder> implements ServerListOrBuilder
Protobuf typegrpc.lb.v1.ServerList
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerList.Builder
addAllServers(Iterable<? extends Server> values)
Contains a list of servers selected by the load balancer.ServerList.Builder
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
ServerList.Builder
addServers(int index, Server value)
Contains a list of servers selected by the load balancer.ServerList.Builder
addServers(int index, Server.Builder builderForValue)
Contains a list of servers selected by the load balancer.ServerList.Builder
addServers(Server value)
Contains a list of servers selected by the load balancer.ServerList.Builder
addServers(Server.Builder builderForValue)
Contains a list of servers selected by the load balancer.Server.Builder
addServersBuilder()
Contains a list of servers selected by the load balancer.Server.Builder
addServersBuilder(int index)
Contains a list of servers selected by the load balancer.ServerList
build()
ServerList
buildPartial()
ServerList.Builder
clear()
ServerList.Builder
clearField(Descriptors.FieldDescriptor field)
ServerList.Builder
clearOneof(Descriptors.OneofDescriptor oneof)
ServerList.Builder
clearServers()
Contains a list of servers selected by the load balancer.ServerList.Builder
clone()
ServerList
getDefaultInstanceForType()
static Descriptors.Descriptor
getDescriptor()
Descriptors.Descriptor
getDescriptorForType()
Server
getServers(int index)
Contains a list of servers selected by the load balancer.Server.Builder
getServersBuilder(int index)
Contains a list of servers selected by the load balancer.List<Server.Builder>
getServersBuilderList()
Contains a list of servers selected by the load balancer.int
getServersCount()
Contains a list of servers selected by the load balancer.List<Server>
getServersList()
Contains a list of servers selected by the load balancer.ServerOrBuilder
getServersOrBuilder(int index)
Contains a list of servers selected by the load balancer.List<? extends ServerOrBuilder>
getServersOrBuilderList()
Contains a list of servers selected by the load balancer.protected GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ServerList.Builder
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
ServerList.Builder
mergeFrom(Message other)
ServerList.Builder
mergeFrom(ServerList other)
ServerList.Builder
mergeUnknownFields(UnknownFieldSet unknownFields)
ServerList.Builder
removeServers(int index)
Contains a list of servers selected by the load balancer.ServerList.Builder
setField(Descriptors.FieldDescriptor field, Object value)
ServerList.Builder
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
ServerList.Builder
setServers(int index, Server value)
Contains a list of servers selected by the load balancer.ServerList.Builder
setServers(int index, Server.Builder builderForValue)
Contains a list of servers selected by the load balancer.ServerList.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<ServerList.Builder>
-
clear
public ServerList.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<ServerList.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<ServerList.Builder>
-
getDefaultInstanceForType
public ServerList getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public ServerList build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public ServerList buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public ServerList.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<ServerList.Builder>
-
setField
public ServerList.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<ServerList.Builder>
-
clearField
public ServerList.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<ServerList.Builder>
-
clearOneof
public ServerList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<ServerList.Builder>
-
setRepeatedField
public ServerList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<ServerList.Builder>
-
addRepeatedField
public ServerList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<ServerList.Builder>
-
mergeFrom
public ServerList.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<ServerList.Builder>
-
mergeFrom
public ServerList.Builder mergeFrom(ServerList other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<ServerList.Builder>
-
mergeFrom
public ServerList.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<ServerList.Builder>
- Throws:
IOException
-
getServersList
public List<Server> getServersList()
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
- Specified by:
getServersList
in interfaceServerListOrBuilder
-
getServersCount
public int getServersCount()
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
- Specified by:
getServersCount
in interfaceServerListOrBuilder
-
getServers
public Server getServers(int index)
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
- Specified by:
getServers
in interfaceServerListOrBuilder
-
setServers
public ServerList.Builder setServers(int index, Server value)
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
-
setServers
public ServerList.Builder setServers(int index, Server.Builder builderForValue)
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
-
addServers
public ServerList.Builder addServers(Server value)
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
-
addServers
public ServerList.Builder addServers(int index, Server value)
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
-
addServers
public ServerList.Builder addServers(Server.Builder builderForValue)
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
-
addServers
public ServerList.Builder addServers(int index, Server.Builder builderForValue)
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
-
addAllServers
public ServerList.Builder addAllServers(Iterable<? extends Server> values)
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
-
clearServers
public ServerList.Builder clearServers()
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
-
removeServers
public ServerList.Builder removeServers(int index)
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
-
getServersBuilder
public Server.Builder getServersBuilder(int index)
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
-
getServersOrBuilder
public ServerOrBuilder getServersOrBuilder(int index)
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
- Specified by:
getServersOrBuilder
in interfaceServerListOrBuilder
-
getServersOrBuilderList
public List<? extends ServerOrBuilder> getServersOrBuilderList()
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
- Specified by:
getServersOrBuilderList
in interfaceServerListOrBuilder
-
addServersBuilder
public Server.Builder addServersBuilder()
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
-
addServersBuilder
public Server.Builder addServersBuilder(int index)
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
-
getServersBuilderList
public List<Server.Builder> getServersBuilderList()
Contains a list of servers selected by the load balancer. The list will be updated when server resolutions change or as needed to balance load across more servers. The client should consume the server list in order unless instructed otherwise via the client_config.
repeated .grpc.lb.v1.Server servers = 1;
-
setUnknownFields
public final ServerList.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<ServerList.Builder>
-
mergeUnknownFields
public final ServerList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<ServerList.Builder>
-
-