Package com.google.cloud.compute.v1
Class CircuitBreakers.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
- com.google.cloud.compute.v1.CircuitBreakers.Builder
-
- All Implemented Interfaces:
CircuitBreakersOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CircuitBreakers
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 typegoogle.cloud.compute.v1.CircuitBreakers
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CircuitBreakers.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CircuitBreakersbuild()CircuitBreakersbuildPartial()CircuitBreakers.Builderclear()CircuitBreakers.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CircuitBreakers.BuilderclearMaxConnections()The maximum number of connections to the backend service.CircuitBreakers.BuilderclearMaxPendingRequests()The maximum number of pending requests allowed to the backend service.CircuitBreakers.BuilderclearMaxRequests()The maximum number of parallel requests that allowed to the backend service.CircuitBreakers.BuilderclearMaxRequestsPerConnection()Maximum requests for a single connection to the backend service.CircuitBreakers.BuilderclearMaxRetries()The maximum number of parallel retries allowed to the backend cluster.CircuitBreakers.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CircuitBreakers.Builderclone()CircuitBreakersgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetMaxConnections()The maximum number of connections to the backend service.intgetMaxPendingRequests()The maximum number of pending requests allowed to the backend service.intgetMaxRequests()The maximum number of parallel requests that allowed to the backend service.intgetMaxRequestsPerConnection()Maximum requests for a single connection to the backend service.intgetMaxRetries()The maximum number of parallel retries allowed to the backend cluster.booleanhasMaxConnections()The maximum number of connections to the backend service.booleanhasMaxPendingRequests()The maximum number of pending requests allowed to the backend service.booleanhasMaxRequests()The maximum number of parallel requests that allowed to the backend service.booleanhasMaxRequestsPerConnection()Maximum requests for a single connection to the backend service.booleanhasMaxRetries()The maximum number of parallel retries allowed to the backend cluster.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CircuitBreakers.BuildermergeFrom(CircuitBreakers other)CircuitBreakers.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CircuitBreakers.BuildermergeFrom(com.google.protobuf.Message other)CircuitBreakers.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CircuitBreakers.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CircuitBreakers.BuildersetMaxConnections(int value)The maximum number of connections to the backend service.CircuitBreakers.BuildersetMaxPendingRequests(int value)The maximum number of pending requests allowed to the backend service.CircuitBreakers.BuildersetMaxRequests(int value)The maximum number of parallel requests that allowed to the backend service.CircuitBreakers.BuildersetMaxRequestsPerConnection(int value)Maximum requests for a single connection to the backend service.CircuitBreakers.BuildersetMaxRetries(int value)The maximum number of parallel retries allowed to the backend cluster.CircuitBreakers.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CircuitBreakers.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
clear
public CircuitBreakers.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
getDefaultInstanceForType
public CircuitBreakers getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CircuitBreakers build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CircuitBreakers buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CircuitBreakers.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
setField
public CircuitBreakers.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
clearField
public CircuitBreakers.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
clearOneof
public CircuitBreakers.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
setRepeatedField
public CircuitBreakers.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
addRepeatedField
public CircuitBreakers.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
mergeFrom
public CircuitBreakers.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CircuitBreakers.Builder>
-
mergeFrom
public CircuitBreakers.Builder mergeFrom(CircuitBreakers other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
mergeFrom
public CircuitBreakers.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CircuitBreakers.Builder>- Throws:
IOException
-
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;- Specified by:
hasMaxConnectionsin interfaceCircuitBreakersOrBuilder- Returns:
- Whether the maxConnections field is set.
-
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;- Specified by:
getMaxConnectionsin interfaceCircuitBreakersOrBuilder- Returns:
- The maxConnections.
-
setMaxConnections
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;- Parameters:
value- The maxConnections to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
hasMaxPendingRequestsin interfaceCircuitBreakersOrBuilder- Returns:
- Whether the maxPendingRequests field is set.
-
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;- Specified by:
getMaxPendingRequestsin interfaceCircuitBreakersOrBuilder- Returns:
- The maxPendingRequests.
-
setMaxPendingRequests
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;- Parameters:
value- The maxPendingRequests to set.- Returns:
- 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:
- This builder for chaining.
-
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;- Specified by:
hasMaxRequestsin interfaceCircuitBreakersOrBuilder- Returns:
- Whether the maxRequests field is set.
-
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;- Specified by:
getMaxRequestsin interfaceCircuitBreakersOrBuilder- Returns:
- The maxRequests.
-
setMaxRequests
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;- Parameters:
value- The maxRequests to set.- Returns:
- 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:
- This builder for chaining.
-
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;- Specified by:
hasMaxRequestsPerConnectionin interfaceCircuitBreakersOrBuilder- Returns:
- Whether the maxRequestsPerConnection field is set.
-
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;- Specified by:
getMaxRequestsPerConnectionin interfaceCircuitBreakersOrBuilder- Returns:
- The maxRequestsPerConnection.
-
setMaxRequestsPerConnection
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;- Parameters:
value- The maxRequestsPerConnection to set.- Returns:
- 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:
- This builder for chaining.
-
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;- Specified by:
hasMaxRetriesin interfaceCircuitBreakersOrBuilder- Returns:
- Whether the maxRetries field is set.
-
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;- Specified by:
getMaxRetriesin interfaceCircuitBreakersOrBuilder- Returns:
- The maxRetries.
-
setMaxRetries
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;- Parameters:
value- The maxRetries to set.- Returns:
- 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:
- This builder for chaining.
-
setUnknownFields
public final CircuitBreakers.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
mergeUnknownFields
public final CircuitBreakers.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
-