Class FreeInstanceMetadata.Builder (6.85.0)

public static final class FreeInstanceMetadata.Builder extends GeneratedMessageV3.Builder<FreeInstanceMetadata.Builder> implements FreeInstanceMetadataOrBuilder

Free instance specific metadata that is kept even after an instance has been upgraded for tracking purposes.

Protobuf type google.spanner.admin.instance.v1.FreeInstanceMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FreeInstanceMetadata build()
Returns
Type Description
FreeInstanceMetadata

buildPartial()

public FreeInstanceMetadata buildPartial()
Returns
Type Description
FreeInstanceMetadata

clear()

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

clearExpireBehavior()

public FreeInstanceMetadata.Builder clearExpireBehavior()

Specifies the expiration behavior of a free instance. The default of ExpireBehavior is REMOVE_AFTER_GRACE_PERIOD. This can be modified during or after creation, and before expiration.

.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior expire_behavior = 3;

Returns
Type Description
FreeInstanceMetadata.Builder

This builder for chaining.

clearExpireTime()

public FreeInstanceMetadata.Builder clearExpireTime()

Output only. Timestamp after which the instance will either be upgraded or scheduled for deletion after a grace period. ExpireBehavior is used to choose between upgrading or scheduling the free instance for deletion. This timestamp is set during the creation of a free instance.

.google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FreeInstanceMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpgradeTime()

public FreeInstanceMetadata.Builder clearUpgradeTime()

Output only. If present, the timestamp at which the free instance was upgraded to a provisioned instance.

.google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FreeInstanceMetadata.Builder

clone()

public FreeInstanceMetadata.Builder clone()
Returns
Type Description
FreeInstanceMetadata.Builder
Overrides

getDefaultInstanceForType()

public FreeInstanceMetadata getDefaultInstanceForType()
Returns
Type Description
FreeInstanceMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExpireBehavior()

public FreeInstanceMetadata.ExpireBehavior getExpireBehavior()

Specifies the expiration behavior of a free instance. The default of ExpireBehavior is REMOVE_AFTER_GRACE_PERIOD. This can be modified during or after creation, and before expiration.

.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior expire_behavior = 3;

Returns
Type Description
FreeInstanceMetadata.ExpireBehavior

The expireBehavior.

getExpireBehaviorValue()

public int getExpireBehaviorValue()

Specifies the expiration behavior of a free instance. The default of ExpireBehavior is REMOVE_AFTER_GRACE_PERIOD. This can be modified during or after creation, and before expiration.

.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior expire_behavior = 3;

Returns
Type Description
int

The enum numeric value on the wire for expireBehavior.

getExpireTime()

public Timestamp getExpireTime()

Output only. Timestamp after which the instance will either be upgraded or scheduled for deletion after a grace period. ExpireBehavior is used to choose between upgrading or scheduling the free instance for deletion. This timestamp is set during the creation of a free instance.

.google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

Output only. Timestamp after which the instance will either be upgraded or scheduled for deletion after a grace period. ExpireBehavior is used to choose between upgrading or scheduling the free instance for deletion. This timestamp is set during the creation of a free instance.

.google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Output only. Timestamp after which the instance will either be upgraded or scheduled for deletion after a grace period. ExpireBehavior is used to choose between upgrading or scheduling the free instance for deletion. This timestamp is set during the creation of a free instance.

.google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getUpgradeTime()

public Timestamp getUpgradeTime()

Output only. If present, the timestamp at which the free instance was upgraded to a provisioned instance.

.google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The upgradeTime.

getUpgradeTimeBuilder()

public Timestamp.Builder getUpgradeTimeBuilder()

Output only. If present, the timestamp at which the free instance was upgraded to a provisioned instance.

.google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpgradeTimeOrBuilder()

public TimestampOrBuilder getUpgradeTimeOrBuilder()

Output only. If present, the timestamp at which the free instance was upgraded to a provisioned instance.

.google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasExpireTime()

public boolean hasExpireTime()

Output only. Timestamp after which the instance will either be upgraded or scheduled for deletion after a grace period. ExpireBehavior is used to choose between upgrading or scheduling the free instance for deletion. This timestamp is set during the creation of a free instance.

.google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the expireTime field is set.

hasUpgradeTime()

public boolean hasUpgradeTime()

Output only. If present, the timestamp at which the free instance was upgraded to a provisioned instance.

.google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the upgradeTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpireTime(Timestamp value)

public FreeInstanceMetadata.Builder mergeExpireTime(Timestamp value)

Output only. Timestamp after which the instance will either be upgraded or scheduled for deletion after a grace period. ExpireBehavior is used to choose between upgrading or scheduling the free instance for deletion. This timestamp is set during the creation of a free instance.

.google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
FreeInstanceMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(FreeInstanceMetadata other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpgradeTime(Timestamp value)

public FreeInstanceMetadata.Builder mergeUpgradeTime(Timestamp value)

Output only. If present, the timestamp at which the free instance was upgraded to a provisioned instance.

.google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
FreeInstanceMetadata.Builder

setExpireBehavior(FreeInstanceMetadata.ExpireBehavior value)

public FreeInstanceMetadata.Builder setExpireBehavior(FreeInstanceMetadata.ExpireBehavior value)

Specifies the expiration behavior of a free instance. The default of ExpireBehavior is REMOVE_AFTER_GRACE_PERIOD. This can be modified during or after creation, and before expiration.

.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior expire_behavior = 3;

Parameter
Name Description
value FreeInstanceMetadata.ExpireBehavior

The expireBehavior to set.

Returns
Type Description
FreeInstanceMetadata.Builder

This builder for chaining.

setExpireBehaviorValue(int value)

public FreeInstanceMetadata.Builder setExpireBehaviorValue(int value)

Specifies the expiration behavior of a free instance. The default of ExpireBehavior is REMOVE_AFTER_GRACE_PERIOD. This can be modified during or after creation, and before expiration.

.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior expire_behavior = 3;

Parameter
Name Description
value int

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

Returns
Type Description
FreeInstanceMetadata.Builder

This builder for chaining.

setExpireTime(Timestamp value)

public FreeInstanceMetadata.Builder setExpireTime(Timestamp value)

Output only. Timestamp after which the instance will either be upgraded or scheduled for deletion after a grace period. ExpireBehavior is used to choose between upgrading or scheduling the free instance for deletion. This timestamp is set during the creation of a free instance.

.google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
FreeInstanceMetadata.Builder

setExpireTime(Timestamp.Builder builderForValue)

public FreeInstanceMetadata.Builder setExpireTime(Timestamp.Builder builderForValue)

Output only. Timestamp after which the instance will either be upgraded or scheduled for deletion after a grace period. ExpireBehavior is used to choose between upgrading or scheduling the free instance for deletion. This timestamp is set during the creation of a free instance.

.google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
FreeInstanceMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpgradeTime(Timestamp value)

public FreeInstanceMetadata.Builder setUpgradeTime(Timestamp value)

Output only. If present, the timestamp at which the free instance was upgraded to a provisioned instance.

.google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
FreeInstanceMetadata.Builder

setUpgradeTime(Timestamp.Builder builderForValue)

public FreeInstanceMetadata.Builder setUpgradeTime(Timestamp.Builder builderForValue)

Output only. If present, the timestamp at which the free instance was upgraded to a provisioned instance.

.google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
FreeInstanceMetadata.Builder