public static final class CircuitBreakers.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
CircuitBreakers.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CircuitBreakers |
build() |
CircuitBreakers |
buildPartial() |
CircuitBreakers.Builder |
clear() |
CircuitBreakers.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CircuitBreakers.Builder |
clearMaxConnections()
The maximum number of connections to the backend service.
|
CircuitBreakers.Builder |
clearMaxPendingRequests()
The maximum number of pending requests allowed to the backend service.
|
CircuitBreakers.Builder |
clearMaxRequests()
The maximum number of parallel requests that allowed to the backend service.
|
CircuitBreakers.Builder |
clearMaxRequestsPerConnection()
Maximum requests for a single connection to the backend service.
|
CircuitBreakers.Builder |
clearMaxRetries()
The maximum number of parallel retries allowed to the backend cluster.
|
CircuitBreakers.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CircuitBreakers.Builder |
clone() |
CircuitBreakers |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getMaxConnections()
The maximum number of connections to the backend service.
|
int |
getMaxPendingRequests()
The maximum number of pending requests allowed to the backend service.
|
int |
getMaxRequests()
The maximum number of parallel requests that allowed to the backend service.
|
int |
getMaxRequestsPerConnection()
Maximum requests for a single connection to the backend service.
|
int |
getMaxRetries()
The maximum number of parallel retries allowed to the backend cluster.
|
boolean |
hasMaxConnections()
The maximum number of connections to the backend service.
|
boolean |
hasMaxPendingRequests()
The maximum number of pending requests allowed to the backend service.
|
boolean |
hasMaxRequests()
The maximum number of parallel requests that allowed to the backend service.
|
boolean |
hasMaxRequestsPerConnection()
Maximum requests for a single connection to the backend service.
|
boolean |
hasMaxRetries()
The maximum number of parallel retries allowed to the backend cluster.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CircuitBreakers.Builder |
mergeFrom(CircuitBreakers other) |
CircuitBreakers.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CircuitBreakers.Builder |
mergeFrom(com.google.protobuf.Message other) |
CircuitBreakers.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CircuitBreakers.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CircuitBreakers.Builder |
setMaxConnections(int value)
The maximum number of connections to the backend service.
|
CircuitBreakers.Builder |
setMaxPendingRequests(int value)
The maximum number of pending requests allowed to the backend service.
|
CircuitBreakers.Builder |
setMaxRequests(int value)
The maximum number of parallel requests that allowed to the backend service.
|
CircuitBreakers.Builder |
setMaxRequestsPerConnection(int value)
Maximum requests for a single connection to the backend service.
|
CircuitBreakers.Builder |
setMaxRetries(int value)
The maximum number of parallel retries allowed to the backend cluster.
|
CircuitBreakers.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CircuitBreakers.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>public CircuitBreakers.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>public CircuitBreakers getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CircuitBreakers build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CircuitBreakers buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CircuitBreakers.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>public CircuitBreakers.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>public CircuitBreakers.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>public CircuitBreakers.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>public CircuitBreakers.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>public CircuitBreakers.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>public CircuitBreakers.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CircuitBreakers.Builder>public CircuitBreakers.Builder mergeFrom(CircuitBreakers other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>public CircuitBreakers.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CircuitBreakers.Builder>IOExceptionpublic 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;hasMaxConnections in interface CircuitBreakersOrBuilderpublic 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;getMaxConnections in interface CircuitBreakersOrBuilderpublic 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;value - The maxConnections to set.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;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;hasMaxPendingRequests in interface CircuitBreakersOrBuilderpublic 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;getMaxPendingRequests in interface CircuitBreakersOrBuilderpublic 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;value - The maxPendingRequests to set.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;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;hasMaxRequests in interface CircuitBreakersOrBuilderpublic 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;getMaxRequests in interface CircuitBreakersOrBuilderpublic 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;value - The maxRequests to set.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;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;hasMaxRequestsPerConnection in interface CircuitBreakersOrBuilderpublic 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;getMaxRequestsPerConnection in interface CircuitBreakersOrBuilderpublic 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;value - The maxRequestsPerConnection to set.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;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;hasMaxRetries in interface CircuitBreakersOrBuilderpublic 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;getMaxRetries in interface CircuitBreakersOrBuilderpublic 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;value - The maxRetries to set.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;public final CircuitBreakers.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>public final CircuitBreakers.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>Copyright © 2023 Google LLC. All rights reserved.