Class AutoscalingConfig.AutoscalingTargets.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AutoscalingConfig.AutoscalingTargets.Builder>
com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AutoscalingConfig.AutoscalingTargetsOrBuilder, Cloneable
Enclosing class:
AutoscalingConfig.AutoscalingTargets

public static final class AutoscalingConfig.AutoscalingTargets.Builder extends com.google.protobuf.GeneratedMessage.Builder<AutoscalingConfig.AutoscalingTargets.Builder> implements AutoscalingConfig.AutoscalingTargetsOrBuilder
 The autoscaling targets for an instance.
 
Protobuf type google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets
  • 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<AutoscalingConfig.AutoscalingTargets.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<AutoscalingConfig.AutoscalingTargets.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<AutoscalingConfig.AutoscalingTargets.Builder>
    • getDefaultInstanceForType

      public AutoscalingConfig.AutoscalingTargets 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 AutoscalingConfig.AutoscalingTargets buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public AutoscalingConfig.AutoscalingTargets.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<AutoscalingConfig.AutoscalingTargets.Builder>
      Throws:
      IOException
    • getHighPriorityCpuUtilizationPercent

      public int getHighPriorityCpuUtilizationPercent()
       Optional. The target high priority cpu utilization percentage that the
       autoscaler should be trying to achieve for the instance. This number is
       on a scale from 0 (no utilization) to 100 (full utilization). The valid
       range is [10, 90] inclusive. If not specified or set to 0, the autoscaler
       skips scaling based on high priority CPU utilization.
       
      int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHighPriorityCpuUtilizationPercent in interface AutoscalingConfig.AutoscalingTargetsOrBuilder
      Returns:
      The highPriorityCpuUtilizationPercent.
    • setHighPriorityCpuUtilizationPercent

      public AutoscalingConfig.AutoscalingTargets.Builder setHighPriorityCpuUtilizationPercent(int value)
       Optional. The target high priority cpu utilization percentage that the
       autoscaler should be trying to achieve for the instance. This number is
       on a scale from 0 (no utilization) to 100 (full utilization). The valid
       range is [10, 90] inclusive. If not specified or set to 0, the autoscaler
       skips scaling based on high priority CPU utilization.
       
      int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The highPriorityCpuUtilizationPercent to set.
      Returns:
      This builder for chaining.
    • clearHighPriorityCpuUtilizationPercent

      public AutoscalingConfig.AutoscalingTargets.Builder clearHighPriorityCpuUtilizationPercent()
       Optional. The target high priority cpu utilization percentage that the
       autoscaler should be trying to achieve for the instance. This number is
       on a scale from 0 (no utilization) to 100 (full utilization). The valid
       range is [10, 90] inclusive. If not specified or set to 0, the autoscaler
       skips scaling based on high priority CPU utilization.
       
      int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getTotalCpuUtilizationPercent

      public int getTotalCpuUtilizationPercent()
       Optional. The target total CPU utilization percentage that the autoscaler
       should be trying to achieve for the instance. This number is on a scale
       from 0 (no utilization) to 100 (full utilization). The valid range is
       [10, 90] inclusive. If not specified or set to 0, the autoscaler skips
       scaling based on total CPU utilization. If both
       `high_priority_cpu_utilization_percent` and
       `total_cpu_utilization_percent` are specified, the autoscaler provisions
       the larger of the two required compute capacities to satisfy both
       targets.
       
      int32 total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTotalCpuUtilizationPercent in interface AutoscalingConfig.AutoscalingTargetsOrBuilder
      Returns:
      The totalCpuUtilizationPercent.
    • setTotalCpuUtilizationPercent

      public AutoscalingConfig.AutoscalingTargets.Builder setTotalCpuUtilizationPercent(int value)
       Optional. The target total CPU utilization percentage that the autoscaler
       should be trying to achieve for the instance. This number is on a scale
       from 0 (no utilization) to 100 (full utilization). The valid range is
       [10, 90] inclusive. If not specified or set to 0, the autoscaler skips
       scaling based on total CPU utilization. If both
       `high_priority_cpu_utilization_percent` and
       `total_cpu_utilization_percent` are specified, the autoscaler provisions
       the larger of the two required compute capacities to satisfy both
       targets.
       
      int32 total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The totalCpuUtilizationPercent to set.
      Returns:
      This builder for chaining.
    • clearTotalCpuUtilizationPercent

      public AutoscalingConfig.AutoscalingTargets.Builder clearTotalCpuUtilizationPercent()
       Optional. The target total CPU utilization percentage that the autoscaler
       should be trying to achieve for the instance. This number is on a scale
       from 0 (no utilization) to 100 (full utilization). The valid range is
       [10, 90] inclusive. If not specified or set to 0, the autoscaler skips
       scaling based on total CPU utilization. If both
       `high_priority_cpu_utilization_percent` and
       `total_cpu_utilization_percent` are specified, the autoscaler provisions
       the larger of the two required compute capacities to satisfy both
       targets.
       
      int32 total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getStorageUtilizationPercent

      public int getStorageUtilizationPercent()
       Required. The target storage utilization percentage that the autoscaler
       should be trying to achieve for the instance. This number is on a scale
       from 0 (no utilization) to 100 (full utilization). The valid range is
       [10, 99] inclusive.
       
      int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStorageUtilizationPercent in interface AutoscalingConfig.AutoscalingTargetsOrBuilder
      Returns:
      The storageUtilizationPercent.
    • setStorageUtilizationPercent

      public AutoscalingConfig.AutoscalingTargets.Builder setStorageUtilizationPercent(int value)
       Required. The target storage utilization percentage that the autoscaler
       should be trying to achieve for the instance. This number is on a scale
       from 0 (no utilization) to 100 (full utilization). The valid range is
       [10, 99] inclusive.
       
      int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The storageUtilizationPercent to set.
      Returns:
      This builder for chaining.
    • clearStorageUtilizationPercent

      public AutoscalingConfig.AutoscalingTargets.Builder clearStorageUtilizationPercent()
       Required. The target storage utilization percentage that the autoscaler
       should be trying to achieve for the instance. This number is on a scale
       from 0 (no utilization) to 100 (full utilization). The valid range is
       [10, 99] inclusive.
       
      int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.