Package io.grpc.lb.v1

Class ServerList.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ServerList.Builder>
com.google.protobuf.GeneratedMessage.Builder<ServerList.Builder>
io.grpc.lb.v1.ServerList.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ServerListOrBuilder, Cloneable
Enclosing class:
ServerList

public static final class ServerList.Builder extends com.google.protobuf.GeneratedMessage.Builder<ServerList.Builder> implements ServerListOrBuilder
Protobuf type grpc.lb.v1.ServerList
  • Field Details

  • 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 class com.google.protobuf.GeneratedMessage.Builder<ServerList.Builder>
    • clear

      public ServerList.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ServerList.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ServerList.Builder>
    • getDefaultInstanceForType

      public ServerList getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ServerList build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ServerList buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • buildPartialRepeatedFields

      private void buildPartialRepeatedFields(ServerList result)
    • buildPartial0

      private void buildPartial0(ServerList result)
    • mergeFrom

      public ServerList.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServerList.Builder>
    • mergeFrom

      public ServerList.Builder mergeFrom(ServerList other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ServerList.Builder>
    • mergeFrom

      public ServerList.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServerList.Builder>
      Throws:
      IOException
    • ensureServersIsMutable

      private void ensureServersIsMutable()
    • 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 interface ServerListOrBuilder
    • 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 interface ServerListOrBuilder
    • 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 interface ServerListOrBuilder
    • 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 interface ServerListOrBuilder
    • 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 interface ServerListOrBuilder
    • 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;
    • getServersFieldBuilder

      private com.google.protobuf.RepeatedFieldBuilder<Server,Server.Builder,ServerOrBuilder> getServersFieldBuilder()