Class BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity (1.93.0)

public final class BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity extends GeneratedMessage implements BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinityOrBuilder

Protobuf type google.cloud.compute.v1.BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity

Static Fields

SPILLOVER_FIELD_NUMBER

public static final int SPILLOVER_FIELD_NUMBER
Field Value
Type Description
int

SPILLOVER_RATIO_FIELD_NUMBER

public static final int SPILLOVER_RATIO_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity getDefaultInstance()
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder newBuilder()
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder

newBuilder(BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity prototype)

public static BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder newBuilder(BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity prototype)
Parameter
Name Description
prototype BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder

parseDelimitedFrom(InputStream input)

public static BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity> parser()
Returns
Type Description
Parser<BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity getDefaultInstanceForType()
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity

getParserForType()

public Parser<BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity> getParserForType()
Returns
Type Description
Parser<BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSpillover()

public String getSpillover()

This field indicates whether zonal affinity is enabled or not. The possible values are:

  • ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer distributes new connections to all healthy backend endpoints across all zones.
  • ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes new connections to all healthy backend endpoints in the local zone only. If there are no healthy backend endpoints in the local zone, the load balancer distributes new connections to all backend endpoints in the local zone.
  • ZONAL_AFFINITY_SPILL_CROSS_ZONE: Zonal Affinity is enabled. The load balancer distributes new connections to all healthy backend endpoints in the local zone only. If there aren't enough healthy backend endpoints in the local zone, the load balancer distributes new connections to all healthy backend endpoints across all zones. Check the Spillover enum for the list of possible values.

optional string spillover = 505501440;

Returns
Type Description
String

The spillover.

getSpilloverBytes()

public ByteString getSpilloverBytes()

This field indicates whether zonal affinity is enabled or not. The possible values are:

  • ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer distributes new connections to all healthy backend endpoints across all zones.
  • ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes new connections to all healthy backend endpoints in the local zone only. If there are no healthy backend endpoints in the local zone, the load balancer distributes new connections to all backend endpoints in the local zone.
  • ZONAL_AFFINITY_SPILL_CROSS_ZONE: Zonal Affinity is enabled. The load balancer distributes new connections to all healthy backend endpoints in the local zone only. If there aren't enough healthy backend endpoints in the local zone, the load balancer distributes new connections to all healthy backend endpoints across all zones. Check the Spillover enum for the list of possible values.

optional string spillover = 505501440;

Returns
Type Description
ByteString

The bytes for spillover.

getSpilloverRatio()

public float getSpilloverRatio()

The value of the field must be in [0, 1]. When the ratio of the count of healthy backend endpoints in a zone to the count of backend endpoints in that same zone is equal to or above this threshold, the load balancer distributes new connections to all healthy endpoints in the local zone only. When the ratio of the count of healthy backend endpoints in a zone to the count of backend endpoints in that same zone is below this threshold, the load balancer distributes all new connections to all healthy endpoints across all zones.

optional float spillover_ratio = 135580172;

Returns
Type Description
float

The spilloverRatio.

hasSpillover()

public boolean hasSpillover()

This field indicates whether zonal affinity is enabled or not. The possible values are:

  • ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer distributes new connections to all healthy backend endpoints across all zones.
  • ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes new connections to all healthy backend endpoints in the local zone only. If there are no healthy backend endpoints in the local zone, the load balancer distributes new connections to all backend endpoints in the local zone.
  • ZONAL_AFFINITY_SPILL_CROSS_ZONE: Zonal Affinity is enabled. The load balancer distributes new connections to all healthy backend endpoints in the local zone only. If there aren't enough healthy backend endpoints in the local zone, the load balancer distributes new connections to all healthy backend endpoints across all zones. Check the Spillover enum for the list of possible values.

optional string spillover = 505501440;

Returns
Type Description
boolean

Whether the spillover field is set.

hasSpilloverRatio()

public boolean hasSpilloverRatio()

The value of the field must be in [0, 1]. When the ratio of the count of healthy backend endpoints in a zone to the count of backend endpoints in that same zone is equal to or above this threshold, the load balancer distributes new connections to all healthy endpoints in the local zone only. When the ratio of the count of healthy backend endpoints in a zone to the count of backend endpoints in that same zone is below this threshold, the load balancer distributes all new connections to all healthy endpoints across all zones.

optional float spillover_ratio = 135580172;

Returns
Type Description
boolean

Whether the spilloverRatio field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder newBuilderForType()
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder
Overrides

toBuilder()

public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder toBuilder()
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException