Class InstanceMoveRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<InstanceMoveRequest.Builder> implements InstanceMoveRequestOrBuilder
 
Protobuf type google.cloud.compute.v1.InstanceMoveRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<InstanceMoveRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<InstanceMoveRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<InstanceMoveRequest.Builder>
    • getDefaultInstanceForType

      public InstanceMoveRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public InstanceMoveRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public InstanceMoveRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public InstanceMoveRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceMoveRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<InstanceMoveRequest.Builder>
    • mergeFrom

      public InstanceMoveRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasDestinationZone in interface InstanceMoveRequestOrBuilder
      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:
      getDestinationZone in interface InstanceMoveRequestOrBuilder
      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:
      getDestinationZoneBytes in interface InstanceMoveRequestOrBuilder
      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:
      hasTargetInstance in interface InstanceMoveRequestOrBuilder
      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:
      getTargetInstance in interface InstanceMoveRequestOrBuilder
      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:
      getTargetInstanceBytes in interface InstanceMoveRequestOrBuilder
      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.