Class MoveInstanceMetadata.Builder (6.80.1)

public static final class MoveInstanceMetadata.Builder extends GeneratedMessageV3.Builder<MoveInstanceMetadata.Builder> implements MoveInstanceMetadataOrBuilder

Metadata type for the operation returned by MoveInstance.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MoveInstanceMetadata build()
Returns
Type Description
MoveInstanceMetadata

buildPartial()

public MoveInstanceMetadata buildPartial()
Returns
Type Description
MoveInstanceMetadata

clear()

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

clearCancelTime()

public MoveInstanceMetadata.Builder clearCancelTime()

The time at which this operation was cancelled.

.google.protobuf.Timestamp cancel_time = 3;

Returns
Type Description
MoveInstanceMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProgress()

public MoveInstanceMetadata.Builder clearProgress()

The progress of the MoveInstance operation. progress_percent is reset when cancellation is requested.

.google.spanner.admin.instance.v1.OperationProgress progress = 2;

Returns
Type Description
MoveInstanceMetadata.Builder

clearTargetConfig()

public MoveInstanceMetadata.Builder clearTargetConfig()

The target instance configuration where to move the instance. Values are of the form projects/<project>/instanceConfigs/<config>.

string target_config = 1;

Returns
Type Description
MoveInstanceMetadata.Builder

This builder for chaining.

clone()

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

getCancelTime()

public Timestamp getCancelTime()

The time at which this operation was cancelled.

.google.protobuf.Timestamp cancel_time = 3;

Returns
Type Description
Timestamp

The cancelTime.

getCancelTimeBuilder()

public Timestamp.Builder getCancelTimeBuilder()

The time at which this operation was cancelled.

.google.protobuf.Timestamp cancel_time = 3;

Returns
Type Description
Builder

getCancelTimeOrBuilder()

public TimestampOrBuilder getCancelTimeOrBuilder()

The time at which this operation was cancelled.

.google.protobuf.Timestamp cancel_time = 3;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public MoveInstanceMetadata getDefaultInstanceForType()
Returns
Type Description
MoveInstanceMetadata

getDescriptorForType()

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

getProgress()

public OperationProgress getProgress()

The progress of the MoveInstance operation. progress_percent is reset when cancellation is requested.

.google.spanner.admin.instance.v1.OperationProgress progress = 2;

Returns
Type Description
OperationProgress

The progress.

getProgressBuilder()

public OperationProgress.Builder getProgressBuilder()

The progress of the MoveInstance operation. progress_percent is reset when cancellation is requested.

.google.spanner.admin.instance.v1.OperationProgress progress = 2;

Returns
Type Description
OperationProgress.Builder

getProgressOrBuilder()

public OperationProgressOrBuilder getProgressOrBuilder()

The progress of the MoveInstance operation. progress_percent is reset when cancellation is requested.

.google.spanner.admin.instance.v1.OperationProgress progress = 2;

Returns
Type Description
OperationProgressOrBuilder

getTargetConfig()

public String getTargetConfig()

The target instance configuration where to move the instance. Values are of the form projects/<project>/instanceConfigs/<config>.

string target_config = 1;

Returns
Type Description
String

The targetConfig.

getTargetConfigBytes()

public ByteString getTargetConfigBytes()

The target instance configuration where to move the instance. Values are of the form projects/<project>/instanceConfigs/<config>.

string target_config = 1;

Returns
Type Description
ByteString

The bytes for targetConfig.

hasCancelTime()

public boolean hasCancelTime()

The time at which this operation was cancelled.

.google.protobuf.Timestamp cancel_time = 3;

Returns
Type Description
boolean

Whether the cancelTime field is set.

hasProgress()

public boolean hasProgress()

The progress of the MoveInstance operation. progress_percent is reset when cancellation is requested.

.google.spanner.admin.instance.v1.OperationProgress progress = 2;

Returns
Type Description
boolean

Whether the progress field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCancelTime(Timestamp value)

public MoveInstanceMetadata.Builder mergeCancelTime(Timestamp value)

The time at which this operation was cancelled.

.google.protobuf.Timestamp cancel_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
MoveInstanceMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(MoveInstanceMetadata other)

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

mergeProgress(OperationProgress value)

public MoveInstanceMetadata.Builder mergeProgress(OperationProgress value)

The progress of the MoveInstance operation. progress_percent is reset when cancellation is requested.

.google.spanner.admin.instance.v1.OperationProgress progress = 2;

Parameter
Name Description
value OperationProgress
Returns
Type Description
MoveInstanceMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCancelTime(Timestamp value)

public MoveInstanceMetadata.Builder setCancelTime(Timestamp value)

The time at which this operation was cancelled.

.google.protobuf.Timestamp cancel_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
MoveInstanceMetadata.Builder

setCancelTime(Timestamp.Builder builderForValue)

public MoveInstanceMetadata.Builder setCancelTime(Timestamp.Builder builderForValue)

The time at which this operation was cancelled.

.google.protobuf.Timestamp cancel_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MoveInstanceMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setProgress(OperationProgress value)

public MoveInstanceMetadata.Builder setProgress(OperationProgress value)

The progress of the MoveInstance operation. progress_percent is reset when cancellation is requested.

.google.spanner.admin.instance.v1.OperationProgress progress = 2;

Parameter
Name Description
value OperationProgress
Returns
Type Description
MoveInstanceMetadata.Builder

setProgress(OperationProgress.Builder builderForValue)

public MoveInstanceMetadata.Builder setProgress(OperationProgress.Builder builderForValue)

The progress of the MoveInstance operation. progress_percent is reset when cancellation is requested.

.google.spanner.admin.instance.v1.OperationProgress progress = 2;

Parameter
Name Description
builderForValue OperationProgress.Builder
Returns
Type Description
MoveInstanceMetadata.Builder

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

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

setTargetConfig(String value)

public MoveInstanceMetadata.Builder setTargetConfig(String value)

The target instance configuration where to move the instance. Values are of the form projects/<project>/instanceConfigs/<config>.

string target_config = 1;

Parameter
Name Description
value String

The targetConfig to set.

Returns
Type Description
MoveInstanceMetadata.Builder

This builder for chaining.

setTargetConfigBytes(ByteString value)

public MoveInstanceMetadata.Builder setTargetConfigBytes(ByteString value)

The target instance configuration where to move the instance. Values are of the form projects/<project>/instanceConfigs/<config>.

string target_config = 1;

Parameter
Name Description
value ByteString

The bytes for targetConfig to set.

Returns
Type Description
MoveInstanceMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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