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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CircuitBreakers.Builder newBuilder()
newBuilder(CircuitBreakers prototype)
public static CircuitBreakers.Builder newBuilder(CircuitBreakers prototype)
public static CircuitBreakers parseDelimitedFrom(InputStream input)
public static CircuitBreakers parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CircuitBreakers parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CircuitBreakers parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CircuitBreakers parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CircuitBreakers parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CircuitBreakers parseFrom(CodedInputStream input)
public static CircuitBreakers parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CircuitBreakers parseFrom(InputStream input)
public static CircuitBreakers parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CircuitBreakers parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CircuitBreakers parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CircuitBreakers> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public CircuitBreakers getDefaultInstanceForType()
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()
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()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CircuitBreakers.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CircuitBreakers.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public CircuitBreakers.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides