Class CircuitBreakers

  • All Implemented Interfaces:
    CircuitBreakersOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class CircuitBreakers
    extends com.google.protobuf.GeneratedMessageV3
    implements CircuitBreakersOrBuilder
     Settings controlling the volume of requests, connections and retries to this backend service.
     
    Protobuf type google.cloud.compute.v1.CircuitBreakers
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CircuitBreakers.Builder
      Settings controlling the volume of requests, connections and retries to this backend service.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Detail

      • MAX_CONNECTIONS_FIELD_NUMBER

        public static final int MAX_CONNECTIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAX_PENDING_REQUESTS_FIELD_NUMBER

        public static final int MAX_PENDING_REQUESTS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAX_REQUESTS_FIELD_NUMBER

        public static final int MAX_REQUESTS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAX_REQUESTS_PER_CONNECTION_FIELD_NUMBER

        public static final int MAX_REQUESTS_PER_CONNECTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAX_RETRIES_FIELD_NUMBER

        public static final int MAX_RETRIES_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static CircuitBreakers parseFrom​(ByteBuffer data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CircuitBreakers parseFrom​(ByteBuffer data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CircuitBreakers parseFrom​(com.google.protobuf.ByteString data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CircuitBreakers parseFrom​(com.google.protobuf.ByteString data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CircuitBreakers parseFrom​(byte[] data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CircuitBreakers parseFrom​(byte[] data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CircuitBreakers parseFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected CircuitBreakers.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • parser

        public static com.google.protobuf.Parser<CircuitBreakers> parser()
      • getParserForType

        public com.google.protobuf.Parser<CircuitBreakers> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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