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
MAX_PENDING_REQUESTS_FIELD_NUMBER
public static final int MAX_PENDING_REQUESTS_FIELD_NUMBER
Field Value
MAX_REQUESTS_FIELD_NUMBER
public static final int MAX_REQUESTS_FIELD_NUMBER
Field Value
MAX_REQUESTS_PER_CONNECTION_FIELD_NUMBER
public static final int MAX_REQUESTS_PER_CONNECTION_FIELD_NUMBER
Field Value
MAX_RETRIES_FIELD_NUMBER
public static final int MAX_RETRIES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static CircuitBreakers getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static CircuitBreakers.Builder newBuilder()
Returns
newBuilder(CircuitBreakers prototype)
public static CircuitBreakers.Builder newBuilder(CircuitBreakers prototype)
Parameter
Returns
public static CircuitBreakers parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CircuitBreakers parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static CircuitBreakers parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CircuitBreakers parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static CircuitBreakers parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CircuitBreakers parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CircuitBreakers parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CircuitBreakers parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CircuitBreakers parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CircuitBreakers parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static CircuitBreakers parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CircuitBreakers parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<CircuitBreakers> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public CircuitBreakers getDefaultInstanceForType()
Returns
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
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public CircuitBreakers.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CircuitBreakers.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public CircuitBreakers.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions