Class CircuitBreakers (1.58.0)

public final class CircuitBreakers extends GeneratedMessageV3 implements CircuitBreakersOrBuilder

Settings controlling the volume of requests, connections and retries to this backend service.

Protobuf type google.cloud.compute.v1.CircuitBreakers

Static Fields

MAX_CONNECTIONS_FIELD_NUMBER

public static final int MAX_CONNECTIONS_FIELD_NUMBER
Field Value
Type Description
int

MAX_PENDING_REQUESTS_FIELD_NUMBER

public static final int MAX_PENDING_REQUESTS_FIELD_NUMBER
Field Value
Type Description
int

MAX_REQUESTS_FIELD_NUMBER

public static final int MAX_REQUESTS_FIELD_NUMBER
Field Value
Type Description
int

MAX_REQUESTS_PER_CONNECTION_FIELD_NUMBER

public static final int MAX_REQUESTS_PER_CONNECTION_FIELD_NUMBER
Field Value
Type Description
int

MAX_RETRIES_FIELD_NUMBER

public static final int MAX_RETRIES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CircuitBreakers getDefaultInstance()
Returns
Type Description
CircuitBreakers

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CircuitBreakers.Builder newBuilder()
Returns
Type Description
CircuitBreakers.Builder

newBuilder(CircuitBreakers prototype)

public static CircuitBreakers.Builder newBuilder(CircuitBreakers prototype)
Parameter
Name Description
prototype CircuitBreakers
Returns
Type Description
CircuitBreakers.Builder

parseDelimitedFrom(InputStream input)

public static CircuitBreakers parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CircuitBreakers
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CircuitBreakers parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CircuitBreakers
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CircuitBreakers parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CircuitBreakers
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CircuitBreakers parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CircuitBreakers
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CircuitBreakers parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CircuitBreakers
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CircuitBreakers parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CircuitBreakers
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CircuitBreakers parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CircuitBreakers
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CircuitBreakers parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CircuitBreakers
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CircuitBreakers parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CircuitBreakers
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CircuitBreakers parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CircuitBreakers
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CircuitBreakers parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CircuitBreakers
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CircuitBreakers parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CircuitBreakers
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CircuitBreakers> parser()
Returns
Type Description
Parser<CircuitBreakers>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CircuitBreakers getDefaultInstanceForType()
Returns
Type Description
CircuitBreakers

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;

Returns
Type Description
int

The maxConnections.

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;

Returns
Type Description
int

The maxPendingRequests.

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;

Returns
Type Description
int

The maxRequests.

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;

Returns
Type Description
int

The maxRequestsPerConnection.

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;

Returns
Type Description
int

The maxRetries.

getParserForType()

public Parser<CircuitBreakers> getParserForType()
Returns
Type Description
Parser<CircuitBreakers>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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;

Returns
Type Description
boolean

Whether the maxConnections field is set.

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;

Returns
Type Description
boolean

Whether the maxPendingRequests field is set.

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;

Returns
Type Description
boolean

Whether the maxRequests field is set.

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;

Returns
Type Description
boolean

Whether the maxRequestsPerConnection field is set.

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;

Returns
Type Description
boolean

Whether the maxRetries field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CircuitBreakers.Builder newBuilderForType()
Returns
Type Description
CircuitBreakers.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CircuitBreakers.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CircuitBreakers.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CircuitBreakers.Builder toBuilder()
Returns
Type Description
CircuitBreakers.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException