Class TieringPolicy (0.34.0)

public final class TieringPolicy extends GeneratedMessageV3 implements TieringPolicyOrBuilder

Defines tiering policy for the volume.

Protobuf type google.cloud.netapp.v1.TieringPolicy

Static Fields

COOLING_THRESHOLD_DAYS_FIELD_NUMBER

public static final int COOLING_THRESHOLD_DAYS_FIELD_NUMBER
Field Value
Type Description
int

TIER_ACTION_FIELD_NUMBER

public static final int TIER_ACTION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TieringPolicy getDefaultInstance()
Returns
Type Description
TieringPolicy

getDescriptor()

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

newBuilder()

public static TieringPolicy.Builder newBuilder()
Returns
Type Description
TieringPolicy.Builder

newBuilder(TieringPolicy prototype)

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

parseDelimitedFrom(InputStream input)

public static TieringPolicy parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TieringPolicy
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static TieringPolicy parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TieringPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static TieringPolicy parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TieringPolicy
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static TieringPolicy parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TieringPolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static TieringPolicy parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TieringPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<TieringPolicy> parser()
Returns
Type Description
Parser<TieringPolicy>

Methods

equals(Object obj)

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

getCoolingThresholdDays()

public int getCoolingThresholdDays()

Optional. Time in days to mark the volume's data block as cold and make it eligible for tiering, can be range from 7-183. Default is 31.

optional int32 cooling_threshold_days = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The coolingThresholdDays.

getDefaultInstanceForType()

public TieringPolicy getDefaultInstanceForType()
Returns
Type Description
TieringPolicy

getParserForType()

public Parser<TieringPolicy> getParserForType()
Returns
Type Description
Parser<TieringPolicy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTierAction()

public TieringPolicy.TierAction getTierAction()

Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.

optional .google.cloud.netapp.v1.TieringPolicy.TierAction tier_action = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TieringPolicy.TierAction

The tierAction.

getTierActionValue()

public int getTierActionValue()

Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.

optional .google.cloud.netapp.v1.TieringPolicy.TierAction tier_action = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for tierAction.

hasCoolingThresholdDays()

public boolean hasCoolingThresholdDays()

Optional. Time in days to mark the volume's data block as cold and make it eligible for tiering, can be range from 7-183. Default is 31.

optional int32 cooling_threshold_days = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the coolingThresholdDays field is set.

hasTierAction()

public boolean hasTierAction()

Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.

optional .google.cloud.netapp.v1.TieringPolicy.TierAction tier_action = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the tierAction 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 TieringPolicy.Builder newBuilderForType()
Returns
Type Description
TieringPolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public TieringPolicy.Builder toBuilder()
Returns
Type Description
TieringPolicy.Builder

writeTo(CodedOutputStream output)

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