Package com.google.cloud.compute.v1
Class Backend.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Backend.Builder>
-
- com.google.cloud.compute.v1.Backend.Builder
-
- All Implemented Interfaces:
BackendOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Backend
public static final class Backend.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Backend.Builder> implements BackendOrBuilder
Message containing information of one individual backend.
Protobuf typegoogle.cloud.compute.v1.Backend
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Backend.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Backendbuild()BackendbuildPartial()Backend.Builderclear()Backend.BuilderclearBalancingMode()Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded.Backend.BuilderclearCapacityScaler()A multiplier applied to the backend's target capacity of its balancing mode.Backend.BuilderclearDescription()An optional description of this resource.Backend.BuilderclearFailover()This field designates whether this is a failover backend.Backend.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Backend.BuilderclearGroup()The fully-qualified URL of an instance group or network endpoint group (NEG) resource.Backend.BuilderclearMaxConnections()Defines a target maximum number of simultaneous connections.Backend.BuilderclearMaxConnectionsPerEndpoint()Defines a target maximum number of simultaneous connections.Backend.BuilderclearMaxConnectionsPerInstance()Defines a target maximum number of simultaneous connections.Backend.BuilderclearMaxRate()Defines a maximum number of HTTP requests per second (RPS).Backend.BuilderclearMaxRatePerEndpoint()Defines a maximum target for requests per second (RPS).Backend.BuilderclearMaxRatePerInstance()Defines a maximum target for requests per second (RPS).Backend.BuilderclearMaxUtilization()Optional parameter to define a target capacity for the UTILIZATION balancing mode.Backend.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Backend.Builderclone()StringgetBalancingMode()Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded.com.google.protobuf.ByteStringgetBalancingModeBytes()Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded.floatgetCapacityScaler()A multiplier applied to the backend's target capacity of its balancing mode.BackendgetDefaultInstanceForType()StringgetDescription()An optional description of this resource.com.google.protobuf.ByteStringgetDescriptionBytes()An optional description of this resource.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetFailover()This field designates whether this is a failover backend.StringgetGroup()The fully-qualified URL of an instance group or network endpoint group (NEG) resource.com.google.protobuf.ByteStringgetGroupBytes()The fully-qualified URL of an instance group or network endpoint group (NEG) resource.intgetMaxConnections()Defines a target maximum number of simultaneous connections.intgetMaxConnectionsPerEndpoint()Defines a target maximum number of simultaneous connections.intgetMaxConnectionsPerInstance()Defines a target maximum number of simultaneous connections.intgetMaxRate()Defines a maximum number of HTTP requests per second (RPS).floatgetMaxRatePerEndpoint()Defines a maximum target for requests per second (RPS).floatgetMaxRatePerInstance()Defines a maximum target for requests per second (RPS).floatgetMaxUtilization()Optional parameter to define a target capacity for the UTILIZATION balancing mode.booleanhasBalancingMode()Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded.booleanhasCapacityScaler()A multiplier applied to the backend's target capacity of its balancing mode.booleanhasDescription()An optional description of this resource.booleanhasFailover()This field designates whether this is a failover backend.booleanhasGroup()The fully-qualified URL of an instance group or network endpoint group (NEG) resource.booleanhasMaxConnections()Defines a target maximum number of simultaneous connections.booleanhasMaxConnectionsPerEndpoint()Defines a target maximum number of simultaneous connections.booleanhasMaxConnectionsPerInstance()Defines a target maximum number of simultaneous connections.booleanhasMaxRate()Defines a maximum number of HTTP requests per second (RPS).booleanhasMaxRatePerEndpoint()Defines a maximum target for requests per second (RPS).booleanhasMaxRatePerInstance()Defines a maximum target for requests per second (RPS).booleanhasMaxUtilization()Optional parameter to define a target capacity for the UTILIZATION balancing mode.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Backend.BuildermergeFrom(Backend other)Backend.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Backend.BuildermergeFrom(com.google.protobuf.Message other)Backend.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Backend.BuildersetBalancingMode(String value)Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded.Backend.BuildersetBalancingModeBytes(com.google.protobuf.ByteString value)Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded.Backend.BuildersetCapacityScaler(float value)A multiplier applied to the backend's target capacity of its balancing mode.Backend.BuildersetDescription(String value)An optional description of this resource.Backend.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)An optional description of this resource.Backend.BuildersetFailover(boolean value)This field designates whether this is a failover backend.Backend.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Backend.BuildersetGroup(String value)The fully-qualified URL of an instance group or network endpoint group (NEG) resource.Backend.BuildersetGroupBytes(com.google.protobuf.ByteString value)The fully-qualified URL of an instance group or network endpoint group (NEG) resource.Backend.BuildersetMaxConnections(int value)Defines a target maximum number of simultaneous connections.Backend.BuildersetMaxConnectionsPerEndpoint(int value)Defines a target maximum number of simultaneous connections.Backend.BuildersetMaxConnectionsPerInstance(int value)Defines a target maximum number of simultaneous connections.Backend.BuildersetMaxRate(int value)Defines a maximum number of HTTP requests per second (RPS).Backend.BuildersetMaxRatePerEndpoint(float value)Defines a maximum target for requests per second (RPS).Backend.BuildersetMaxRatePerInstance(float value)Defines a maximum target for requests per second (RPS).Backend.BuildersetMaxUtilization(float value)Optional parameter to define a target capacity for the UTILIZATION balancing mode.Backend.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Backend.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<Backend.Builder>
-
clear
public Backend.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<Backend.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<Backend.Builder>
-
getDefaultInstanceForType
public Backend getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Backend build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Backend buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Backend.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<Backend.Builder>
-
setField
public Backend.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<Backend.Builder>
-
clearField
public Backend.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Backend.Builder>
-
clearOneof
public Backend.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Backend.Builder>
-
setRepeatedField
public Backend.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<Backend.Builder>
-
addRepeatedField
public Backend.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<Backend.Builder>
-
mergeFrom
public Backend.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Backend.Builder>
-
mergeFrom
public Backend.Builder mergeFrom(Backend other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Backend.Builder>
-
mergeFrom
public Backend.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<Backend.Builder>- Throws:
IOException
-
hasBalancingMode
public boolean hasBalancingMode()
Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded. For usage guidelines, see Connection balancing mode. Backends must use compatible balancing modes. For more information, see Supported balancing modes and target capacity settings and Restrictions and guidance for instance groups. Note: Currently, if you use the API to configure incompatible balancing modes, the configuration might be accepted even though it has no impact and is ignored. Specifically, Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this incompatible combination will be rejected. Check the BalancingMode enum for the list of possible values.
optional string balancing_mode = 430286217;- Specified by:
hasBalancingModein interfaceBackendOrBuilder- Returns:
- Whether the balancingMode field is set.
-
getBalancingMode
public String getBalancingMode()
Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded. For usage guidelines, see Connection balancing mode. Backends must use compatible balancing modes. For more information, see Supported balancing modes and target capacity settings and Restrictions and guidance for instance groups. Note: Currently, if you use the API to configure incompatible balancing modes, the configuration might be accepted even though it has no impact and is ignored. Specifically, Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this incompatible combination will be rejected. Check the BalancingMode enum for the list of possible values.
optional string balancing_mode = 430286217;- Specified by:
getBalancingModein interfaceBackendOrBuilder- Returns:
- The balancingMode.
-
getBalancingModeBytes
public com.google.protobuf.ByteString getBalancingModeBytes()
Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded. For usage guidelines, see Connection balancing mode. Backends must use compatible balancing modes. For more information, see Supported balancing modes and target capacity settings and Restrictions and guidance for instance groups. Note: Currently, if you use the API to configure incompatible balancing modes, the configuration might be accepted even though it has no impact and is ignored. Specifically, Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this incompatible combination will be rejected. Check the BalancingMode enum for the list of possible values.
optional string balancing_mode = 430286217;- Specified by:
getBalancingModeBytesin interfaceBackendOrBuilder- Returns:
- The bytes for balancingMode.
-
setBalancingMode
public Backend.Builder setBalancingMode(String value)
Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded. For usage guidelines, see Connection balancing mode. Backends must use compatible balancing modes. For more information, see Supported balancing modes and target capacity settings and Restrictions and guidance for instance groups. Note: Currently, if you use the API to configure incompatible balancing modes, the configuration might be accepted even though it has no impact and is ignored. Specifically, Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this incompatible combination will be rejected. Check the BalancingMode enum for the list of possible values.
optional string balancing_mode = 430286217;- Parameters:
value- The balancingMode to set.- Returns:
- This builder for chaining.
-
clearBalancingMode
public Backend.Builder clearBalancingMode()
Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded. For usage guidelines, see Connection balancing mode. Backends must use compatible balancing modes. For more information, see Supported balancing modes and target capacity settings and Restrictions and guidance for instance groups. Note: Currently, if you use the API to configure incompatible balancing modes, the configuration might be accepted even though it has no impact and is ignored. Specifically, Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this incompatible combination will be rejected. Check the BalancingMode enum for the list of possible values.
optional string balancing_mode = 430286217;- Returns:
- This builder for chaining.
-
setBalancingModeBytes
public Backend.Builder setBalancingModeBytes(com.google.protobuf.ByteString value)
Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded. For usage guidelines, see Connection balancing mode. Backends must use compatible balancing modes. For more information, see Supported balancing modes and target capacity settings and Restrictions and guidance for instance groups. Note: Currently, if you use the API to configure incompatible balancing modes, the configuration might be accepted even though it has no impact and is ignored. Specifically, Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this incompatible combination will be rejected. Check the BalancingMode enum for the list of possible values.
optional string balancing_mode = 430286217;- Parameters:
value- The bytes for balancingMode to set.- Returns:
- This builder for chaining.
-
hasCapacityScaler
public boolean hasCapacityScaler()
A multiplier applied to the backend's target capacity of its balancing mode. The default value is 1, which means the group serves up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting larger than 0 and smaller than 0.1. You cannot configure a setting of 0 when there is only one backend attached to the backend service. Not available with backends that don't support using a balancingMode. This includes backends such as global internet NEGs, regional serverless NEGs, and PSC NEGs.
optional float capacity_scaler = 315958157;- Specified by:
hasCapacityScalerin interfaceBackendOrBuilder- Returns:
- Whether the capacityScaler field is set.
-
getCapacityScaler
public float getCapacityScaler()
A multiplier applied to the backend's target capacity of its balancing mode. The default value is 1, which means the group serves up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting larger than 0 and smaller than 0.1. You cannot configure a setting of 0 when there is only one backend attached to the backend service. Not available with backends that don't support using a balancingMode. This includes backends such as global internet NEGs, regional serverless NEGs, and PSC NEGs.
optional float capacity_scaler = 315958157;- Specified by:
getCapacityScalerin interfaceBackendOrBuilder- Returns:
- The capacityScaler.
-
setCapacityScaler
public Backend.Builder setCapacityScaler(float value)
A multiplier applied to the backend's target capacity of its balancing mode. The default value is 1, which means the group serves up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting larger than 0 and smaller than 0.1. You cannot configure a setting of 0 when there is only one backend attached to the backend service. Not available with backends that don't support using a balancingMode. This includes backends such as global internet NEGs, regional serverless NEGs, and PSC NEGs.
optional float capacity_scaler = 315958157;- Parameters:
value- The capacityScaler to set.- Returns:
- This builder for chaining.
-
clearCapacityScaler
public Backend.Builder clearCapacityScaler()
A multiplier applied to the backend's target capacity of its balancing mode. The default value is 1, which means the group serves up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting larger than 0 and smaller than 0.1. You cannot configure a setting of 0 when there is only one backend attached to the backend service. Not available with backends that don't support using a balancingMode. This includes backends such as global internet NEGs, regional serverless NEGs, and PSC NEGs.
optional float capacity_scaler = 315958157;- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceBackendOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceBackendOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceBackendOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Backend.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Backend.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Backend.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasFailover
public boolean hasFailover()
This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
optional bool failover = 138892530;- Specified by:
hasFailoverin interfaceBackendOrBuilder- Returns:
- Whether the failover field is set.
-
getFailover
public boolean getFailover()
This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
optional bool failover = 138892530;- Specified by:
getFailoverin interfaceBackendOrBuilder- Returns:
- The failover.
-
setFailover
public Backend.Builder setFailover(boolean value)
This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
optional bool failover = 138892530;- Parameters:
value- The failover to set.- Returns:
- This builder for chaining.
-
clearFailover
public Backend.Builder clearFailover()
This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
optional bool failover = 138892530;- Returns:
- This builder for chaining.
-
hasGroup
public boolean hasGroup()
The fully-qualified URL of an instance group or network endpoint group (NEG) resource. To determine what types of backends a load balancer supports, see the [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service#backends). You must use the *fully-qualified* URL (starting with https://www.googleapis.com/) to specify the instance group or NEG. Partial URLs are not supported.
optional string group = 98629247;- Specified by:
hasGroupin interfaceBackendOrBuilder- Returns:
- Whether the group field is set.
-
getGroup
public String getGroup()
The fully-qualified URL of an instance group or network endpoint group (NEG) resource. To determine what types of backends a load balancer supports, see the [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service#backends). You must use the *fully-qualified* URL (starting with https://www.googleapis.com/) to specify the instance group or NEG. Partial URLs are not supported.
optional string group = 98629247;- Specified by:
getGroupin interfaceBackendOrBuilder- Returns:
- The group.
-
getGroupBytes
public com.google.protobuf.ByteString getGroupBytes()
The fully-qualified URL of an instance group or network endpoint group (NEG) resource. To determine what types of backends a load balancer supports, see the [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service#backends). You must use the *fully-qualified* URL (starting with https://www.googleapis.com/) to specify the instance group or NEG. Partial URLs are not supported.
optional string group = 98629247;- Specified by:
getGroupBytesin interfaceBackendOrBuilder- Returns:
- The bytes for group.
-
setGroup
public Backend.Builder setGroup(String value)
The fully-qualified URL of an instance group or network endpoint group (NEG) resource. To determine what types of backends a load balancer supports, see the [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service#backends). You must use the *fully-qualified* URL (starting with https://www.googleapis.com/) to specify the instance group or NEG. Partial URLs are not supported.
optional string group = 98629247;- Parameters:
value- The group to set.- Returns:
- This builder for chaining.
-
clearGroup
public Backend.Builder clearGroup()
The fully-qualified URL of an instance group or network endpoint group (NEG) resource. To determine what types of backends a load balancer supports, see the [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service#backends). You must use the *fully-qualified* URL (starting with https://www.googleapis.com/) to specify the instance group or NEG. Partial URLs are not supported.
optional string group = 98629247;- Returns:
- This builder for chaining.
-
setGroupBytes
public Backend.Builder setGroupBytes(com.google.protobuf.ByteString value)
The fully-qualified URL of an instance group or network endpoint group (NEG) resource. To determine what types of backends a load balancer supports, see the [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service#backends). You must use the *fully-qualified* URL (starting with https://www.googleapis.com/) to specify the instance group or NEG. Partial URLs are not supported.
optional string group = 98629247;- Parameters:
value- The bytes for group to set.- Returns:
- This builder for chaining.
-
hasMaxConnections
public boolean hasMaxConnections()
Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE.
optional int32 max_connections = 110652154;- Specified by:
hasMaxConnectionsin interfaceBackendOrBuilder- Returns:
- Whether the maxConnections field is set.
-
getMaxConnections
public int getMaxConnections()
Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE.
optional int32 max_connections = 110652154;- Specified by:
getMaxConnectionsin interfaceBackendOrBuilder- Returns:
- The maxConnections.
-
setMaxConnections
public Backend.Builder setMaxConnections(int value)
Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE.
optional int32 max_connections = 110652154;- Parameters:
value- The maxConnections to set.- Returns:
- This builder for chaining.
-
clearMaxConnections
public Backend.Builder clearMaxConnections()
Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE.
optional int32 max_connections = 110652154;- Returns:
- This builder for chaining.
-
hasMaxConnectionsPerEndpoint
public boolean hasMaxConnectionsPerEndpoint()
Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE.
optional int32 max_connections_per_endpoint = 216904604;- Specified by:
hasMaxConnectionsPerEndpointin interfaceBackendOrBuilder- Returns:
- Whether the maxConnectionsPerEndpoint field is set.
-
getMaxConnectionsPerEndpoint
public int getMaxConnectionsPerEndpoint()
Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE.
optional int32 max_connections_per_endpoint = 216904604;- Specified by:
getMaxConnectionsPerEndpointin interfaceBackendOrBuilder- Returns:
- The maxConnectionsPerEndpoint.
-
setMaxConnectionsPerEndpoint
public Backend.Builder setMaxConnectionsPerEndpoint(int value)
Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE.
optional int32 max_connections_per_endpoint = 216904604;- Parameters:
value- The maxConnectionsPerEndpoint to set.- Returns:
- This builder for chaining.
-
clearMaxConnectionsPerEndpoint
public Backend.Builder clearMaxConnectionsPerEndpoint()
Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE.
optional int32 max_connections_per_endpoint = 216904604;- Returns:
- This builder for chaining.
-
hasMaxConnectionsPerInstance
public boolean hasMaxConnectionsPerInstance()
Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE.
optional int32 max_connections_per_instance = 104671900;- Specified by:
hasMaxConnectionsPerInstancein interfaceBackendOrBuilder- Returns:
- Whether the maxConnectionsPerInstance field is set.
-
getMaxConnectionsPerInstance
public int getMaxConnectionsPerInstance()
Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE.
optional int32 max_connections_per_instance = 104671900;- Specified by:
getMaxConnectionsPerInstancein interfaceBackendOrBuilder- Returns:
- The maxConnectionsPerInstance.
-
setMaxConnectionsPerInstance
public Backend.Builder setMaxConnectionsPerInstance(int value)
Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE.
optional int32 max_connections_per_instance = 104671900;- Parameters:
value- The maxConnectionsPerInstance to set.- Returns:
- This builder for chaining.
-
clearMaxConnectionsPerInstance
public Backend.Builder clearMaxConnectionsPerInstance()
Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE.
optional int32 max_connections_per_instance = 104671900;- Returns:
- This builder for chaining.
-
hasMaxRate
public boolean hasMaxRate()
Defines a maximum number of HTTP requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION.
optional int32 max_rate = 408035035;- Specified by:
hasMaxRatein interfaceBackendOrBuilder- Returns:
- Whether the maxRate field is set.
-
getMaxRate
public int getMaxRate()
Defines a maximum number of HTTP requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION.
optional int32 max_rate = 408035035;- Specified by:
getMaxRatein interfaceBackendOrBuilder- Returns:
- The maxRate.
-
setMaxRate
public Backend.Builder setMaxRate(int value)
Defines a maximum number of HTTP requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION.
optional int32 max_rate = 408035035;- Parameters:
value- The maxRate to set.- Returns:
- This builder for chaining.
-
clearMaxRate
public Backend.Builder clearMaxRate()
Defines a maximum number of HTTP requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION.
optional int32 max_rate = 408035035;- Returns:
- This builder for chaining.
-
hasMaxRatePerEndpoint
public boolean hasMaxRatePerEndpoint()
Defines a maximum target for requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION.
optional float max_rate_per_endpoint = 129832283;- Specified by:
hasMaxRatePerEndpointin interfaceBackendOrBuilder- Returns:
- Whether the maxRatePerEndpoint field is set.
-
getMaxRatePerEndpoint
public float getMaxRatePerEndpoint()
Defines a maximum target for requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION.
optional float max_rate_per_endpoint = 129832283;- Specified by:
getMaxRatePerEndpointin interfaceBackendOrBuilder- Returns:
- The maxRatePerEndpoint.
-
setMaxRatePerEndpoint
public Backend.Builder setMaxRatePerEndpoint(float value)
Defines a maximum target for requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION.
optional float max_rate_per_endpoint = 129832283;- Parameters:
value- The maxRatePerEndpoint to set.- Returns:
- This builder for chaining.
-
clearMaxRatePerEndpoint
public Backend.Builder clearMaxRatePerEndpoint()
Defines a maximum target for requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION.
optional float max_rate_per_endpoint = 129832283;- Returns:
- This builder for chaining.
-
hasMaxRatePerInstance
public boolean hasMaxRatePerInstance()
Defines a maximum target for requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION.
optional float max_rate_per_instance = 17599579;- Specified by:
hasMaxRatePerInstancein interfaceBackendOrBuilder- Returns:
- Whether the maxRatePerInstance field is set.
-
getMaxRatePerInstance
public float getMaxRatePerInstance()
Defines a maximum target for requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION.
optional float max_rate_per_instance = 17599579;- Specified by:
getMaxRatePerInstancein interfaceBackendOrBuilder- Returns:
- The maxRatePerInstance.
-
setMaxRatePerInstance
public Backend.Builder setMaxRatePerInstance(float value)
Defines a maximum target for requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION.
optional float max_rate_per_instance = 17599579;- Parameters:
value- The maxRatePerInstance to set.- Returns:
- This builder for chaining.
-
clearMaxRatePerInstance
public Backend.Builder clearMaxRatePerInstance()
Defines a maximum target for requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION.
optional float max_rate_per_instance = 17599579;- Returns:
- This builder for chaining.
-
hasMaxUtilization
public boolean hasMaxUtilization()
Optional parameter to define a target capacity for the UTILIZATION balancing mode. The valid range is [0.0, 1.0]. For usage guidelines, see Utilization balancing mode.
optional float max_utilization = 148192199;- Specified by:
hasMaxUtilizationin interfaceBackendOrBuilder- Returns:
- Whether the maxUtilization field is set.
-
getMaxUtilization
public float getMaxUtilization()
Optional parameter to define a target capacity for the UTILIZATION balancing mode. The valid range is [0.0, 1.0]. For usage guidelines, see Utilization balancing mode.
optional float max_utilization = 148192199;- Specified by:
getMaxUtilizationin interfaceBackendOrBuilder- Returns:
- The maxUtilization.
-
setMaxUtilization
public Backend.Builder setMaxUtilization(float value)
Optional parameter to define a target capacity for the UTILIZATION balancing mode. The valid range is [0.0, 1.0]. For usage guidelines, see Utilization balancing mode.
optional float max_utilization = 148192199;- Parameters:
value- The maxUtilization to set.- Returns:
- This builder for chaining.
-
clearMaxUtilization
public Backend.Builder clearMaxUtilization()
Optional parameter to define a target capacity for the UTILIZATION balancing mode. The valid range is [0.0, 1.0]. For usage guidelines, see Utilization balancing mode.
optional float max_utilization = 148192199;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Backend.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Backend.Builder>
-
mergeUnknownFields
public final Backend.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Backend.Builder>
-
-