Class BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder (1.93.0)

public static final class BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder extends GeneratedMessage.Builder<BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder> implements BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinityOrBuilder

Protobuf type google.cloud.compute.v1.BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder

Static Methods

getDescriptor()

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

Methods

build()

public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity build()
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity

buildPartial()

public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity buildPartial()
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity

clear()

public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder clear()
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder
Overrides

clearSpillover()

public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder clearSpillover()

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
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder

This builder for chaining.

clearSpilloverRatio()

public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder clearSpilloverRatio()

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
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder

This builder for chaining.

getDefaultInstanceForType()

public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity getDefaultInstanceForType()
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity other)

public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder mergeFrom(BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity other)
Parameter
Name Description
other BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder
Overrides

setSpillover(String value)

public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder setSpillover(String value)

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;

Parameter
Name Description
value String

The spillover to set.

Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder

This builder for chaining.

setSpilloverBytes(ByteString value)

public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder setSpilloverBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for spillover to set.

Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder

This builder for chaining.

setSpilloverRatio(float value)

public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder setSpilloverRatio(float value)

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;

Parameter
Name Description
value float

The spilloverRatio to set.

Returns
Type Description
BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder

This builder for chaining.