Class Instance.PerformanceConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Instance.PerformanceConfig.Builder>
com.google.cloud.filestore.v1beta1.Instance.PerformanceConfig.Builder
All Implemented Interfaces:
Instance.PerformanceConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Instance.PerformanceConfig

public static final class Instance.PerformanceConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<Instance.PerformanceConfig.Builder> implements Instance.PerformanceConfigOrBuilder
 Used for setting the performance configuration.
 If the user doesn't specify PerformanceConfig, automatically provision
 the default performance settings as described in
 https://cloud.google.com/filestore/docs/performance. Larger instances will
 be linearly set to more IOPS. If the instance's capacity is increased or
 decreased, its performance will be automatically adjusted upwards or
 downwards accordingly (respectively).
 
Protobuf type google.cloud.filestore.v1beta1.Instance.PerformanceConfig
  • 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<Instance.PerformanceConfig.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<Instance.PerformanceConfig.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<Instance.PerformanceConfig.Builder>
    • getDefaultInstanceForType

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

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

      public Instance.PerformanceConfig.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<Instance.PerformanceConfig.Builder>
      Throws:
      IOException
    • getModeCase

      Specified by:
      getModeCase in interface Instance.PerformanceConfigOrBuilder
    • clearMode

    • hasIopsPerTb

      public boolean hasIopsPerTb()
       Provision IOPS dynamically based on the capacity of the instance.
       Provisioned IOPS will be calculated by multiplying the capacity of the
       instance in TiB by the `iops_per_tb` value. For example, for a 2 TiB
       instance with an `iops_per_tb` value of 17000 the provisioned IOPS will
       be 34000.
      
       If the calculated value is outside the supported range for the
       instance's capacity during instance creation, instance creation will
       fail with an `InvalidArgument` error. Similarly, if an instance
       capacity update would result in a value outside the supported range,
       the update will fail with an `InvalidArgument` error.
       
      .google.cloud.filestore.v1beta1.Instance.IOPSPerTB iops_per_tb = 4;
      Specified by:
      hasIopsPerTb in interface Instance.PerformanceConfigOrBuilder
      Returns:
      Whether the iopsPerTb field is set.
    • getIopsPerTb

      public Instance.IOPSPerTB getIopsPerTb()
       Provision IOPS dynamically based on the capacity of the instance.
       Provisioned IOPS will be calculated by multiplying the capacity of the
       instance in TiB by the `iops_per_tb` value. For example, for a 2 TiB
       instance with an `iops_per_tb` value of 17000 the provisioned IOPS will
       be 34000.
      
       If the calculated value is outside the supported range for the
       instance's capacity during instance creation, instance creation will
       fail with an `InvalidArgument` error. Similarly, if an instance
       capacity update would result in a value outside the supported range,
       the update will fail with an `InvalidArgument` error.
       
      .google.cloud.filestore.v1beta1.Instance.IOPSPerTB iops_per_tb = 4;
      Specified by:
      getIopsPerTb in interface Instance.PerformanceConfigOrBuilder
      Returns:
      The iopsPerTb.
    • setIopsPerTb

       Provision IOPS dynamically based on the capacity of the instance.
       Provisioned IOPS will be calculated by multiplying the capacity of the
       instance in TiB by the `iops_per_tb` value. For example, for a 2 TiB
       instance with an `iops_per_tb` value of 17000 the provisioned IOPS will
       be 34000.
      
       If the calculated value is outside the supported range for the
       instance's capacity during instance creation, instance creation will
       fail with an `InvalidArgument` error. Similarly, if an instance
       capacity update would result in a value outside the supported range,
       the update will fail with an `InvalidArgument` error.
       
      .google.cloud.filestore.v1beta1.Instance.IOPSPerTB iops_per_tb = 4;
    • setIopsPerTb

      public Instance.PerformanceConfig.Builder setIopsPerTb(Instance.IOPSPerTB.Builder builderForValue)
       Provision IOPS dynamically based on the capacity of the instance.
       Provisioned IOPS will be calculated by multiplying the capacity of the
       instance in TiB by the `iops_per_tb` value. For example, for a 2 TiB
       instance with an `iops_per_tb` value of 17000 the provisioned IOPS will
       be 34000.
      
       If the calculated value is outside the supported range for the
       instance's capacity during instance creation, instance creation will
       fail with an `InvalidArgument` error. Similarly, if an instance
       capacity update would result in a value outside the supported range,
       the update will fail with an `InvalidArgument` error.
       
      .google.cloud.filestore.v1beta1.Instance.IOPSPerTB iops_per_tb = 4;
    • mergeIopsPerTb

       Provision IOPS dynamically based on the capacity of the instance.
       Provisioned IOPS will be calculated by multiplying the capacity of the
       instance in TiB by the `iops_per_tb` value. For example, for a 2 TiB
       instance with an `iops_per_tb` value of 17000 the provisioned IOPS will
       be 34000.
      
       If the calculated value is outside the supported range for the
       instance's capacity during instance creation, instance creation will
       fail with an `InvalidArgument` error. Similarly, if an instance
       capacity update would result in a value outside the supported range,
       the update will fail with an `InvalidArgument` error.
       
      .google.cloud.filestore.v1beta1.Instance.IOPSPerTB iops_per_tb = 4;
    • clearIopsPerTb

      public Instance.PerformanceConfig.Builder clearIopsPerTb()
       Provision IOPS dynamically based on the capacity of the instance.
       Provisioned IOPS will be calculated by multiplying the capacity of the
       instance in TiB by the `iops_per_tb` value. For example, for a 2 TiB
       instance with an `iops_per_tb` value of 17000 the provisioned IOPS will
       be 34000.
      
       If the calculated value is outside the supported range for the
       instance's capacity during instance creation, instance creation will
       fail with an `InvalidArgument` error. Similarly, if an instance
       capacity update would result in a value outside the supported range,
       the update will fail with an `InvalidArgument` error.
       
      .google.cloud.filestore.v1beta1.Instance.IOPSPerTB iops_per_tb = 4;
    • getIopsPerTbBuilder

      public Instance.IOPSPerTB.Builder getIopsPerTbBuilder()
       Provision IOPS dynamically based on the capacity of the instance.
       Provisioned IOPS will be calculated by multiplying the capacity of the
       instance in TiB by the `iops_per_tb` value. For example, for a 2 TiB
       instance with an `iops_per_tb` value of 17000 the provisioned IOPS will
       be 34000.
      
       If the calculated value is outside the supported range for the
       instance's capacity during instance creation, instance creation will
       fail with an `InvalidArgument` error. Similarly, if an instance
       capacity update would result in a value outside the supported range,
       the update will fail with an `InvalidArgument` error.
       
      .google.cloud.filestore.v1beta1.Instance.IOPSPerTB iops_per_tb = 4;
    • getIopsPerTbOrBuilder

      public Instance.IOPSPerTBOrBuilder getIopsPerTbOrBuilder()
       Provision IOPS dynamically based on the capacity of the instance.
       Provisioned IOPS will be calculated by multiplying the capacity of the
       instance in TiB by the `iops_per_tb` value. For example, for a 2 TiB
       instance with an `iops_per_tb` value of 17000 the provisioned IOPS will
       be 34000.
      
       If the calculated value is outside the supported range for the
       instance's capacity during instance creation, instance creation will
       fail with an `InvalidArgument` error. Similarly, if an instance
       capacity update would result in a value outside the supported range,
       the update will fail with an `InvalidArgument` error.
       
      .google.cloud.filestore.v1beta1.Instance.IOPSPerTB iops_per_tb = 4;
      Specified by:
      getIopsPerTbOrBuilder in interface Instance.PerformanceConfigOrBuilder
    • hasFixedIops

      public boolean hasFixedIops()
       Choose a fixed provisioned IOPS value for the instance, which will
       remain constant regardless of instance capacity. Value must be a
       multiple of 1000.
      
       If the chosen value is outside the supported range for the instance's
       capacity during instance creation, instance creation will fail with an
       `InvalidArgument` error. Similarly, if an instance capacity update
       would result in a value outside the supported range, the update will
       fail with an `InvalidArgument` error.
       
      .google.cloud.filestore.v1beta1.Instance.FixedIOPS fixed_iops = 2;
      Specified by:
      hasFixedIops in interface Instance.PerformanceConfigOrBuilder
      Returns:
      Whether the fixedIops field is set.
    • getFixedIops

      public Instance.FixedIOPS getFixedIops()
       Choose a fixed provisioned IOPS value for the instance, which will
       remain constant regardless of instance capacity. Value must be a
       multiple of 1000.
      
       If the chosen value is outside the supported range for the instance's
       capacity during instance creation, instance creation will fail with an
       `InvalidArgument` error. Similarly, if an instance capacity update
       would result in a value outside the supported range, the update will
       fail with an `InvalidArgument` error.
       
      .google.cloud.filestore.v1beta1.Instance.FixedIOPS fixed_iops = 2;
      Specified by:
      getFixedIops in interface Instance.PerformanceConfigOrBuilder
      Returns:
      The fixedIops.
    • setFixedIops

       Choose a fixed provisioned IOPS value for the instance, which will
       remain constant regardless of instance capacity. Value must be a
       multiple of 1000.
      
       If the chosen value is outside the supported range for the instance's
       capacity during instance creation, instance creation will fail with an
       `InvalidArgument` error. Similarly, if an instance capacity update
       would result in a value outside the supported range, the update will
       fail with an `InvalidArgument` error.
       
      .google.cloud.filestore.v1beta1.Instance.FixedIOPS fixed_iops = 2;
    • setFixedIops

      public Instance.PerformanceConfig.Builder setFixedIops(Instance.FixedIOPS.Builder builderForValue)
       Choose a fixed provisioned IOPS value for the instance, which will
       remain constant regardless of instance capacity. Value must be a
       multiple of 1000.
      
       If the chosen value is outside the supported range for the instance's
       capacity during instance creation, instance creation will fail with an
       `InvalidArgument` error. Similarly, if an instance capacity update
       would result in a value outside the supported range, the update will
       fail with an `InvalidArgument` error.
       
      .google.cloud.filestore.v1beta1.Instance.FixedIOPS fixed_iops = 2;
    • mergeFixedIops

       Choose a fixed provisioned IOPS value for the instance, which will
       remain constant regardless of instance capacity. Value must be a
       multiple of 1000.
      
       If the chosen value is outside the supported range for the instance's
       capacity during instance creation, instance creation will fail with an
       `InvalidArgument` error. Similarly, if an instance capacity update
       would result in a value outside the supported range, the update will
       fail with an `InvalidArgument` error.
       
      .google.cloud.filestore.v1beta1.Instance.FixedIOPS fixed_iops = 2;
    • clearFixedIops

      public Instance.PerformanceConfig.Builder clearFixedIops()
       Choose a fixed provisioned IOPS value for the instance, which will
       remain constant regardless of instance capacity. Value must be a
       multiple of 1000.
      
       If the chosen value is outside the supported range for the instance's
       capacity during instance creation, instance creation will fail with an
       `InvalidArgument` error. Similarly, if an instance capacity update
       would result in a value outside the supported range, the update will
       fail with an `InvalidArgument` error.
       
      .google.cloud.filestore.v1beta1.Instance.FixedIOPS fixed_iops = 2;
    • getFixedIopsBuilder

      public Instance.FixedIOPS.Builder getFixedIopsBuilder()
       Choose a fixed provisioned IOPS value for the instance, which will
       remain constant regardless of instance capacity. Value must be a
       multiple of 1000.
      
       If the chosen value is outside the supported range for the instance's
       capacity during instance creation, instance creation will fail with an
       `InvalidArgument` error. Similarly, if an instance capacity update
       would result in a value outside the supported range, the update will
       fail with an `InvalidArgument` error.
       
      .google.cloud.filestore.v1beta1.Instance.FixedIOPS fixed_iops = 2;
    • getFixedIopsOrBuilder

      public Instance.FixedIOPSOrBuilder getFixedIopsOrBuilder()
       Choose a fixed provisioned IOPS value for the instance, which will
       remain constant regardless of instance capacity. Value must be a
       multiple of 1000.
      
       If the chosen value is outside the supported range for the instance's
       capacity during instance creation, instance creation will fail with an
       `InvalidArgument` error. Similarly, if an instance capacity update
       would result in a value outside the supported range, the update will
       fail with an `InvalidArgument` error.
       
      .google.cloud.filestore.v1beta1.Instance.FixedIOPS fixed_iops = 2;
      Specified by:
      getFixedIopsOrBuilder in interface Instance.PerformanceConfigOrBuilder