Class ServiceLbPolicy.FailoverConfig.Builder (0.39.0)

public static final class ServiceLbPolicy.FailoverConfig.Builder extends GeneratedMessage.Builder<ServiceLbPolicy.FailoverConfig.Builder> implements ServiceLbPolicy.FailoverConfigOrBuilder

Option to specify health based failover behavior. This is not related to Network load balancer FailoverPolicy.

Protobuf type google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig

Static Methods

getDescriptor()

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

Methods

build()

public ServiceLbPolicy.FailoverConfig build()
Returns
Type Description
ServiceLbPolicy.FailoverConfig

buildPartial()

public ServiceLbPolicy.FailoverConfig buildPartial()
Returns
Type Description
ServiceLbPolicy.FailoverConfig

clear()

public ServiceLbPolicy.FailoverConfig.Builder clear()
Returns
Type Description
ServiceLbPolicy.FailoverConfig.Builder
Overrides

clearFailoverHealthThreshold()

public ServiceLbPolicy.FailoverConfig.Builder clearFailoverHealthThreshold()

Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others.

int32 failover_health_threshold = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceLbPolicy.FailoverConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public ServiceLbPolicy.FailoverConfig getDefaultInstanceForType()
Returns
Type Description
ServiceLbPolicy.FailoverConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFailoverHealthThreshold()

public int getFailoverHealthThreshold()

Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others.

int32 failover_health_threshold = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The failoverHealthThreshold.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServiceLbPolicy.FailoverConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setFailoverHealthThreshold(int value)

public ServiceLbPolicy.FailoverConfig.Builder setFailoverHealthThreshold(int value)

Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others.

int32 failover_health_threshold = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The failoverHealthThreshold to set.

Returns
Type Description
ServiceLbPolicy.FailoverConfig.Builder

This builder for chaining.