Class ServiceLbPolicy

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkservices.v1.ServiceLbPolicy
All Implemented Interfaces:
ServiceLbPolicyOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ServiceLbPolicy extends com.google.protobuf.GeneratedMessage implements ServiceLbPolicyOrBuilder
 ServiceLbPolicy holds global load balancing and traffic distribution
 configuration that can be applied to a BackendService.
 
Protobuf type google.cloud.networkservices.v1.ServiceLbPolicy
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • LOAD_BALANCING_ALGORITHM_FIELD_NUMBER

      public static final int LOAD_BALANCING_ALGORITHM_FIELD_NUMBER
      See Also:
    • AUTO_CAPACITY_DRAIN_FIELD_NUMBER

      public static final int AUTO_CAPACITY_DRAIN_FIELD_NUMBER
      See Also:
    • FAILOVER_CONFIG_FIELD_NUMBER

      public static final int FAILOVER_CONFIG_FIELD_NUMBER
      See Also:
    • ISOLATION_CONFIG_FIELD_NUMBER

      public static final int ISOLATION_CONFIG_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String getName()
       Identifier. Name of the ServiceLbPolicy resource. It matches pattern
       `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface ServiceLbPolicyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Name of the ServiceLbPolicy resource. It matches pattern
       `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface ServiceLbPolicyOrBuilder
      Returns:
      The bytes for name.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The timestamp when this resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ServiceLbPolicyOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp when this resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ServiceLbPolicyOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp when this resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ServiceLbPolicyOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The timestamp when this resource was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface ServiceLbPolicyOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp when this resource was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface ServiceLbPolicyOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The timestamp when this resource was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface ServiceLbPolicyOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: ServiceLbPolicyOrBuilder
       Optional. Set of label tags associated with the ServiceLbPolicy resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface ServiceLbPolicyOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Set of label tags associated with the ServiceLbPolicy resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface ServiceLbPolicyOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface ServiceLbPolicyOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Set of label tags associated with the ServiceLbPolicy resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface ServiceLbPolicyOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Set of label tags associated with the ServiceLbPolicy resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface ServiceLbPolicyOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Set of label tags associated with the ServiceLbPolicy resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface ServiceLbPolicyOrBuilder
    • getDescription

      public String getDescription()
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface ServiceLbPolicyOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface ServiceLbPolicyOrBuilder
      Returns:
      The bytes for description.
    • getLoadBalancingAlgorithmValue

      public int getLoadBalancingAlgorithmValue()
       Optional. The type of load balancing algorithm to be used. The default
       behavior is WATERFALL_BY_REGION.
       
      .google.cloud.networkservices.v1.ServiceLbPolicy.LoadBalancingAlgorithm load_balancing_algorithm = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLoadBalancingAlgorithmValue in interface ServiceLbPolicyOrBuilder
      Returns:
      The enum numeric value on the wire for loadBalancingAlgorithm.
    • getLoadBalancingAlgorithm

      public ServiceLbPolicy.LoadBalancingAlgorithm getLoadBalancingAlgorithm()
       Optional. The type of load balancing algorithm to be used. The default
       behavior is WATERFALL_BY_REGION.
       
      .google.cloud.networkservices.v1.ServiceLbPolicy.LoadBalancingAlgorithm load_balancing_algorithm = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLoadBalancingAlgorithm in interface ServiceLbPolicyOrBuilder
      Returns:
      The loadBalancingAlgorithm.
    • hasAutoCapacityDrain

      public boolean hasAutoCapacityDrain()
       Optional. Configuration to automatically move traffic away for unhealthy
       IG/NEG for the associated Backend Service.
       
      .google.cloud.networkservices.v1.ServiceLbPolicy.AutoCapacityDrain auto_capacity_drain = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAutoCapacityDrain in interface ServiceLbPolicyOrBuilder
      Returns:
      Whether the autoCapacityDrain field is set.
    • getAutoCapacityDrain

      public ServiceLbPolicy.AutoCapacityDrain getAutoCapacityDrain()
       Optional. Configuration to automatically move traffic away for unhealthy
       IG/NEG for the associated Backend Service.
       
      .google.cloud.networkservices.v1.ServiceLbPolicy.AutoCapacityDrain auto_capacity_drain = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAutoCapacityDrain in interface ServiceLbPolicyOrBuilder
      Returns:
      The autoCapacityDrain.
    • getAutoCapacityDrainOrBuilder

      public ServiceLbPolicy.AutoCapacityDrainOrBuilder getAutoCapacityDrainOrBuilder()
       Optional. Configuration to automatically move traffic away for unhealthy
       IG/NEG for the associated Backend Service.
       
      .google.cloud.networkservices.v1.ServiceLbPolicy.AutoCapacityDrain auto_capacity_drain = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAutoCapacityDrainOrBuilder in interface ServiceLbPolicyOrBuilder
    • hasFailoverConfig

      public boolean hasFailoverConfig()
       Optional. Configuration related to health based failover.
       
      .google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig failover_config = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasFailoverConfig in interface ServiceLbPolicyOrBuilder
      Returns:
      Whether the failoverConfig field is set.
    • getFailoverConfig

      public ServiceLbPolicy.FailoverConfig getFailoverConfig()
       Optional. Configuration related to health based failover.
       
      .google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig failover_config = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFailoverConfig in interface ServiceLbPolicyOrBuilder
      Returns:
      The failoverConfig.
    • getFailoverConfigOrBuilder

      public ServiceLbPolicy.FailoverConfigOrBuilder getFailoverConfigOrBuilder()
       Optional. Configuration related to health based failover.
       
      .google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig failover_config = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFailoverConfigOrBuilder in interface ServiceLbPolicyOrBuilder
    • hasIsolationConfig

      public boolean hasIsolationConfig()
       Optional. Configuration to provide isolation support for the associated
       Backend Service.
       
      .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasIsolationConfig in interface ServiceLbPolicyOrBuilder
      Returns:
      Whether the isolationConfig field is set.
    • getIsolationConfig

      public ServiceLbPolicy.IsolationConfig getIsolationConfig()
       Optional. Configuration to provide isolation support for the associated
       Backend Service.
       
      .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIsolationConfig in interface ServiceLbPolicyOrBuilder
      Returns:
      The isolationConfig.
    • getIsolationConfigOrBuilder

      public ServiceLbPolicy.IsolationConfigOrBuilder getIsolationConfigOrBuilder()
       Optional. Configuration to provide isolation support for the associated
       Backend Service.
       
      .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIsolationConfigOrBuilder in interface ServiceLbPolicyOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ServiceLbPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ServiceLbPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ServiceLbPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ServiceLbPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ServiceLbPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ServiceLbPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ServiceLbPolicy parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ServiceLbPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ServiceLbPolicy parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ServiceLbPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ServiceLbPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ServiceLbPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ServiceLbPolicy.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ServiceLbPolicy.Builder newBuilder()
    • newBuilder

      public static ServiceLbPolicy.Builder newBuilder(ServiceLbPolicy prototype)
    • toBuilder

      public ServiceLbPolicy.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ServiceLbPolicy.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ServiceLbPolicy getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ServiceLbPolicy> parser()
    • getParserForType

      public com.google.protobuf.Parser<ServiceLbPolicy> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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