Package io.grpc.lb.v1

Class ServerList.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ServerListOrBuilder, java.lang.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 Detail

      • bitField0_

        private int bitField0_
      • servers_

        private java.util.List<Server> servers_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • 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>
      • 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 java.io.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:
        java.io.IOException
      • ensureServersIsMutable

        private void ensureServersIsMutable()
      • getServersList

        public java.util.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​(java.lang.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 java.util.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 java.util.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;