Class BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder

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

public static final class BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder extends com.google.protobuf.GeneratedMessage.Builder<BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder> implements BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinityOrBuilder
 
Protobuf type google.cloud.compute.v1.BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity
  • 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<BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.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<BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.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<BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder>
    • 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

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

      public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.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<BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.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<BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder>
    • mergeFrom

      public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.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<BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      hasSpillover in interface BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinityOrBuilder
      Returns:
      Whether the spillover field is set.
    • 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;
      Specified by:
      getSpillover in interface BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinityOrBuilder
      Returns:
      The spillover.
    • getSpilloverBytes

      public com.google.protobuf.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;
      Specified by:
      getSpilloverBytes in interface BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinityOrBuilder
      Returns:
      The bytes for spillover.
    • setSpillover

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

      public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.Builder setSpilloverBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for spillover to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      hasSpilloverRatio in interface BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinityOrBuilder
      Returns:
      Whether the spilloverRatio field is set.
    • 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;
      Specified by:
      getSpilloverRatio in interface BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinityOrBuilder
      Returns:
      The spilloverRatio.
    • setSpilloverRatio

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