Class Instance.PerformanceConfig

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

public static final class Instance.PerformanceConfig extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • IOPS_PER_TB_FIELD_NUMBER

      public static final int IOPS_PER_TB_FIELD_NUMBER
      See Also:
    • FIXED_IOPS_FIELD_NUMBER

      public static final int FIXED_IOPS_FIELD_NUMBER
      See Also:
  • 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
    • getModeCase

      Specified by:
      getModeCase in interface Instance.PerformanceConfigOrBuilder
    • 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.
    • 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.
    • 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
    • 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 Instance.PerformanceConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static Instance.PerformanceConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Instance.PerformanceConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Instance.PerformanceConfig.Builder newBuilder()
    • newBuilder

      public static Instance.PerformanceConfig.Builder newBuilder(Instance.PerformanceConfig prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static Instance.PerformanceConfig getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Instance.PerformanceConfig> 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 Instance.PerformanceConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder