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.GeneratedMessage.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.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The maximum number of connections to the backend service.The maximum number of pending requests allowed to the backend service.The maximum number of parallel requests that allowed to the backend service.Maximum requests for a single connection to the backend service.The maximum number of parallel retries allowed to the backend cluster.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe maximum number of connections to the backend service.intThe maximum number of pending requests allowed to the backend service.intThe maximum number of parallel requests that allowed to the backend service.intMaximum requests for a single connection to the backend service.intThe maximum number of parallel retries allowed to the backend cluster.booleanThe maximum number of connections to the backend service.booleanThe maximum number of pending requests allowed to the backend service.booleanThe maximum number of parallel requests that allowed to the backend service.booleanMaximum requests for a single connection to the backend service.booleanThe maximum number of parallel retries allowed to the backend cluster.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CircuitBreakers other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setMaxConnections(int value) The maximum number of connections to the backend service.setMaxPendingRequests(int value) The maximum number of pending requests allowed to the backend service.setMaxRequests(int value) The maximum number of parallel requests that allowed to the backend service.setMaxRequestsPerConnection(int value) Maximum requests for a single connection to the backend service.setMaxRetries(int value) The maximum number of parallel retries allowed to the backend cluster.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CircuitBreakers.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<CircuitBreakers.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CircuitBreakers.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
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
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
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
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
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
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
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
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.
-