Class Compute.VolumeRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Compute.VolumeRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<Compute.VolumeRequest.Builder>
namespace.cloud.compute.v1beta.Compute.VolumeRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Compute.VolumeRequestOrBuilder
Enclosing class:
Compute.VolumeRequest

public static final class Compute.VolumeRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<Compute.VolumeRequest.Builder> implements Compute.VolumeRequestOrBuilder
Protobuf type namespace.cloud.compute.v1beta.VolumeRequest
  • 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<Compute.VolumeRequest.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<Compute.VolumeRequest.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<Compute.VolumeRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Compute.VolumeRequest.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<Compute.VolumeRequest.Builder>
      Throws:
      IOException
    • getMountPoint

      public String getMountPoint()
       The absolute path where the volume is mounted inside the instance.
       
      string mount_point = 1;
      Specified by:
      getMountPoint in interface Compute.VolumeRequestOrBuilder
      Returns:
      The mountPoint.
    • getMountPointBytes

      public com.google.protobuf.ByteString getMountPointBytes()
       The absolute path where the volume is mounted inside the instance.
       
      string mount_point = 1;
      Specified by:
      getMountPointBytes in interface Compute.VolumeRequestOrBuilder
      Returns:
      The bytes for mountPoint.
    • setMountPoint

      public Compute.VolumeRequest.Builder setMountPoint(String value)
       The absolute path where the volume is mounted inside the instance.
       
      string mount_point = 1;
      Parameters:
      value - The mountPoint to set.
      Returns:
      This builder for chaining.
    • clearMountPoint

      public Compute.VolumeRequest.Builder clearMountPoint()
       The absolute path where the volume is mounted inside the instance.
       
      string mount_point = 1;
      Returns:
      This builder for chaining.
    • setMountPointBytes

      public Compute.VolumeRequest.Builder setMountPointBytes(com.google.protobuf.ByteString value)
       The absolute path where the volume is mounted inside the instance.
       
      string mount_point = 1;
      Parameters:
      value - The bytes for mountPoint to set.
      Returns:
      This builder for chaining.
    • getTag

      public String getTag()
       A logical identifier for volume reuse across instances. For CACHE volumes,
       the platform attempts to mount a recently used volume with the same tag.
       For PERSISTENT volumes, the tag maps to a named durable volume.
       
      string tag = 2;
      Specified by:
      getTag in interface Compute.VolumeRequestOrBuilder
      Returns:
      The tag.
    • getTagBytes

      public com.google.protobuf.ByteString getTagBytes()
       A logical identifier for volume reuse across instances. For CACHE volumes,
       the platform attempts to mount a recently used volume with the same tag.
       For PERSISTENT volumes, the tag maps to a named durable volume.
       
      string tag = 2;
      Specified by:
      getTagBytes in interface Compute.VolumeRequestOrBuilder
      Returns:
      The bytes for tag.
    • setTag

      public Compute.VolumeRequest.Builder setTag(String value)
       A logical identifier for volume reuse across instances. For CACHE volumes,
       the platform attempts to mount a recently used volume with the same tag.
       For PERSISTENT volumes, the tag maps to a named durable volume.
       
      string tag = 2;
      Parameters:
      value - The tag to set.
      Returns:
      This builder for chaining.
    • clearTag

      public Compute.VolumeRequest.Builder clearTag()
       A logical identifier for volume reuse across instances. For CACHE volumes,
       the platform attempts to mount a recently used volume with the same tag.
       For PERSISTENT volumes, the tag maps to a named durable volume.
       
      string tag = 2;
      Returns:
      This builder for chaining.
    • setTagBytes

      public Compute.VolumeRequest.Builder setTagBytes(com.google.protobuf.ByteString value)
       A logical identifier for volume reuse across instances. For CACHE volumes,
       the platform attempts to mount a recently used volume with the same tag.
       For PERSISTENT volumes, the tag maps to a named durable volume.
       
      string tag = 2;
      Parameters:
      value - The bytes for tag to set.
      Returns:
      This builder for chaining.
    • getSizeMb

      public long getSizeMb()
       The requested size of the volume in megabytes.
       
      int64 size_mb = 3;
      Specified by:
      getSizeMb in interface Compute.VolumeRequestOrBuilder
      Returns:
      The sizeMb.
    • setSizeMb

      public Compute.VolumeRequest.Builder setSizeMb(long value)
       The requested size of the volume in megabytes.
       
      int64 size_mb = 3;
      Parameters:
      value - The sizeMb to set.
      Returns:
      This builder for chaining.
    • clearSizeMb

      public Compute.VolumeRequest.Builder clearSizeMb()
       The requested size of the volume in megabytes.
       
      int64 size_mb = 3;
      Returns:
      This builder for chaining.
    • getPersistencyKindValue

      public int getPersistencyKindValue()
       The persistency kind of the volume.
       
      .namespace.cloud.compute.v1beta.VolumeRequest.PersistencyKind persistency_kind = 4;
      Specified by:
      getPersistencyKindValue in interface Compute.VolumeRequestOrBuilder
      Returns:
      The enum numeric value on the wire for persistencyKind.
    • setPersistencyKindValue

      public Compute.VolumeRequest.Builder setPersistencyKindValue(int value)
       The persistency kind of the volume.
       
      .namespace.cloud.compute.v1beta.VolumeRequest.PersistencyKind persistency_kind = 4;
      Parameters:
      value - The enum numeric value on the wire for persistencyKind to set.
      Returns:
      This builder for chaining.
    • getPersistencyKind

      public Compute.VolumeRequest.PersistencyKind getPersistencyKind()
       The persistency kind of the volume.
       
      .namespace.cloud.compute.v1beta.VolumeRequest.PersistencyKind persistency_kind = 4;
      Specified by:
      getPersistencyKind in interface Compute.VolumeRequestOrBuilder
      Returns:
      The persistencyKind.
    • setPersistencyKind

       The persistency kind of the volume.
       
      .namespace.cloud.compute.v1beta.VolumeRequest.PersistencyKind persistency_kind = 4;
      Parameters:
      value - The persistencyKind to set.
      Returns:
      This builder for chaining.
    • clearPersistencyKind

      public Compute.VolumeRequest.Builder clearPersistencyKind()
       The persistency kind of the volume.
       
      .namespace.cloud.compute.v1beta.VolumeRequest.PersistencyKind persistency_kind = 4;
      Returns:
      This builder for chaining.
    • getFromSnapshotId

      public String getFromSnapshotId()
       If set, initializes the volume from the specified snapshot.
       Only supported for PERSISTENT volumes. If set on a CACHE volume, the request will fail.
       For persistent volumes, a new snapshot is created starting from the specified snapshot ID.
       
      string from_snapshot_id = 5;
      Specified by:
      getFromSnapshotId in interface Compute.VolumeRequestOrBuilder
      Returns:
      The fromSnapshotId.
    • getFromSnapshotIdBytes

      public com.google.protobuf.ByteString getFromSnapshotIdBytes()
       If set, initializes the volume from the specified snapshot.
       Only supported for PERSISTENT volumes. If set on a CACHE volume, the request will fail.
       For persistent volumes, a new snapshot is created starting from the specified snapshot ID.
       
      string from_snapshot_id = 5;
      Specified by:
      getFromSnapshotIdBytes in interface Compute.VolumeRequestOrBuilder
      Returns:
      The bytes for fromSnapshotId.
    • setFromSnapshotId

      public Compute.VolumeRequest.Builder setFromSnapshotId(String value)
       If set, initializes the volume from the specified snapshot.
       Only supported for PERSISTENT volumes. If set on a CACHE volume, the request will fail.
       For persistent volumes, a new snapshot is created starting from the specified snapshot ID.
       
      string from_snapshot_id = 5;
      Parameters:
      value - The fromSnapshotId to set.
      Returns:
      This builder for chaining.
    • clearFromSnapshotId

      public Compute.VolumeRequest.Builder clearFromSnapshotId()
       If set, initializes the volume from the specified snapshot.
       Only supported for PERSISTENT volumes. If set on a CACHE volume, the request will fail.
       For persistent volumes, a new snapshot is created starting from the specified snapshot ID.
       
      string from_snapshot_id = 5;
      Returns:
      This builder for chaining.
    • setFromSnapshotIdBytes

      public Compute.VolumeRequest.Builder setFromSnapshotIdBytes(com.google.protobuf.ByteString value)
       If set, initializes the volume from the specified snapshot.
       Only supported for PERSISTENT volumes. If set on a CACHE volume, the request will fail.
       For persistent volumes, a new snapshot is created starting from the specified snapshot ID.
       
      string from_snapshot_id = 5;
      Parameters:
      value - The bytes for fromSnapshotId to set.
      Returns:
      This builder for chaining.