Package com.google.cloud.compute.v1
Class TargetPool
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.TargetPool
- All Implemented Interfaces:
TargetPoolOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class TargetPool
extends com.google.protobuf.GeneratedMessage
implements TargetPoolOrBuilder
Represents a Target Pool resource. Target pools are used with external passthrough Network Load Balancers. A target pool references member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup target pool. For more information, readUsing target pools.Protobuf type
google.cloud.compute.v1.TargetPool- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a Target Pool resource.static enumSession affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe server-defined URL for the resource.com.google.protobuf.ByteStringThe server-defined URL for the resource.Output only.com.google.protobuf.ByteStringOutput only.static TargetPoolAn optional description of this resource.com.google.protobuf.ByteStringAn optional description of this resource.static final com.google.protobuf.Descriptors.DescriptorfloatThis 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).getHealthChecks(int index) The URL of the HttpHealthCheck resource.com.google.protobuf.ByteStringgetHealthChecksBytes(int index) The URL of the HttpHealthCheck resource.intThe URL of the HttpHealthCheck resource.com.google.protobuf.ProtocolStringListThe URL of the HttpHealthCheck resource.longgetId()[Output Only] The unique identifier for the resource.getInstances(int index) A list of resource URLs to the virtual machine instances serving this pool.com.google.protobuf.ByteStringgetInstancesBytes(int index) A list of resource URLs to the virtual machine instances serving this pool.intA list of resource URLs to the virtual machine instances serving this pool.com.google.protobuf.ProtocolStringListA list of resource URLs to the virtual machine instances serving this pool.getKind()Output only.com.google.protobuf.ByteStringOutput only.getName()Name of the resource.com.google.protobuf.ByteStringName of the resource.com.google.protobuf.Parser<TargetPool>Output only.com.google.protobuf.ByteStringOutput only.[Output Only] The resource URL for the security policy associated with this target pool.com.google.protobuf.ByteString[Output Only] The resource URL for the security policy associated with this target pool.[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteString[Output Only] Server-defined URL for the resource.intSession 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.ByteStringSession affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool.booleanThe server-defined URL for the resource.booleanOutput only.booleanAn optional description of this resource.booleanThis 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).inthashCode()booleanhasId()[Output Only] The unique identifier for the resource.booleanhasKind()Output only.booleanhasName()Name of the resource.booleanOutput only.boolean[Output Only] The resource URL for the security policy associated with this target pool.boolean[Output Only] Server-defined URL for the resource.booleanSession 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.GeneratedMessage.FieldAccessorTablefinal booleanstatic TargetPool.Builderstatic TargetPool.BuildernewBuilder(TargetPool prototype) protected TargetPool.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static TargetPoolparseDelimitedFrom(InputStream input) static TargetPoolparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetPoolparseFrom(byte[] data) static TargetPoolparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetPoolparseFrom(com.google.protobuf.ByteString data) static TargetPoolparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetPoolparseFrom(com.google.protobuf.CodedInputStream input) static TargetPoolparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetPoolparseFrom(InputStream input) static TargetPoolparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetPoolparseFrom(ByteBuffer data) static TargetPoolparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TargetPool>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
BACKUP_POOL_FIELD_NUMBER
public static final int BACKUP_POOL_FIELD_NUMBER- See Also:
-
CREATION_TIMESTAMP_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
FAILOVER_RATIO_FIELD_NUMBER
public static final int FAILOVER_RATIO_FIELD_NUMBER- See Also:
-
HEALTH_CHECKS_FIELD_NUMBER
public static final int HEALTH_CHECKS_FIELD_NUMBER- See Also:
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
INSTANCES_FIELD_NUMBER
public static final int INSTANCES_FIELD_NUMBER- See Also:
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
REGION_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER- See Also:
-
SECURITY_POLICY_FIELD_NUMBER
public static final int SECURITY_POLICY_FIELD_NUMBER- See Also:
-
SELF_LINK_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER- See Also:
-
SESSION_AFFINITY_FIELD_NUMBER
public static final int SESSION_AFFINITY_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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 belowfailoverRatio, 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:
hasBackupPoolin interfaceTargetPoolOrBuilder- Returns:
- Whether the backupPool field is set.
-
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 belowfailoverRatio, 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:
getBackupPoolin 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 belowfailoverRatio, 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:
getBackupPoolBytesin interfaceTargetPoolOrBuilder- Returns:
- The bytes for backupPool.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceTargetPoolOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceTargetPoolOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceTargetPoolOrBuilder- Returns:
- The bytes for creationTimestamp.
-
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 interfaceTargetPoolOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionin 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:
getDescriptionBytesin interfaceTargetPoolOrBuilder- Returns:
- The bytes for description.
-
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:
hasFailoverRatioin 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:
getFailoverRatioin interfaceTargetPoolOrBuilder- Returns:
- The failoverRatio.
-
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:
getHealthChecksListin 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:
getHealthChecksCountin interfaceTargetPoolOrBuilder- Returns:
- The count of healthChecks.
-
getHealthChecks
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:
getHealthChecksin 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:
getHealthChecksBytesin interfaceTargetPoolOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the healthChecks at the given index.
-
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:
hasIdin 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:
getIdin interfaceTargetPoolOrBuilder- Returns:
- The id.
-
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:
getInstancesListin 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:
getInstancesCountin interfaceTargetPoolOrBuilder- Returns:
- The count of instances.
-
getInstances
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:
getInstancesin 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:
getInstancesBytesin interfaceTargetPoolOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the instances at the given index.
-
hasKind
public boolean hasKind()Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools.
optional string kind = 3292052;- Specified by:
hasKindin interfaceTargetPoolOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools.
optional string kind = 3292052;- Specified by:
getKindin interfaceTargetPoolOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceTargetPoolOrBuilder- Returns:
- The bytes for kind.
-
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 withRFC1035. 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:
hasNamein interfaceTargetPoolOrBuilder- Returns:
- Whether the name field is set.
-
getName
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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:
getNamein 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 withRFC1035. 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:
getNameBytesin interfaceTargetPoolOrBuilder- Returns:
- The bytes for name.
-
hasRegion
public boolean hasRegion()Output only. [Output Only] URL of the region where the target pool resides.
optional string region = 138946292;- Specified by:
hasRegionin interfaceTargetPoolOrBuilder- Returns:
- Whether the region field is set.
-
getRegion
Output only. [Output Only] URL of the region where the target pool resides.
optional string region = 138946292;- Specified by:
getRegionin interfaceTargetPoolOrBuilder- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()Output only. [Output Only] URL of the region where the target pool resides.
optional string region = 138946292;- Specified by:
getRegionBytesin interfaceTargetPoolOrBuilder- Returns:
- The bytes for region.
-
hasSecurityPolicy
public boolean hasSecurityPolicy()[Output Only] The resource URL for the security policy associated with this target pool.
optional string security_policy = 171082513;- Specified by:
hasSecurityPolicyin interfaceTargetPoolOrBuilder- Returns:
- Whether the securityPolicy field is set.
-
getSecurityPolicy
[Output Only] The resource URL for the security policy associated with this target pool.
optional string security_policy = 171082513;- Specified by:
getSecurityPolicyin interfaceTargetPoolOrBuilder- Returns:
- The securityPolicy.
-
getSecurityPolicyBytes
public com.google.protobuf.ByteString getSecurityPolicyBytes()[Output Only] The resource URL for the security policy associated with this target pool.
optional string security_policy = 171082513;- Specified by:
getSecurityPolicyBytesin interfaceTargetPoolOrBuilder- Returns:
- The bytes for securityPolicy.
-
hasSelfLink
public boolean hasSelfLink()[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
hasSelfLinkin interfaceTargetPoolOrBuilder- Returns:
- Whether the selfLink field is set.
-
getSelfLink
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkin 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:
getSelfLinkBytesin interfaceTargetPoolOrBuilder- Returns:
- The bytes for selfLink.
-
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:
hasSessionAffinityin interfaceTargetPoolOrBuilder- Returns:
- Whether the sessionAffinity field is set.
-
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:
getSessionAffinityin 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:
getSessionAffinityBytesin interfaceTargetPoolOrBuilder- Returns:
- The bytes for sessionAffinity.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TargetPool parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TargetPool parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TargetPool parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TargetPool parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TargetPool parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TargetPool parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TargetPool parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TargetPool parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TargetPool parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TargetPool.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-