Interface VolumeOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Volume, Volume.Builder

@Generated public interface VolumeOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Device name of an attached disk volume, which should align with a device_name specified by job.allocation_policy.instances[0].policy.disks[i].device_name or defined by the given instance template in job.allocation_policy.instances[0].instance_template.
    com.google.protobuf.ByteString
    Device name of an attached disk volume, which should align with a device_name specified by job.allocation_policy.instances[0].policy.disks[i].device_name or defined by the given instance template in job.allocation_policy.instances[0].instance_template.
    A Google Cloud Storage (GCS) volume.
    A Google Cloud Storage (GCS) volume.
    getMountOptions(int index)
    Mount options vary based on the type of storage volume: * For a Cloud Storage bucket, all the mount options provided by the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli) are supported
    com.google.protobuf.ByteString
    Mount options vary based on the type of storage volume: * For a Cloud Storage bucket, all the mount options provided by the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli) are supported
    int
    Mount options vary based on the type of storage volume: * For a Cloud Storage bucket, all the mount options provided by the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli) are supported
    Mount options vary based on the type of storage volume: * For a Cloud Storage bucket, all the mount options provided by the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli) are supported
    The mount path for the volume, e.g.
    com.google.protobuf.ByteString
    The mount path for the volume, e.g.
    A Network File System (NFS) volume.
    A Network File System (NFS) volume.
    Deprecated.
    google.cloud.batch.v1alpha.Volume.pd is deprecated.
    Deprecated.
     
    boolean
    Device name of an attached disk volume, which should align with a device_name specified by job.allocation_policy.instances[0].policy.disks[i].device_name or defined by the given instance template in job.allocation_policy.instances[0].instance_template.
    boolean
    A Google Cloud Storage (GCS) volume.
    boolean
    A Network File System (NFS) volume.
    boolean
    Deprecated.
    google.cloud.batch.v1alpha.Volume.pd is deprecated.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasNfs

      boolean hasNfs()
       A Network File System (NFS) volume. For example, a
       Filestore file share.
       
      .google.cloud.batch.v1alpha.NFS nfs = 1;
      Returns:
      Whether the nfs field is set.
    • getNfs

      NFS getNfs()
       A Network File System (NFS) volume. For example, a
       Filestore file share.
       
      .google.cloud.batch.v1alpha.NFS nfs = 1;
      Returns:
      The nfs.
    • getNfsOrBuilder

      NFSOrBuilder getNfsOrBuilder()
       A Network File System (NFS) volume. For example, a
       Filestore file share.
       
      .google.cloud.batch.v1alpha.NFS nfs = 1;
    • hasPd

      @Deprecated boolean hasPd()
      Deprecated.
      google.cloud.batch.v1alpha.Volume.pd is deprecated. See google/cloud/batch/v1alpha/volume.proto;l=36
       Deprecated: please use device_name instead.
       
      .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true];
      Returns:
      Whether the pd field is set.
    • getPd

      @Deprecated PD getPd()
      Deprecated.
      google.cloud.batch.v1alpha.Volume.pd is deprecated. See google/cloud/batch/v1alpha/volume.proto;l=36
       Deprecated: please use device_name instead.
       
      .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true];
      Returns:
      The pd.
    • getPdOrBuilder

      @Deprecated PDOrBuilder getPdOrBuilder()
      Deprecated.
       Deprecated: please use device_name instead.
       
      .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true];
    • hasGcs

      boolean hasGcs()
       A Google Cloud Storage (GCS) volume.
       
      .google.cloud.batch.v1alpha.GCS gcs = 3;
      Returns:
      Whether the gcs field is set.
    • getGcs

      GCS getGcs()
       A Google Cloud Storage (GCS) volume.
       
      .google.cloud.batch.v1alpha.GCS gcs = 3;
      Returns:
      The gcs.
    • getGcsOrBuilder

      GCSOrBuilder getGcsOrBuilder()
       A Google Cloud Storage (GCS) volume.
       
      .google.cloud.batch.v1alpha.GCS gcs = 3;
    • hasDeviceName

      boolean hasDeviceName()
       Device name of an attached disk volume, which should align with a
       device_name specified by
       job.allocation_policy.instances[0].policy.disks[i].device_name or
       defined by the given instance template in
       job.allocation_policy.instances[0].instance_template.
       
      string device_name = 6;
      Returns:
      Whether the deviceName field is set.
    • getDeviceName

      String getDeviceName()
       Device name of an attached disk volume, which should align with a
       device_name specified by
       job.allocation_policy.instances[0].policy.disks[i].device_name or
       defined by the given instance template in
       job.allocation_policy.instances[0].instance_template.
       
      string device_name = 6;
      Returns:
      The deviceName.
    • getDeviceNameBytes

      com.google.protobuf.ByteString getDeviceNameBytes()
       Device name of an attached disk volume, which should align with a
       device_name specified by
       job.allocation_policy.instances[0].policy.disks[i].device_name or
       defined by the given instance template in
       job.allocation_policy.instances[0].instance_template.
       
      string device_name = 6;
      Returns:
      The bytes for deviceName.
    • getMountPath

      String getMountPath()
       The mount path for the volume, e.g. /mnt/disks/share.
       
      string mount_path = 4;
      Returns:
      The mountPath.
    • getMountPathBytes

      com.google.protobuf.ByteString getMountPathBytes()
       The mount path for the volume, e.g. /mnt/disks/share.
       
      string mount_path = 4;
      Returns:
      The bytes for mountPath.
    • getMountOptionsList

      List<String> getMountOptionsList()
       Mount options vary based on the type of storage volume:
      
       * For a Cloud Storage bucket, all the mount options provided
       by
       the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
       are supported.
       * For an existing persistent disk, all mount options provided by the
       [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
       except writing are supported. This is due to restrictions of
       [multi-writer
       mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
       * For any other disk or a Network File System (NFS), all the
       mount options provided by the `mount` command are supported.
       
      repeated string mount_options = 5;
      Returns:
      A list containing the mountOptions.
    • getMountOptionsCount

      int getMountOptionsCount()
       Mount options vary based on the type of storage volume:
      
       * For a Cloud Storage bucket, all the mount options provided
       by
       the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
       are supported.
       * For an existing persistent disk, all mount options provided by the
       [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
       except writing are supported. This is due to restrictions of
       [multi-writer
       mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
       * For any other disk or a Network File System (NFS), all the
       mount options provided by the `mount` command are supported.
       
      repeated string mount_options = 5;
      Returns:
      The count of mountOptions.
    • getMountOptions

      String getMountOptions(int index)
       Mount options vary based on the type of storage volume:
      
       * For a Cloud Storage bucket, all the mount options provided
       by
       the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
       are supported.
       * For an existing persistent disk, all mount options provided by the
       [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
       except writing are supported. This is due to restrictions of
       [multi-writer
       mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
       * For any other disk or a Network File System (NFS), all the
       mount options provided by the `mount` command are supported.
       
      repeated string mount_options = 5;
      Parameters:
      index - The index of the element to return.
      Returns:
      The mountOptions at the given index.
    • getMountOptionsBytes

      com.google.protobuf.ByteString getMountOptionsBytes(int index)
       Mount options vary based on the type of storage volume:
      
       * For a Cloud Storage bucket, all the mount options provided
       by
       the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
       are supported.
       * For an existing persistent disk, all mount options provided by the
       [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
       except writing are supported. This is due to restrictions of
       [multi-writer
       mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
       * For any other disk or a Network File System (NFS), all the
       mount options provided by the `mount` command are supported.
       
      repeated string mount_options = 5;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the mountOptions at the given index.
    • getSourceCase

      Volume.SourceCase getSourceCase()