Class CircuitBreakers.Builder

  • All Implemented Interfaces:
    CircuitBreakersOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    CircuitBreakers

    public static final class CircuitBreakers.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
    implements CircuitBreakersOrBuilder
     Settings controlling the volume of requests, connections and retries to this backend service.
     
    Protobuf type google.cloud.compute.v1.CircuitBreakers
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
      • clear

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

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

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

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

        public CircuitBreakers.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
      • setField

        public CircuitBreakers.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
      • clearField

        public CircuitBreakers.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
      • clearOneof

        public CircuitBreakers.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
      • setRepeatedField

        public CircuitBreakers.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
      • addRepeatedField

        public CircuitBreakers.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
      • mergeFrom

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

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

        public CircuitBreakers.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<CircuitBreakers.Builder>
        Throws:
        IOException
      • hasMaxConnections

        public boolean hasMaxConnections()
         The maximum number of connections to the backend service. If not specified, there is no limit. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
         
        optional int32 max_connections = 110652154;
        Specified by:
        hasMaxConnections in interface CircuitBreakersOrBuilder
        Returns:
        Whether the maxConnections field is set.
      • getMaxConnections

        public int getMaxConnections()
         The maximum number of connections to the backend service. If not specified, there is no limit. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
         
        optional int32 max_connections = 110652154;
        Specified by:
        getMaxConnections in interface CircuitBreakersOrBuilder
        Returns:
        The maxConnections.
      • setMaxConnections

        public CircuitBreakers.Builder setMaxConnections​(int value)
         The maximum number of connections to the backend service. If not specified, there is no limit. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
         
        optional int32 max_connections = 110652154;
        Parameters:
        value - The maxConnections to set.
        Returns:
        This builder for chaining.
      • clearMaxConnections

        public CircuitBreakers.Builder clearMaxConnections()
         The maximum number of connections to the backend service. If not specified, there is no limit. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
         
        optional int32 max_connections = 110652154;
        Returns:
        This builder for chaining.
      • hasMaxPendingRequests

        public boolean hasMaxPendingRequests()
         The maximum number of pending requests allowed to the backend service. If not specified, there is no limit. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
         
        optional int32 max_pending_requests = 375558887;
        Specified by:
        hasMaxPendingRequests in interface CircuitBreakersOrBuilder
        Returns:
        Whether the maxPendingRequests field is set.
      • getMaxPendingRequests

        public int getMaxPendingRequests()
         The maximum number of pending requests allowed to the backend service. If not specified, there is no limit. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
         
        optional int32 max_pending_requests = 375558887;
        Specified by:
        getMaxPendingRequests in interface CircuitBreakersOrBuilder
        Returns:
        The maxPendingRequests.
      • setMaxPendingRequests

        public CircuitBreakers.Builder setMaxPendingRequests​(int value)
         The maximum number of pending requests allowed to the backend service. If not specified, there is no limit. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
         
        optional int32 max_pending_requests = 375558887;
        Parameters:
        value - The maxPendingRequests to set.
        Returns:
        This builder for chaining.
      • clearMaxPendingRequests

        public CircuitBreakers.Builder clearMaxPendingRequests()
         The maximum number of pending requests allowed to the backend service. If not specified, there is no limit. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
         
        optional int32 max_pending_requests = 375558887;
        Returns:
        This builder for chaining.
      • hasMaxRequests

        public boolean hasMaxRequests()
         The maximum number of parallel requests that allowed to the backend service. If not specified, there is no limit.
         
        optional int32 max_requests = 28097599;
        Specified by:
        hasMaxRequests in interface CircuitBreakersOrBuilder
        Returns:
        Whether the maxRequests field is set.
      • getMaxRequests

        public int getMaxRequests()
         The maximum number of parallel requests that allowed to the backend service. If not specified, there is no limit.
         
        optional int32 max_requests = 28097599;
        Specified by:
        getMaxRequests in interface CircuitBreakersOrBuilder
        Returns:
        The maxRequests.
      • setMaxRequests

        public CircuitBreakers.Builder setMaxRequests​(int value)
         The maximum number of parallel requests that allowed to the backend service. If not specified, there is no limit.
         
        optional int32 max_requests = 28097599;
        Parameters:
        value - The maxRequests to set.
        Returns:
        This builder for chaining.
      • clearMaxRequests

        public CircuitBreakers.Builder clearMaxRequests()
         The maximum number of parallel requests that allowed to the backend service. If not specified, there is no limit.
         
        optional int32 max_requests = 28097599;
        Returns:
        This builder for chaining.
      • hasMaxRequestsPerConnection

        public boolean hasMaxRequestsPerConnection()
         Maximum requests for a single connection to the backend service. This parameter is respected by both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this parameter to 1 will effectively disable keep alive. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
         
        optional int32 max_requests_per_connection = 361630528;
        Specified by:
        hasMaxRequestsPerConnection in interface CircuitBreakersOrBuilder
        Returns:
        Whether the maxRequestsPerConnection field is set.
      • getMaxRequestsPerConnection

        public int getMaxRequestsPerConnection()
         Maximum requests for a single connection to the backend service. This parameter is respected by both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this parameter to 1 will effectively disable keep alive. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
         
        optional int32 max_requests_per_connection = 361630528;
        Specified by:
        getMaxRequestsPerConnection in interface CircuitBreakersOrBuilder
        Returns:
        The maxRequestsPerConnection.
      • setMaxRequestsPerConnection

        public CircuitBreakers.Builder setMaxRequestsPerConnection​(int value)
         Maximum requests for a single connection to the backend service. This parameter is respected by both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this parameter to 1 will effectively disable keep alive. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
         
        optional int32 max_requests_per_connection = 361630528;
        Parameters:
        value - The maxRequestsPerConnection to set.
        Returns:
        This builder for chaining.
      • clearMaxRequestsPerConnection

        public CircuitBreakers.Builder clearMaxRequestsPerConnection()
         Maximum requests for a single connection to the backend service. This parameter is respected by both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this parameter to 1 will effectively disable keep alive. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
         
        optional int32 max_requests_per_connection = 361630528;
        Returns:
        This builder for chaining.
      • hasMaxRetries

        public boolean hasMaxRetries()
         The maximum number of parallel retries allowed to the backend cluster. If not specified, the default is 1. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
         
        optional int32 max_retries = 55546219;
        Specified by:
        hasMaxRetries in interface CircuitBreakersOrBuilder
        Returns:
        Whether the maxRetries field is set.
      • getMaxRetries

        public int getMaxRetries()
         The maximum number of parallel retries allowed to the backend cluster. If not specified, the default is 1. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
         
        optional int32 max_retries = 55546219;
        Specified by:
        getMaxRetries in interface CircuitBreakersOrBuilder
        Returns:
        The maxRetries.
      • setMaxRetries

        public CircuitBreakers.Builder setMaxRetries​(int value)
         The maximum number of parallel retries allowed to the backend cluster. If not specified, the default is 1. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
         
        optional int32 max_retries = 55546219;
        Parameters:
        value - The maxRetries to set.
        Returns:
        This builder for chaining.
      • clearMaxRetries

        public CircuitBreakers.Builder clearMaxRetries()
         The maximum number of parallel retries allowed to the backend cluster. If not specified, the default is 1. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
         
        optional int32 max_retries = 55546219;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CircuitBreakers.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
      • mergeUnknownFields

        public final CircuitBreakers.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>