Class InstanceMoveRequest.Builder (1.93.0)

public static final class InstanceMoveRequest.Builder extends GeneratedMessage.Builder<InstanceMoveRequest.Builder> implements InstanceMoveRequestOrBuilder

Protobuf type google.cloud.compute.v1.InstanceMoveRequest

Static Methods

getDescriptor()

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

Methods

build()

public InstanceMoveRequest build()
Returns
Type Description
InstanceMoveRequest

buildPartial()

public InstanceMoveRequest buildPartial()
Returns
Type Description
InstanceMoveRequest

clear()

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

clearDestinationZone()

public InstanceMoveRequest.Builder clearDestinationZone()

The URL of the destination zone to move the instance. This can be a full or partial URL. For example, the following are all valid URLs to a zone:

optional string destination_zone = 131854653;

Returns
Type Description
InstanceMoveRequest.Builder

This builder for chaining.

clearTargetInstance()

public InstanceMoveRequest.Builder clearTargetInstance()

The URL of the target instance to move. This can be a full or partial URL. For example, the following are all valid URLs to an instance:

optional string target_instance = 289769347;

Returns
Type Description
InstanceMoveRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public InstanceMoveRequest getDefaultInstanceForType()
Returns
Type Description
InstanceMoveRequest

getDescriptorForType()

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

getDestinationZone()

public String getDestinationZone()

The URL of the destination zone to move the instance. This can be a full or partial URL. For example, the following are all valid URLs to a zone:

optional string destination_zone = 131854653;

Returns
Type Description
String

The destinationZone.

getDestinationZoneBytes()

public ByteString getDestinationZoneBytes()

The URL of the destination zone to move the instance. This can be a full or partial URL. For example, the following are all valid URLs to a zone:

optional string destination_zone = 131854653;

Returns
Type Description
ByteString

The bytes for destinationZone.

getTargetInstance()

public String getTargetInstance()

The URL of the target instance to move. This can be a full or partial URL. For example, the following are all valid URLs to an instance:

optional string target_instance = 289769347;

Returns
Type Description
String

The targetInstance.

getTargetInstanceBytes()

public ByteString getTargetInstanceBytes()

The URL of the target instance to move. This can be a full or partial URL. For example, the following are all valid URLs to an instance:

optional string target_instance = 289769347;

Returns
Type Description
ByteString

The bytes for targetInstance.

hasDestinationZone()

public boolean hasDestinationZone()

The URL of the destination zone to move the instance. This can be a full or partial URL. For example, the following are all valid URLs to a zone:

optional string destination_zone = 131854653;

Returns
Type Description
boolean

Whether the destinationZone field is set.

hasTargetInstance()

public boolean hasTargetInstance()

The URL of the target instance to move. This can be a full or partial URL. For example, the following are all valid URLs to an instance:

optional string target_instance = 289769347;

Returns
Type Description
boolean

Whether the targetInstance field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceMoveRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDestinationZone(String value)

public InstanceMoveRequest.Builder setDestinationZone(String value)

The URL of the destination zone to move the instance. This can be a full or partial URL. For example, the following are all valid URLs to a zone:

optional string destination_zone = 131854653;

Parameter
Name Description
value String

The destinationZone to set.

Returns
Type Description
InstanceMoveRequest.Builder

This builder for chaining.

setDestinationZoneBytes(ByteString value)

public InstanceMoveRequest.Builder setDestinationZoneBytes(ByteString value)

The URL of the destination zone to move the instance. This can be a full or partial URL. For example, the following are all valid URLs to a zone:

optional string destination_zone = 131854653;

Parameter
Name Description
value ByteString

The bytes for destinationZone to set.

Returns
Type Description
InstanceMoveRequest.Builder

This builder for chaining.

setTargetInstance(String value)

public InstanceMoveRequest.Builder setTargetInstance(String value)

The URL of the target instance to move. This can be a full or partial URL. For example, the following are all valid URLs to an instance:

optional string target_instance = 289769347;

Parameter
Name Description
value String

The targetInstance to set.

Returns
Type Description
InstanceMoveRequest.Builder

This builder for chaining.

setTargetInstanceBytes(ByteString value)

public InstanceMoveRequest.Builder setTargetInstanceBytes(ByteString value)

The URL of the target instance to move. This can be a full or partial URL. For example, the following are all valid URLs to an instance:

optional string target_instance = 289769347;

Parameter
Name Description
value ByteString

The bytes for targetInstance to set.

Returns
Type Description
InstanceMoveRequest.Builder

This builder for chaining.