- 1.63.0 (latest)
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CircuitBreakers.BuilderImplements
CircuitBreakersOrBuilderStatic 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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public CircuitBreakers.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
CircuitBreakers.Builder |
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 |
clone()
public CircuitBreakers.Builder clone()
Returns | |
---|---|
Type | Description |
CircuitBreakers.Builder |
getDefaultInstanceForType()
public CircuitBreakers getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CircuitBreakers |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CircuitBreakers.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CircuitBreakers.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CircuitBreakers.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CircuitBreakers.Builder |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final CircuitBreakers.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CircuitBreakers.Builder |