Class TieringPolicy.Builder (0.33.0)

public static final class TieringPolicy.Builder extends GeneratedMessageV3.Builder<TieringPolicy.Builder> implements TieringPolicyOrBuilder

Defines tiering policy for the volume.

Protobuf type google.cloud.netapp.v1.TieringPolicy

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TieringPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TieringPolicy.Builder
Overrides

build()

public TieringPolicy build()
Returns
Type Description
TieringPolicy

buildPartial()

public TieringPolicy buildPartial()
Returns
Type Description
TieringPolicy

clear()

public TieringPolicy.Builder clear()
Returns
Type Description
TieringPolicy.Builder
Overrides

clearCoolingThresholdDays()

public TieringPolicy.Builder clearCoolingThresholdDays()

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
TieringPolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TieringPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TieringPolicy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TieringPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TieringPolicy.Builder
Overrides

clearTierAction()

public TieringPolicy.Builder clearTierAction()

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.Builder

This builder for chaining.

clone()

public TieringPolicy.Builder clone()
Returns
Type Description
TieringPolicy.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TieringPolicy other)

public TieringPolicy.Builder mergeFrom(TieringPolicy other)
Parameter
Name Description
other TieringPolicy
Returns
Type Description
TieringPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TieringPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TieringPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TieringPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TieringPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TieringPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TieringPolicy.Builder
Overrides

setCoolingThresholdDays(int value)

public TieringPolicy.Builder setCoolingThresholdDays(int value)

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];

Parameter
Name Description
value int

The coolingThresholdDays to set.

Returns
Type Description
TieringPolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TieringPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TieringPolicy.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TieringPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TieringPolicy.Builder
Overrides

setTierAction(TieringPolicy.TierAction value)

public TieringPolicy.Builder setTierAction(TieringPolicy.TierAction value)

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];

Parameter
Name Description
value TieringPolicy.TierAction

The tierAction to set.

Returns
Type Description
TieringPolicy.Builder

This builder for chaining.

setTierActionValue(int value)

public TieringPolicy.Builder setTierActionValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for tierAction to set.

Returns
Type Description
TieringPolicy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TieringPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TieringPolicy.Builder
Overrides