Package io.grpc.lb.v1

Class LoadBalanceResponse.Builder

    • 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<LoadBalanceResponse.Builder>
      • clear

        public LoadBalanceResponse.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<LoadBalanceResponse.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<LoadBalanceResponse.Builder>
      • getDefaultInstanceForType

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

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

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

        public LoadBalanceResponse.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<LoadBalanceResponse.Builder>
      • isInitialized

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

        public LoadBalanceResponse.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<LoadBalanceResponse.Builder>
        Throws:
        java.io.IOException
      • 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 interface LoadBalanceResponseOrBuilder
        Returns:
        Whether the initialResponse field is set.
      • 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;
      • 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 interface LoadBalanceResponseOrBuilder
        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 interface LoadBalanceResponseOrBuilder
        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;
      • getServerListFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<ServerList,​ServerList.Builder,​ServerListOrBuilder> getServerListFieldBuilder()
         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:
        hasFallbackResponse in interface LoadBalanceResponseOrBuilder
        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 interface LoadBalanceResponseOrBuilder
        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;
      • getFallbackResponseFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<FallbackResponse,​FallbackResponse.Builder,​FallbackResponseOrBuilder> getFallbackResponseFieldBuilder()
         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;