Class MoveInstanceRequest.Builder (6.83.0)

public static final class MoveInstanceRequest.Builder extends GeneratedMessageV3.Builder<MoveInstanceRequest.Builder> implements MoveInstanceRequestOrBuilder

The request for MoveInstance.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MoveInstanceRequest build()
Returns
Type Description
MoveInstanceRequest

buildPartial()

public MoveInstanceRequest buildPartial()
Returns
Type Description
MoveInstanceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public MoveInstanceRequest.Builder clearName()

Required. The instance to move. Values are of the form projects/<project>/instances/<instance>.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
MoveInstanceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTargetConfig()

public MoveInstanceRequest.Builder clearTargetConfig()

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

string target_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
MoveInstanceRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public MoveInstanceRequest getDefaultInstanceForType()
Returns
Type Description
MoveInstanceRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The instance to move. Values are of the form projects/<project>/instances/<instance>.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The instance to move. Values are of the form projects/<project>/instances/<instance>.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getTargetConfig()

public String getTargetConfig()

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

string target_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The targetConfig.

getTargetConfigBytes()

public ByteString getTargetConfigBytes()

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

string target_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for targetConfig.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(MoveInstanceRequest other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public MoveInstanceRequest.Builder setName(String value)

Required. The instance to move. Values are of the form projects/<project>/instances/<instance>.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
MoveInstanceRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public MoveInstanceRequest.Builder setNameBytes(ByteString value)

Required. The instance to move. Values are of the form projects/<project>/instances/<instance>.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
MoveInstanceRequest.Builder

This builder for chaining.

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

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

setTargetConfig(String value)

public MoveInstanceRequest.Builder setTargetConfig(String value)

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

string target_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The targetConfig to set.

Returns
Type Description
MoveInstanceRequest.Builder

This builder for chaining.

setTargetConfigBytes(ByteString value)

public MoveInstanceRequest.Builder setTargetConfigBytes(ByteString value)

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

string target_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for targetConfig to set.

Returns
Type Description
MoveInstanceRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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