Class InstanceMoveRequest.Builder (1.33.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstanceMoveRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstanceMoveRequest.Builder
Overrides

build()

public InstanceMoveRequest build()
Returns
TypeDescription
InstanceMoveRequest

buildPartial()

public InstanceMoveRequest buildPartial()
Returns
TypeDescription
InstanceMoveRequest

clear()

public InstanceMoveRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
InstanceMoveRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public InstanceMoveRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InstanceMoveRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceMoveRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
InstanceMoveRequest.Builder

This builder for chaining.

clone()

public InstanceMoveRequest.Builder clone()
Returns
TypeDescription
InstanceMoveRequest.Builder
Overrides

getDefaultInstanceForType()

public InstanceMoveRequest getDefaultInstanceForType()
Returns
TypeDescription
InstanceMoveRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the targetInstance field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstanceMoveRequest other)

public InstanceMoveRequest.Builder mergeFrom(InstanceMoveRequest other)
Parameter
NameDescription
otherInstanceMoveRequest
Returns
TypeDescription
InstanceMoveRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceMoveRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceMoveRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InstanceMoveRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InstanceMoveRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceMoveRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The destinationZone to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for destinationZone to set.

Returns
TypeDescription
InstanceMoveRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceMoveRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstanceMoveRequest.Builder
Overrides

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

public InstanceMoveRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The targetInstance to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for targetInstance to set.

Returns
TypeDescription
InstanceMoveRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceMoveRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstanceMoveRequest.Builder
Overrides