Class DiskMoveRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DiskMoveRequest.Builder>
com.google.cloud.compute.v1.DiskMoveRequest.Builder
All Implemented Interfaces:
DiskMoveRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DiskMoveRequest

public static final class DiskMoveRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<DiskMoveRequest.Builder> implements DiskMoveRequestOrBuilder
 
Protobuf type google.cloud.compute.v1.DiskMoveRequest
  • 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<DiskMoveRequest.Builder>
    • clear

      public DiskMoveRequest.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<DiskMoveRequest.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<DiskMoveRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public DiskMoveRequest.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<DiskMoveRequest.Builder>
    • mergeFrom

      public DiskMoveRequest.Builder mergeFrom(DiskMoveRequest other)
    • isInitialized

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

      public DiskMoveRequest.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<DiskMoveRequest.Builder>
      Throws:
      IOException
    • hasDestinationZone

      public boolean hasDestinationZone()
       The URL of the destination zone to move the disk. 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 DiskMoveRequestOrBuilder
      Returns:
      Whether the destinationZone field is set.
    • getDestinationZone

      public String getDestinationZone()
       The URL of the destination zone to move the disk. 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 DiskMoveRequestOrBuilder
      Returns:
      The destinationZone.
    • getDestinationZoneBytes

      public com.google.protobuf.ByteString getDestinationZoneBytes()
       The URL of the destination zone to move the disk. 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 DiskMoveRequestOrBuilder
      Returns:
      The bytes for destinationZone.
    • setDestinationZone

      public DiskMoveRequest.Builder setDestinationZone(String value)
       The URL of the destination zone to move the disk. 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 DiskMoveRequest.Builder clearDestinationZone()
       The URL of the destination zone to move the disk. 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 DiskMoveRequest.Builder setDestinationZoneBytes(com.google.protobuf.ByteString value)
       The URL of the destination zone to move the disk. 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.
    • hasTargetDisk

      public boolean hasTargetDisk()
       The URL of the target disk to move. This can be a full or partial URL.
       For example, the following are all valid URLs to a disk:
      
       - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
       - projects/project/zones/zone/disks/disk
       - zones/zone/disks/disk
       
      optional string target_disk = 62433163;
      Specified by:
      hasTargetDisk in interface DiskMoveRequestOrBuilder
      Returns:
      Whether the targetDisk field is set.
    • getTargetDisk

      public String getTargetDisk()
       The URL of the target disk to move. This can be a full or partial URL.
       For example, the following are all valid URLs to a disk:
      
       - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
       - projects/project/zones/zone/disks/disk
       - zones/zone/disks/disk
       
      optional string target_disk = 62433163;
      Specified by:
      getTargetDisk in interface DiskMoveRequestOrBuilder
      Returns:
      The targetDisk.
    • getTargetDiskBytes

      public com.google.protobuf.ByteString getTargetDiskBytes()
       The URL of the target disk to move. This can be a full or partial URL.
       For example, the following are all valid URLs to a disk:
      
       - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
       - projects/project/zones/zone/disks/disk
       - zones/zone/disks/disk
       
      optional string target_disk = 62433163;
      Specified by:
      getTargetDiskBytes in interface DiskMoveRequestOrBuilder
      Returns:
      The bytes for targetDisk.
    • setTargetDisk

      public DiskMoveRequest.Builder setTargetDisk(String value)
       The URL of the target disk to move. This can be a full or partial URL.
       For example, the following are all valid URLs to a disk:
      
       - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
       - projects/project/zones/zone/disks/disk
       - zones/zone/disks/disk
       
      optional string target_disk = 62433163;
      Parameters:
      value - The targetDisk to set.
      Returns:
      This builder for chaining.
    • clearTargetDisk

      public DiskMoveRequest.Builder clearTargetDisk()
       The URL of the target disk to move. This can be a full or partial URL.
       For example, the following are all valid URLs to a disk:
      
       - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
       - projects/project/zones/zone/disks/disk
       - zones/zone/disks/disk
       
      optional string target_disk = 62433163;
      Returns:
      This builder for chaining.
    • setTargetDiskBytes

      public DiskMoveRequest.Builder setTargetDiskBytes(com.google.protobuf.ByteString value)
       The URL of the target disk to move. This can be a full or partial URL.
       For example, the following are all valid URLs to a disk:
      
       - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
       - projects/project/zones/zone/disks/disk
       - zones/zone/disks/disk
       
      optional string target_disk = 62433163;
      Parameters:
      value - The bytes for targetDisk to set.
      Returns:
      This builder for chaining.