Interface VolumeOrBuilder

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

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

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      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.
      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.
      GCS getGcs()
      A Google Cloud Storage (GCS) volume.
      GCSOrBuilder getGcsOrBuilder()
      A Google Cloud Storage (GCS) volume.
      String getMountOptions​(int index)
      For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
      com.google.protobuf.ByteString getMountOptionsBytes​(int index)
      For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
      int getMountOptionsCount()
      For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
      List<String> getMountOptionsList()
      For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
      String getMountPath()
      The mount path for the volume, e.g.
      com.google.protobuf.ByteString getMountPathBytes()
      The mount path for the volume, e.g.
      NFS getNfs()
      A Network File System (NFS) volume.
      NFSOrBuilder getNfsOrBuilder()
      A Network File System (NFS) volume.
      PD getPd()
      Deprecated.
      google.cloud.batch.v1alpha.Volume.pd is deprecated.
      PDOrBuilder getPdOrBuilder()
      Deprecated.
      Volume.SourceCase getSourceCase()  
      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.
      boolean hasGcs()
      A Google Cloud Storage (GCS) volume.
      boolean hasNfs()
      A Network File System (NFS) volume.
      boolean hasPd()
      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 Detail

      • 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()
         For Google Cloud Storage (GCS), mount options are the options supported by
         the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
         For existing persistent disks, 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 other attached disks and Network File System (NFS), mount options are
         these supported by the mount command
         (https://man7.org/linux/man-pages/man8/mount.8.html).
         
        repeated string mount_options = 5;
        Returns:
        A list containing the mountOptions.
      • getMountOptionsCount

        int getMountOptionsCount()
         For Google Cloud Storage (GCS), mount options are the options supported by
         the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
         For existing persistent disks, 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 other attached disks and Network File System (NFS), mount options are
         these supported by the mount command
         (https://man7.org/linux/man-pages/man8/mount.8.html).
         
        repeated string mount_options = 5;
        Returns:
        The count of mountOptions.
      • getMountOptions

        String getMountOptions​(int index)
         For Google Cloud Storage (GCS), mount options are the options supported by
         the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
         For existing persistent disks, 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 other attached disks and Network File System (NFS), mount options are
         these supported by the mount command
         (https://man7.org/linux/man-pages/man8/mount.8.html).
         
        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)
         For Google Cloud Storage (GCS), mount options are the options supported by
         the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
         For existing persistent disks, 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 other attached disks and Network File System (NFS), mount options are
         these supported by the mount command
         (https://man7.org/linux/man-pages/man8/mount.8.html).
         
        repeated string mount_options = 5;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the mountOptions at the given index.