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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public FreeInstanceMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public FreeInstanceMetadata build()
public FreeInstanceMetadata buildPartial()
public FreeInstanceMetadata.Builder clear()
Overrides
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;
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];
public FreeInstanceMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public FreeInstanceMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
public FreeInstanceMetadata.Builder clone()
Overrides
public FreeInstanceMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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;
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.
|
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.
|
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];
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];
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.
|
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];
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];
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
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];
public FreeInstanceMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public FreeInstanceMetadata.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public FreeInstanceMetadata.Builder mergeFrom(FreeInstanceMetadata other)
public final FreeInstanceMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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];
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;
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.
|
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];
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
|
public FreeInstanceMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public FreeInstanceMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final FreeInstanceMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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];
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
|