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.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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
clear
public CircuitBreakers.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
getDefaultInstanceForType
public CircuitBreakers getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CircuitBreakers build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CircuitBreakers buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CircuitBreakers.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
setField
public CircuitBreakers.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
clearField
public CircuitBreakers.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
clearOneof
public CircuitBreakers.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
setRepeatedField
public CircuitBreakers.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
addRepeatedField
public CircuitBreakers.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
mergeFrom
public CircuitBreakers.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CircuitBreakers.Builder>
-
mergeFrom
public CircuitBreakers.Builder mergeFrom(CircuitBreakers other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasMaxConnections
in 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:
getMaxConnections
in 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:
hasMaxPendingRequests
in 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:
getMaxPendingRequests
in 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:
hasMaxRequests
in 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:
getMaxRequests
in 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:
hasMaxRequestsPerConnection
in 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:
getMaxRequestsPerConnection
in 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:
hasMaxRetries
in 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:
getMaxRetries
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
mergeUnknownFields
public final CircuitBreakers.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
-
-