public static final class InstanceMoveRequest.Builder extends GeneratedMessageV3.Builder<InstanceMoveRequest.Builder> implements InstanceMoveRequestOrBuilder
Protobuf type google.cloud.compute.v1.InstanceMoveRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InstanceMoveRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public InstanceMoveRequest build()
Returns
buildPartial()
public InstanceMoveRequest buildPartial()
Returns
clear()
public InstanceMoveRequest.Builder clear()
Returns
Overrides
clearDestinationZone()
public InstanceMoveRequest.Builder clearDestinationZone()
Returns
clearField(Descriptors.FieldDescriptor field)
public InstanceMoveRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public InstanceMoveRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public InstanceMoveRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public InstanceMoveRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDestinationZone()
public String getDestinationZone()
Returns
Type | Description |
String | The destinationZone.
|
getDestinationZoneBytes()
public ByteString getDestinationZoneBytes()
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()
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(InstanceMoveRequest other)
public InstanceMoveRequest.Builder mergeFrom(InstanceMoveRequest other)
Parameter
Returns
public InstanceMoveRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public InstanceMoveRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InstanceMoveRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setDestinationZone(String value)
public InstanceMoveRequest.Builder setDestinationZone(String value)
Parameter
Name | Description |
value | String
The destinationZone to set.
|
Returns
setDestinationZoneBytes(ByteString value)
public InstanceMoveRequest.Builder setDestinationZoneBytes(ByteString value)
Parameter
Name | Description |
value | ByteString
The bytes for destinationZone to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public InstanceMoveRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InstanceMoveRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
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
setUnknownFields(UnknownFieldSet unknownFields)
public final InstanceMoveRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides