public static final class InstanceMoveRequest.Builder extends GeneratedMessage.Builder<InstanceMoveRequest.Builder> implements InstanceMoveRequestOrBuilder Protobuf type google.cloud.compute.v1.InstanceMoveRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > InstanceMoveRequest.BuilderImplements
InstanceMoveRequestOrBuilderStatic 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 |
|
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. |
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. |
getDefaultInstanceForType()
public InstanceMoveRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
InstanceMoveRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public InstanceMoveRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
InstanceMoveRequest.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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:
- 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 |
StringThe 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 |
ByteStringThe bytes for targetInstance to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceMoveRequest.Builder |
This builder for chaining. |