Class CircuitBreakers.Builder (1.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CircuitBreakers.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CircuitBreakers.Builder
Overrides

build()

public CircuitBreakers build()
Returns
TypeDescription
CircuitBreakers

buildPartial()

public CircuitBreakers buildPartial()
Returns
TypeDescription
CircuitBreakers

clear()

public CircuitBreakers.Builder clear()
Returns
TypeDescription
CircuitBreakers.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CircuitBreakers.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CircuitBreakers.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CircuitBreakers.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CircuitBreakers.Builder
Overrides

clone()

public CircuitBreakers.Builder clone()
Returns
TypeDescription
CircuitBreakers.Builder
Overrides

getDefaultInstanceForType()

public CircuitBreakers getDefaultInstanceForType()
Returns
TypeDescription
CircuitBreakers

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the maxRetries field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CircuitBreakers other)

public CircuitBreakers.Builder mergeFrom(CircuitBreakers other)
Parameter
NameDescription
otherCircuitBreakers
Returns
TypeDescription
CircuitBreakers.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CircuitBreakers.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CircuitBreakers.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CircuitBreakers.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CircuitBreakers.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CircuitBreakers.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CircuitBreakers.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CircuitBreakers.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The maxConnections to set.

Returns
TypeDescription
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
NameDescription
valueint

The maxPendingRequests to set.

Returns
TypeDescription
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
NameDescription
valueint

The maxRequests to set.

Returns
TypeDescription
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
NameDescription
valueint

The maxRequestsPerConnection to set.

Returns
TypeDescription
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
NameDescription
valueint

The maxRetries to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CircuitBreakers.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CircuitBreakers.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CircuitBreakers.Builder
Overrides