Class InstanceMoveRequest.Builder (1.53.0)

public static final class InstanceMoveRequest.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/zone

optional string destination_zone = 131854653;

Returns
Type Description
InstanceMoveRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance

optional string target_instance = 289769347;

Returns
Type Description
InstanceMoveRequest.Builder

This builder for chaining.

clone()

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

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: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/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: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/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: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/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: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/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: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/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: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance

optional string target_instance = 289769347;

Returns
Type Description
boolean

Whether the targetInstance field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceMoveRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/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: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/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: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/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.

setUnknownFields(UnknownFieldSet unknownFields)

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