Class CircuitBreakers.Builder (1.53.0)

public static final class CircuitBreakers.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CircuitBreakers.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CircuitBreakers.Builder
Overrides

build()

public CircuitBreakers build()
Returns
Type Description
CircuitBreakers

buildPartial()

public CircuitBreakers buildPartial()
Returns
Type Description
CircuitBreakers

clear()

public CircuitBreakers.Builder clear()
Returns
Type Description
CircuitBreakers.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CircuitBreakers.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CircuitBreakers.Builder
Overrides

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
Type Description
CircuitBreakers.Builder

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
Type Description
CircuitBreakers.Builder

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
Type Description
CircuitBreakers.Builder

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
Type Description
CircuitBreakers.Builder

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
Type Description
CircuitBreakers.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CircuitBreakers.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CircuitBreakers.Builder
Overrides

clone()

public CircuitBreakers.Builder clone()
Returns
Type Description
CircuitBreakers.Builder
Overrides

getDefaultInstanceForType()

public CircuitBreakers getDefaultInstanceForType()
Returns
Type Description
CircuitBreakers

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CircuitBreakers other)

public CircuitBreakers.Builder mergeFrom(CircuitBreakers other)
Parameter
Name Description
other CircuitBreakers
Returns
Type Description
CircuitBreakers.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CircuitBreakers.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CircuitBreakers.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CircuitBreakers.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CircuitBreakers.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CircuitBreakers.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CircuitBreakers.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CircuitBreakers.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CircuitBreakers.Builder
Overrides

setMaxConnections(int value)

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;

Parameter
Name Description
value int

The maxConnections to set.

Returns
Type Description
CircuitBreakers.Builder

This builder for chaining.

setMaxPendingRequests(int value)

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;

Parameter
Name Description
value int

The maxPendingRequests to set.

Returns
Type Description
CircuitBreakers.Builder

This builder for chaining.

setMaxRequests(int value)

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;

Parameter
Name Description
value int

The maxRequests to set.

Returns
Type Description
CircuitBreakers.Builder

This builder for chaining.

setMaxRequestsPerConnection(int value)

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;

Parameter
Name Description
value int

The maxRequestsPerConnection to set.

Returns
Type Description
CircuitBreakers.Builder

This builder for chaining.

setMaxRetries(int value)

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;

Parameter
Name Description
value int

The maxRetries to set.

Returns
Type Description
CircuitBreakers.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CircuitBreakers.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CircuitBreakers.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CircuitBreakers.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CircuitBreakers.Builder
Overrides