Package com.google.cloud.compute.v1
Class InstanceMoveRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<InstanceMoveRequest.Builder>
-
- com.google.cloud.compute.v1.InstanceMoveRequest.Builder
-
- All Implemented Interfaces:
InstanceMoveRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InstanceMoveRequest
public static final class InstanceMoveRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InstanceMoveRequest.Builder> implements InstanceMoveRequestOrBuilder
Protobuf typegoogle.cloud.compute.v1.InstanceMoveRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceMoveRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)InstanceMoveRequestbuild()InstanceMoveRequestbuildPartial()InstanceMoveRequest.Builderclear()InstanceMoveRequest.BuilderclearDestinationZone()The URL of the destination zone to move the instance.InstanceMoveRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)InstanceMoveRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)InstanceMoveRequest.BuilderclearTargetInstance()The URL of the target instance to move.InstanceMoveRequest.Builderclone()InstanceMoveRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDestinationZone()The URL of the destination zone to move the instance.com.google.protobuf.ByteStringgetDestinationZoneBytes()The URL of the destination zone to move the instance.StringgetTargetInstance()The URL of the target instance to move.com.google.protobuf.ByteStringgetTargetInstanceBytes()The URL of the target instance to move.booleanhasDestinationZone()The URL of the destination zone to move the instance.booleanhasTargetInstance()The URL of the target instance to move.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()InstanceMoveRequest.BuildermergeFrom(InstanceMoveRequest other)InstanceMoveRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)InstanceMoveRequest.BuildermergeFrom(com.google.protobuf.Message other)InstanceMoveRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)InstanceMoveRequest.BuildersetDestinationZone(String value)The URL of the destination zone to move the instance.InstanceMoveRequest.BuildersetDestinationZoneBytes(com.google.protobuf.ByteString value)The URL of the destination zone to move the instance.InstanceMoveRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)InstanceMoveRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)InstanceMoveRequest.BuildersetTargetInstance(String value)The URL of the target instance to move.InstanceMoveRequest.BuildersetTargetInstanceBytes(com.google.protobuf.ByteString value)The URL of the target instance to move.InstanceMoveRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceMoveRequest.Builder>
-
clear
public InstanceMoveRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceMoveRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceMoveRequest.Builder>
-
getDefaultInstanceForType
public InstanceMoveRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public InstanceMoveRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InstanceMoveRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InstanceMoveRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceMoveRequest.Builder>
-
setField
public InstanceMoveRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceMoveRequest.Builder>
-
clearField
public InstanceMoveRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceMoveRequest.Builder>
-
clearOneof
public InstanceMoveRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceMoveRequest.Builder>
-
setRepeatedField
public InstanceMoveRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceMoveRequest.Builder>
-
addRepeatedField
public InstanceMoveRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceMoveRequest.Builder>
-
mergeFrom
public InstanceMoveRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceMoveRequest.Builder>
-
mergeFrom
public InstanceMoveRequest.Builder mergeFrom(InstanceMoveRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceMoveRequest.Builder>
-
mergeFrom
public InstanceMoveRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceMoveRequest.Builder>- Throws:
IOException
-
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;- Specified by:
hasDestinationZonein interfaceInstanceMoveRequestOrBuilder- Returns:
- Whether the destinationZone field is set.
-
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;- Specified by:
getDestinationZonein interfaceInstanceMoveRequestOrBuilder- Returns:
- The destinationZone.
-
getDestinationZoneBytes
public com.google.protobuf.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;- Specified by:
getDestinationZoneBytesin interfaceInstanceMoveRequestOrBuilder- Returns:
- The bytes for destinationZone.
-
setDestinationZone
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;- Parameters:
value- The destinationZone to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDestinationZoneBytes
public InstanceMoveRequest.Builder setDestinationZoneBytes(com.google.protobuf.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;- Parameters:
value- The bytes for destinationZone to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasTargetInstancein interfaceInstanceMoveRequestOrBuilder- Returns:
- Whether the targetInstance field is set.
-
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;- Specified by:
getTargetInstancein interfaceInstanceMoveRequestOrBuilder- Returns:
- The targetInstance.
-
getTargetInstanceBytes
public com.google.protobuf.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;- Specified by:
getTargetInstanceBytesin interfaceInstanceMoveRequestOrBuilder- Returns:
- The bytes for targetInstance.
-
setTargetInstance
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;- Parameters:
value- The targetInstance to set.- Returns:
- 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:
- This builder for chaining.
-
setTargetInstanceBytes
public InstanceMoveRequest.Builder setTargetInstanceBytes(com.google.protobuf.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;- Parameters:
value- The bytes for targetInstance to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final InstanceMoveRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceMoveRequest.Builder>
-
mergeUnknownFields
public final InstanceMoveRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceMoveRequest.Builder>
-
-