Class CircuitBreakers.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CircuitBreakers.Builder>
com.google.cloud.compute.v1.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.GeneratedMessage.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 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<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public CircuitBreakers.Builder mergeFrom(CircuitBreakers other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.