Package com.google.cloud.compute.v1
Class TargetPool.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TargetPool.Builder>
-
- com.google.cloud.compute.v1.TargetPool.Builder
-
- All Implemented Interfaces:
TargetPoolOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- TargetPool
public static final class TargetPool.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TargetPool.Builder> implements TargetPoolOrBuilder
Represents a Target Pool resource. Target pools are used for network TCP/UDP load balancing. A target pool references member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup target pool. For more information, read Using target pools.
Protobuf typegoogle.cloud.compute.v1.TargetPool
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TargetPool.Builder
addAllHealthChecks(Iterable<String> values)
The URL of the HttpHealthCheck resource.TargetPool.Builder
addAllInstances(Iterable<String> values)
A list of resource URLs to the virtual machine instances serving this pool.TargetPool.Builder
addHealthChecks(String value)
The URL of the HttpHealthCheck resource.TargetPool.Builder
addHealthChecksBytes(com.google.protobuf.ByteString value)
The URL of the HttpHealthCheck resource.TargetPool.Builder
addInstances(String value)
A list of resource URLs to the virtual machine instances serving this pool.TargetPool.Builder
addInstancesBytes(com.google.protobuf.ByteString value)
A list of resource URLs to the virtual machine instances serving this pool.TargetPool.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TargetPool
build()
TargetPool
buildPartial()
TargetPool.Builder
clear()
TargetPool.Builder
clearBackupPool()
The server-defined URL for the resource.TargetPool.Builder
clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.TargetPool.Builder
clearDescription()
An optional description of this resource.TargetPool.Builder
clearFailoverRatio()
This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool).TargetPool.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
TargetPool.Builder
clearHealthChecks()
The URL of the HttpHealthCheck resource.TargetPool.Builder
clearId()
[Output Only] The unique identifier for the resource.TargetPool.Builder
clearInstances()
A list of resource URLs to the virtual machine instances serving this pool.TargetPool.Builder
clearKind()
[Output Only] Type of the resource.TargetPool.Builder
clearName()
Name of the resource.TargetPool.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
TargetPool.Builder
clearRegion()
[Output Only] URL of the region where the target pool resides.TargetPool.Builder
clearSelfLink()
[Output Only] Server-defined URL for the resource.TargetPool.Builder
clearSessionAffinity()
Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool.TargetPool.Builder
clone()
String
getBackupPool()
The server-defined URL for the resource.com.google.protobuf.ByteString
getBackupPoolBytes()
The server-defined URL for the resource.String
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteString
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.TargetPool
getDefaultInstanceForType()
String
getDescription()
An optional description of this resource.com.google.protobuf.ByteString
getDescriptionBytes()
An optional description of this resource.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
float
getFailoverRatio()
This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool).String
getHealthChecks(int index)
The URL of the HttpHealthCheck resource.com.google.protobuf.ByteString
getHealthChecksBytes(int index)
The URL of the HttpHealthCheck resource.int
getHealthChecksCount()
The URL of the HttpHealthCheck resource.com.google.protobuf.ProtocolStringList
getHealthChecksList()
The URL of the HttpHealthCheck resource.long
getId()
[Output Only] The unique identifier for the resource.String
getInstances(int index)
A list of resource URLs to the virtual machine instances serving this pool.com.google.protobuf.ByteString
getInstancesBytes(int index)
A list of resource URLs to the virtual machine instances serving this pool.int
getInstancesCount()
A list of resource URLs to the virtual machine instances serving this pool.com.google.protobuf.ProtocolStringList
getInstancesList()
A list of resource URLs to the virtual machine instances serving this pool.String
getKind()
[Output Only] Type of the resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of the resource.String
getName()
Name of the resource.com.google.protobuf.ByteString
getNameBytes()
Name of the resource.String
getRegion()
[Output Only] URL of the region where the target pool resides.com.google.protobuf.ByteString
getRegionBytes()
[Output Only] URL of the region where the target pool resides.String
getSelfLink()
[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteString
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.String
getSessionAffinity()
Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool.com.google.protobuf.ByteString
getSessionAffinityBytes()
Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool.boolean
hasBackupPool()
The server-defined URL for the resource.boolean
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.boolean
hasDescription()
An optional description of this resource.boolean
hasFailoverRatio()
This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool).boolean
hasId()
[Output Only] The unique identifier for the resource.boolean
hasKind()
[Output Only] Type of the resource.boolean
hasName()
Name of the resource.boolean
hasRegion()
[Output Only] URL of the region where the target pool resides.boolean
hasSelfLink()
[Output Only] Server-defined URL for the resource.boolean
hasSessionAffinity()
Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
TargetPool.Builder
mergeFrom(TargetPool other)
TargetPool.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TargetPool.Builder
mergeFrom(com.google.protobuf.Message other)
TargetPool.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TargetPool.Builder
setBackupPool(String value)
The server-defined URL for the resource.TargetPool.Builder
setBackupPoolBytes(com.google.protobuf.ByteString value)
The server-defined URL for the resource.TargetPool.Builder
setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.TargetPool.Builder
setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.TargetPool.Builder
setDescription(String value)
An optional description of this resource.TargetPool.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource.TargetPool.Builder
setFailoverRatio(float value)
This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool).TargetPool.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TargetPool.Builder
setHealthChecks(int index, String value)
The URL of the HttpHealthCheck resource.TargetPool.Builder
setId(long value)
[Output Only] The unique identifier for the resource.TargetPool.Builder
setInstances(int index, String value)
A list of resource URLs to the virtual machine instances serving this pool.TargetPool.Builder
setKind(String value)
[Output Only] Type of the resource.TargetPool.Builder
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource.TargetPool.Builder
setName(String value)
Name of the resource.TargetPool.Builder
setNameBytes(com.google.protobuf.ByteString value)
Name of the resource.TargetPool.Builder
setRegion(String value)
[Output Only] URL of the region where the target pool resides.TargetPool.Builder
setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the region where the target pool resides.TargetPool.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
TargetPool.Builder
setSelfLink(String value)
[Output Only] Server-defined URL for the resource.TargetPool.Builder
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.TargetPool.Builder
setSessionAffinity(String value)
Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool.TargetPool.Builder
setSessionAffinityBytes(com.google.protobuf.ByteString value)
Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool.TargetPool.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<TargetPool.Builder>
-
clear
public TargetPool.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<TargetPool.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<TargetPool.Builder>
-
getDefaultInstanceForType
public TargetPool getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TargetPool build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TargetPool buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TargetPool.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<TargetPool.Builder>
-
setField
public TargetPool.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<TargetPool.Builder>
-
clearField
public TargetPool.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<TargetPool.Builder>
-
clearOneof
public TargetPool.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<TargetPool.Builder>
-
setRepeatedField
public TargetPool.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<TargetPool.Builder>
-
addRepeatedField
public TargetPool.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<TargetPool.Builder>
-
mergeFrom
public TargetPool.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TargetPool.Builder>
-
mergeFrom
public TargetPool.Builder mergeFrom(TargetPool other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<TargetPool.Builder>
-
mergeFrom
public TargetPool.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<TargetPool.Builder>
- Throws:
IOException
-
hasBackupPool
public boolean hasBackupPool()
The server-defined URL for the resource. This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1]. backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.
optional string backup_pool = 45884537;
- Specified by:
hasBackupPool
in interfaceTargetPoolOrBuilder
- Returns:
- Whether the backupPool field is set.
-
getBackupPool
public String getBackupPool()
The server-defined URL for the resource. This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1]. backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.
optional string backup_pool = 45884537;
- Specified by:
getBackupPool
in interfaceTargetPoolOrBuilder
- Returns:
- The backupPool.
-
getBackupPoolBytes
public com.google.protobuf.ByteString getBackupPoolBytes()
The server-defined URL for the resource. This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1]. backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.
optional string backup_pool = 45884537;
- Specified by:
getBackupPoolBytes
in interfaceTargetPoolOrBuilder
- Returns:
- The bytes for backupPool.
-
setBackupPool
public TargetPool.Builder setBackupPool(String value)
The server-defined URL for the resource. This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1]. backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.
optional string backup_pool = 45884537;
- Parameters:
value
- The backupPool to set.- Returns:
- This builder for chaining.
-
clearBackupPool
public TargetPool.Builder clearBackupPool()
The server-defined URL for the resource. This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1]. backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.
optional string backup_pool = 45884537;
- Returns:
- This builder for chaining.
-
setBackupPoolBytes
public TargetPool.Builder setBackupPoolBytes(com.google.protobuf.ByteString value)
The server-defined URL for the resource. This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1]. backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.
optional string backup_pool = 45884537;
- Parameters:
value
- The bytes for backupPool to set.- Returns:
- This builder for chaining.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
hasCreationTimestamp
in interfaceTargetPoolOrBuilder
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestamp
in interfaceTargetPoolOrBuilder
- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestampBytes
in interfaceTargetPoolOrBuilder
- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
public TargetPool.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
public TargetPool.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
public TargetPool.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The bytes for creationTimestamp to set.- 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:
hasDescription
in interfaceTargetPoolOrBuilder
- 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:
getDescription
in interfaceTargetPoolOrBuilder
- 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:
getDescriptionBytes
in interfaceTargetPoolOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public TargetPool.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 TargetPool.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 TargetPool.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.
-
hasFailoverRatio
public boolean hasFailoverRatio()
This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1]. If set, backupPool must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.
optional float failover_ratio = 212667006;
- Specified by:
hasFailoverRatio
in interfaceTargetPoolOrBuilder
- Returns:
- Whether the failoverRatio field is set.
-
getFailoverRatio
public float getFailoverRatio()
This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1]. If set, backupPool must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.
optional float failover_ratio = 212667006;
- Specified by:
getFailoverRatio
in interfaceTargetPoolOrBuilder
- Returns:
- The failoverRatio.
-
setFailoverRatio
public TargetPool.Builder setFailoverRatio(float value)
This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1]. If set, backupPool must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.
optional float failover_ratio = 212667006;
- Parameters:
value
- The failoverRatio to set.- Returns:
- This builder for chaining.
-
clearFailoverRatio
public TargetPool.Builder clearFailoverRatio()
This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1]. If set, backupPool must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.
optional float failover_ratio = 212667006;
- Returns:
- This builder for chaining.
-
getHealthChecksList
public com.google.protobuf.ProtocolStringList getHealthChecksList()
The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified.
repeated string health_checks = 448370606;
- Specified by:
getHealthChecksList
in interfaceTargetPoolOrBuilder
- Returns:
- A list containing the healthChecks.
-
getHealthChecksCount
public int getHealthChecksCount()
The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified.
repeated string health_checks = 448370606;
- Specified by:
getHealthChecksCount
in interfaceTargetPoolOrBuilder
- Returns:
- The count of healthChecks.
-
getHealthChecks
public String getHealthChecks(int index)
The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified.
repeated string health_checks = 448370606;
- Specified by:
getHealthChecks
in interfaceTargetPoolOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The healthChecks at the given index.
-
getHealthChecksBytes
public com.google.protobuf.ByteString getHealthChecksBytes(int index)
The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified.
repeated string health_checks = 448370606;
- Specified by:
getHealthChecksBytes
in interfaceTargetPoolOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the healthChecks at the given index.
-
setHealthChecks
public TargetPool.Builder setHealthChecks(int index, String value)
The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified.
repeated string health_checks = 448370606;
- Parameters:
index
- The index to set the value at.value
- The healthChecks to set.- Returns:
- This builder for chaining.
-
addHealthChecks
public TargetPool.Builder addHealthChecks(String value)
The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified.
repeated string health_checks = 448370606;
- Parameters:
value
- The healthChecks to add.- Returns:
- This builder for chaining.
-
addAllHealthChecks
public TargetPool.Builder addAllHealthChecks(Iterable<String> values)
The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified.
repeated string health_checks = 448370606;
- Parameters:
values
- The healthChecks to add.- Returns:
- This builder for chaining.
-
clearHealthChecks
public TargetPool.Builder clearHealthChecks()
The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified.
repeated string health_checks = 448370606;
- Returns:
- This builder for chaining.
-
addHealthChecksBytes
public TargetPool.Builder addHealthChecksBytes(com.google.protobuf.ByteString value)
The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified.
repeated string health_checks = 448370606;
- Parameters:
value
- The bytes of the healthChecks to add.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
hasId
in interfaceTargetPoolOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
getId
in interfaceTargetPoolOrBuilder
- Returns:
- The id.
-
setId
public TargetPool.Builder setId(long value)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
public TargetPool.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Returns:
- This builder for chaining.
-
getInstancesList
public com.google.protobuf.ProtocolStringList getInstancesList()
A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool.
repeated string instances = 29097598;
- Specified by:
getInstancesList
in interfaceTargetPoolOrBuilder
- Returns:
- A list containing the instances.
-
getInstancesCount
public int getInstancesCount()
A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool.
repeated string instances = 29097598;
- Specified by:
getInstancesCount
in interfaceTargetPoolOrBuilder
- Returns:
- The count of instances.
-
getInstances
public String getInstances(int index)
A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool.
repeated string instances = 29097598;
- Specified by:
getInstances
in interfaceTargetPoolOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The instances at the given index.
-
getInstancesBytes
public com.google.protobuf.ByteString getInstancesBytes(int index)
A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool.
repeated string instances = 29097598;
- Specified by:
getInstancesBytes
in interfaceTargetPoolOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the instances at the given index.
-
setInstances
public TargetPool.Builder setInstances(int index, String value)
A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool.
repeated string instances = 29097598;
- Parameters:
index
- The index to set the value at.value
- The instances to set.- Returns:
- This builder for chaining.
-
addInstances
public TargetPool.Builder addInstances(String value)
A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool.
repeated string instances = 29097598;
- Parameters:
value
- The instances to add.- Returns:
- This builder for chaining.
-
addAllInstances
public TargetPool.Builder addAllInstances(Iterable<String> values)
A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool.
repeated string instances = 29097598;
- Parameters:
values
- The instances to add.- Returns:
- This builder for chaining.
-
clearInstances
public TargetPool.Builder clearInstances()
A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool.
repeated string instances = 29097598;
- Returns:
- This builder for chaining.
-
addInstancesBytes
public TargetPool.Builder addInstancesBytes(com.google.protobuf.ByteString value)
A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool.
repeated string instances = 29097598;
- Parameters:
value
- The bytes of the instances to add.- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()
[Output Only] Type of the resource. Always compute#targetPool for target pools.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceTargetPoolOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#targetPool for target pools.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceTargetPoolOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#targetPool for target pools.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceTargetPoolOrBuilder
- Returns:
- The bytes for kind.
-
setKind
public TargetPool.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#targetPool for target pools.
optional string kind = 3292052;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public TargetPool.Builder clearKind()
[Output Only] Type of the resource. Always compute#targetPool for target pools.
optional string kind = 3292052;
- Returns:
- This builder for chaining.
-
setKindBytes
public TargetPool.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#targetPool for target pools.
optional string kind = 3292052;
- Parameters:
value
- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
- Specified by:
hasName
in interfaceTargetPoolOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public String getName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
- Specified by:
getName
in interfaceTargetPoolOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
- Specified by:
getNameBytes
in interfaceTargetPoolOrBuilder
- Returns:
- The bytes for name.
-
setName
public TargetPool.Builder setName(String value)
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public TargetPool.Builder clearName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
- Returns:
- This builder for chaining.
-
setNameBytes
public TargetPool.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasRegion
public boolean hasRegion()
[Output Only] URL of the region where the target pool resides.
optional string region = 138946292;
- Specified by:
hasRegion
in interfaceTargetPoolOrBuilder
- Returns:
- Whether the region field is set.
-
getRegion
public String getRegion()
[Output Only] URL of the region where the target pool resides.
optional string region = 138946292;
- Specified by:
getRegion
in interfaceTargetPoolOrBuilder
- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()
[Output Only] URL of the region where the target pool resides.
optional string region = 138946292;
- Specified by:
getRegionBytes
in interfaceTargetPoolOrBuilder
- Returns:
- The bytes for region.
-
setRegion
public TargetPool.Builder setRegion(String value)
[Output Only] URL of the region where the target pool resides.
optional string region = 138946292;
- Parameters:
value
- The region to set.- Returns:
- This builder for chaining.
-
clearRegion
public TargetPool.Builder clearRegion()
[Output Only] URL of the region where the target pool resides.
optional string region = 138946292;
- Returns:
- This builder for chaining.
-
setRegionBytes
public TargetPool.Builder setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the region where the target pool resides.
optional string region = 138946292;
- Parameters:
value
- The bytes for region to set.- Returns:
- This builder for chaining.
-
hasSelfLink
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
hasSelfLink
in interfaceTargetPoolOrBuilder
- Returns:
- Whether the selfLink field is set.
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLink
in interfaceTargetPoolOrBuilder
- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLinkBytes
in interfaceTargetPoolOrBuilder
- Returns:
- The bytes for selfLink.
-
setSelfLink
public TargetPool.Builder setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Parameters:
value
- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
public TargetPool.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Returns:
- This builder for chaining.
-
setSelfLinkBytes
public TargetPool.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Parameters:
value
- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
hasSessionAffinity
public boolean hasSessionAffinity()
Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy. Check the SessionAffinity enum for the list of possible values.
optional string session_affinity = 463888561;
- Specified by:
hasSessionAffinity
in interfaceTargetPoolOrBuilder
- Returns:
- Whether the sessionAffinity field is set.
-
getSessionAffinity
public String getSessionAffinity()
Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy. Check the SessionAffinity enum for the list of possible values.
optional string session_affinity = 463888561;
- Specified by:
getSessionAffinity
in interfaceTargetPoolOrBuilder
- Returns:
- The sessionAffinity.
-
getSessionAffinityBytes
public com.google.protobuf.ByteString getSessionAffinityBytes()
Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy. Check the SessionAffinity enum for the list of possible values.
optional string session_affinity = 463888561;
- Specified by:
getSessionAffinityBytes
in interfaceTargetPoolOrBuilder
- Returns:
- The bytes for sessionAffinity.
-
setSessionAffinity
public TargetPool.Builder setSessionAffinity(String value)
Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy. Check the SessionAffinity enum for the list of possible values.
optional string session_affinity = 463888561;
- Parameters:
value
- The sessionAffinity to set.- Returns:
- This builder for chaining.
-
clearSessionAffinity
public TargetPool.Builder clearSessionAffinity()
Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy. Check the SessionAffinity enum for the list of possible values.
optional string session_affinity = 463888561;
- Returns:
- This builder for chaining.
-
setSessionAffinityBytes
public TargetPool.Builder setSessionAffinityBytes(com.google.protobuf.ByteString value)
Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy. Check the SessionAffinity enum for the list of possible values.
optional string session_affinity = 463888561;
- Parameters:
value
- The bytes for sessionAffinity to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final TargetPool.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TargetPool.Builder>
-
mergeUnknownFields
public final TargetPool.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TargetPool.Builder>
-
-