Class ServiceLbPolicy.FailoverConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ServiceLbPolicy.FailoverConfig.Builder>
com.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig.Builder
All Implemented Interfaces:
ServiceLbPolicy.FailoverConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ServiceLbPolicy.FailoverConfig

public static final class ServiceLbPolicy.FailoverConfig.Builder extends com.google.protobuf.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ServiceLbPolicy.FailoverConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ServiceLbPolicy.FailoverConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ServiceLbPolicy.FailoverConfig.Builder>
    • getDefaultInstanceForType

      public ServiceLbPolicy.FailoverConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ServiceLbPolicy.FailoverConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ServiceLbPolicy.FailoverConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServiceLbPolicy.FailoverConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ServiceLbPolicy.FailoverConfig.Builder>
    • mergeFrom

      public ServiceLbPolicy.FailoverConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServiceLbPolicy.FailoverConfig.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getFailoverHealthThreshold in interface ServiceLbPolicy.FailoverConfigOrBuilder
      Returns:
      The failoverHealthThreshold.
    • setFailoverHealthThreshold

      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];
      Parameters:
      value - The failoverHealthThreshold to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.