Class MoveInstanceMetadata.Builder (6.108.0)

public static final class MoveInstanceMetadata.Builder extends GeneratedMessage.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

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

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.

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

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

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

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.