Class Instance.PerformanceConfig (1.61.0)

public static final class Instance.PerformanceConfig extends GeneratedMessageV3 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

Static Fields

FIXED_IOPS_FIELD_NUMBER

public static final int FIXED_IOPS_FIELD_NUMBER
Field Value
Type Description
int

IOPS_PER_TB_FIELD_NUMBER

public static final int IOPS_PER_TB_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Instance.PerformanceConfig getDefaultInstance()
Returns
Type Description
Instance.PerformanceConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Instance.PerformanceConfig.Builder newBuilder()
Returns
Type Description
Instance.PerformanceConfig.Builder

newBuilder(Instance.PerformanceConfig prototype)

public static Instance.PerformanceConfig.Builder newBuilder(Instance.PerformanceConfig prototype)
Parameter
Name Description
prototype Instance.PerformanceConfig
Returns
Type Description
Instance.PerformanceConfig.Builder

parseDelimitedFrom(InputStream input)

public static Instance.PerformanceConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Instance.PerformanceConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.PerformanceConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.PerformanceConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Instance.PerformanceConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Instance.PerformanceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Instance.PerformanceConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.PerformanceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Instance.PerformanceConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Instance.PerformanceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Instance.PerformanceConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.PerformanceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Instance.PerformanceConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Instance.PerformanceConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.PerformanceConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.PerformanceConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Instance.PerformanceConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Instance.PerformanceConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.PerformanceConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.PerformanceConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Instance.PerformanceConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Instance.PerformanceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Instance.PerformanceConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.PerformanceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Instance.PerformanceConfig> parser()
Returns
Type Description
Parser<PerformanceConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Instance.PerformanceConfig getDefaultInstanceForType()
Returns
Type Description
Instance.PerformanceConfig

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;

Returns
Type Description
Instance.FixedIOPS

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;

Returns
Type Description
Instance.FixedIOPSOrBuilder

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;

Returns
Type Description
Instance.IOPSPerTB

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;

Returns
Type Description
Instance.IOPSPerTBOrBuilder

getModeCase()

public Instance.PerformanceConfig.ModeCase getModeCase()
Returns
Type Description
Instance.PerformanceConfig.ModeCase

getParserForType()

public Parser<Instance.PerformanceConfig> getParserForType()
Returns
Type Description
Parser<PerformanceConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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;

Returns
Type Description
boolean

Whether the fixedIops field is set.

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;

Returns
Type Description
boolean

Whether the iopsPerTb field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Instance.PerformanceConfig.Builder newBuilderForType()
Returns
Type Description
Instance.PerformanceConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Instance.PerformanceConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Instance.PerformanceConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Instance.PerformanceConfig.Builder toBuilder()
Returns
Type Description
Instance.PerformanceConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException