Class Generated.VolumeSource

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Generated.VolumeSourceOrBuilder
    Enclosing class:
    Generated

    public static final class Generated.VolumeSource
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.VolumeSourceOrBuilder
     Represents the source of a volume to mount.
     Only one of its members may be specified.
     
    Protobuf type k8s.io.api.core.v1.VolumeSource
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasHostPath

        public boolean hasHostPath()
         hostPath represents a pre-existing file or directory on the host
         machine that is directly exposed to the container. This is generally
         used for system agents or other privileged things that are allowed
         to see the host machine. Most containers will NOT need this.
         More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
         ---
         TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
         mount host directories as read/write.
         +optional
         
        optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1;
        Specified by:
        hasHostPath in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the hostPath field is set.
      • getHostPath

        public Generated.HostPathVolumeSource getHostPath()
         hostPath represents a pre-existing file or directory on the host
         machine that is directly exposed to the container. This is generally
         used for system agents or other privileged things that are allowed
         to see the host machine. Most containers will NOT need this.
         More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
         ---
         TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
         mount host directories as read/write.
         +optional
         
        optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1;
        Specified by:
        getHostPath in interface Generated.VolumeSourceOrBuilder
        Returns:
        The hostPath.
      • getHostPathOrBuilder

        public Generated.HostPathVolumeSourceOrBuilder getHostPathOrBuilder()
         hostPath represents a pre-existing file or directory on the host
         machine that is directly exposed to the container. This is generally
         used for system agents or other privileged things that are allowed
         to see the host machine. Most containers will NOT need this.
         More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
         ---
         TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
         mount host directories as read/write.
         +optional
         
        optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1;
        Specified by:
        getHostPathOrBuilder in interface Generated.VolumeSourceOrBuilder
      • hasEmptyDir

        public boolean hasEmptyDir()
         emptyDir represents a temporary directory that shares a pod's lifetime.
         More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
         +optional
         
        optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2;
        Specified by:
        hasEmptyDir in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the emptyDir field is set.
      • getEmptyDir

        public Generated.EmptyDirVolumeSource getEmptyDir()
         emptyDir represents a temporary directory that shares a pod's lifetime.
         More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
         +optional
         
        optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2;
        Specified by:
        getEmptyDir in interface Generated.VolumeSourceOrBuilder
        Returns:
        The emptyDir.
      • hasGcePersistentDisk

        public boolean hasGcePersistentDisk()
         gcePersistentDisk represents a GCE Disk resource that is attached to a
         kubelet's host machine and then exposed to the pod.
         Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree
         gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver.
         More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
         +optional
         
        optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3;
        Specified by:
        hasGcePersistentDisk in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the gcePersistentDisk field is set.
      • getGcePersistentDisk

        public Generated.GCEPersistentDiskVolumeSource getGcePersistentDisk()
         gcePersistentDisk represents a GCE Disk resource that is attached to a
         kubelet's host machine and then exposed to the pod.
         Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree
         gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver.
         More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
         +optional
         
        optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3;
        Specified by:
        getGcePersistentDisk in interface Generated.VolumeSourceOrBuilder
        Returns:
        The gcePersistentDisk.
      • getGcePersistentDiskOrBuilder

        public Generated.GCEPersistentDiskVolumeSourceOrBuilder getGcePersistentDiskOrBuilder()
         gcePersistentDisk represents a GCE Disk resource that is attached to a
         kubelet's host machine and then exposed to the pod.
         Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree
         gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver.
         More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
         +optional
         
        optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3;
        Specified by:
        getGcePersistentDiskOrBuilder in interface Generated.VolumeSourceOrBuilder
      • hasAwsElasticBlockStore

        public boolean hasAwsElasticBlockStore()
         awsElasticBlockStore represents an AWS Disk resource that is attached to a
         kubelet's host machine and then exposed to the pod.
         Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree
         awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver.
         More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
         +optional
         
        optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4;
        Specified by:
        hasAwsElasticBlockStore in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the awsElasticBlockStore field is set.
      • getAwsElasticBlockStore

        public Generated.AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore()
         awsElasticBlockStore represents an AWS Disk resource that is attached to a
         kubelet's host machine and then exposed to the pod.
         Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree
         awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver.
         More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
         +optional
         
        optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4;
        Specified by:
        getAwsElasticBlockStore in interface Generated.VolumeSourceOrBuilder
        Returns:
        The awsElasticBlockStore.
      • getAwsElasticBlockStoreOrBuilder

        public Generated.AWSElasticBlockStoreVolumeSourceOrBuilder getAwsElasticBlockStoreOrBuilder()
         awsElasticBlockStore represents an AWS Disk resource that is attached to a
         kubelet's host machine and then exposed to the pod.
         Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree
         awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver.
         More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
         +optional
         
        optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4;
        Specified by:
        getAwsElasticBlockStoreOrBuilder in interface Generated.VolumeSourceOrBuilder
      • hasGitRepo

        public boolean hasGitRepo()
         gitRepo represents a git repository at a particular revision.
         Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an
         EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
         into the Pod's container.
         +optional
         
        optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5;
        Specified by:
        hasGitRepo in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the gitRepo field is set.
      • getGitRepo

        public Generated.GitRepoVolumeSource getGitRepo()
         gitRepo represents a git repository at a particular revision.
         Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an
         EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
         into the Pod's container.
         +optional
         
        optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5;
        Specified by:
        getGitRepo in interface Generated.VolumeSourceOrBuilder
        Returns:
        The gitRepo.
      • getGitRepoOrBuilder

        public Generated.GitRepoVolumeSourceOrBuilder getGitRepoOrBuilder()
         gitRepo represents a git repository at a particular revision.
         Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an
         EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
         into the Pod's container.
         +optional
         
        optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5;
        Specified by:
        getGitRepoOrBuilder in interface Generated.VolumeSourceOrBuilder
      • hasSecret

        public boolean hasSecret()
         secret represents a secret that should populate this volume.
         More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
         +optional
         
        optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6;
        Specified by:
        hasSecret in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the secret field is set.
      • getSecret

        public Generated.SecretVolumeSource getSecret()
         secret represents a secret that should populate this volume.
         More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
         +optional
         
        optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6;
        Specified by:
        getSecret in interface Generated.VolumeSourceOrBuilder
        Returns:
        The secret.
      • hasNfs

        public boolean hasNfs()
         nfs represents an NFS mount on the host that shares a pod's lifetime
         More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
         +optional
         
        optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7;
        Specified by:
        hasNfs in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the nfs field is set.
      • getNfs

        public Generated.NFSVolumeSource getNfs()
         nfs represents an NFS mount on the host that shares a pod's lifetime
         More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
         +optional
         
        optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7;
        Specified by:
        getNfs in interface Generated.VolumeSourceOrBuilder
        Returns:
        The nfs.
      • hasIscsi

        public boolean hasIscsi()
         iscsi represents an ISCSI Disk resource that is attached to a
         kubelet's host machine and then exposed to the pod.
         More info: https://examples.k8s.io/volumes/iscsi/README.md
         +optional
         
        optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8;
        Specified by:
        hasIscsi in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the iscsi field is set.
      • getIscsi

        public Generated.ISCSIVolumeSource getIscsi()
         iscsi represents an ISCSI Disk resource that is attached to a
         kubelet's host machine and then exposed to the pod.
         More info: https://examples.k8s.io/volumes/iscsi/README.md
         +optional
         
        optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8;
        Specified by:
        getIscsi in interface Generated.VolumeSourceOrBuilder
        Returns:
        The iscsi.
      • hasGlusterfs

        public boolean hasGlusterfs()
         glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
         Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.
         More info: https://examples.k8s.io/volumes/glusterfs/README.md
         +optional
         
        optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9;
        Specified by:
        hasGlusterfs in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the glusterfs field is set.
      • getGlusterfs

        public Generated.GlusterfsVolumeSource getGlusterfs()
         glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
         Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.
         More info: https://examples.k8s.io/volumes/glusterfs/README.md
         +optional
         
        optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9;
        Specified by:
        getGlusterfs in interface Generated.VolumeSourceOrBuilder
        Returns:
        The glusterfs.
      • getGlusterfsOrBuilder

        public Generated.GlusterfsVolumeSourceOrBuilder getGlusterfsOrBuilder()
         glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
         Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.
         More info: https://examples.k8s.io/volumes/glusterfs/README.md
         +optional
         
        optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9;
        Specified by:
        getGlusterfsOrBuilder in interface Generated.VolumeSourceOrBuilder
      • hasPersistentVolumeClaim

        public boolean hasPersistentVolumeClaim()
         persistentVolumeClaimVolumeSource represents a reference to a
         PersistentVolumeClaim in the same namespace.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
         +optional
         
        optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10;
        Specified by:
        hasPersistentVolumeClaim in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the persistentVolumeClaim field is set.
      • getPersistentVolumeClaim

        public Generated.PersistentVolumeClaimVolumeSource getPersistentVolumeClaim()
         persistentVolumeClaimVolumeSource represents a reference to a
         PersistentVolumeClaim in the same namespace.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
         +optional
         
        optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10;
        Specified by:
        getPersistentVolumeClaim in interface Generated.VolumeSourceOrBuilder
        Returns:
        The persistentVolumeClaim.
      • hasRbd

        public boolean hasRbd()
         rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.
         Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.
         More info: https://examples.k8s.io/volumes/rbd/README.md
         +optional
         
        optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11;
        Specified by:
        hasRbd in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the rbd field is set.
      • getRbd

        public Generated.RBDVolumeSource getRbd()
         rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.
         Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.
         More info: https://examples.k8s.io/volumes/rbd/README.md
         +optional
         
        optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11;
        Specified by:
        getRbd in interface Generated.VolumeSourceOrBuilder
        Returns:
        The rbd.
      • getRbdOrBuilder

        public Generated.RBDVolumeSourceOrBuilder getRbdOrBuilder()
         rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.
         Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.
         More info: https://examples.k8s.io/volumes/rbd/README.md
         +optional
         
        optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11;
        Specified by:
        getRbdOrBuilder in interface Generated.VolumeSourceOrBuilder
      • hasFlexVolume

        public boolean hasFlexVolume()
         flexVolume represents a generic volume resource that is
         provisioned/attached using an exec based plugin.
         Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.
         +optional
         
        optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12;
        Specified by:
        hasFlexVolume in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the flexVolume field is set.
      • getFlexVolume

        public Generated.FlexVolumeSource getFlexVolume()
         flexVolume represents a generic volume resource that is
         provisioned/attached using an exec based plugin.
         Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.
         +optional
         
        optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12;
        Specified by:
        getFlexVolume in interface Generated.VolumeSourceOrBuilder
        Returns:
        The flexVolume.
      • hasCinder

        public boolean hasCinder()
         cinder represents a cinder volume attached and mounted on kubelets host machine.
         Deprecated: Cinder is deprecated. All operations for the in-tree cinder type
         are redirected to the cinder.csi.openstack.org CSI driver.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         +optional
         
        optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13;
        Specified by:
        hasCinder in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the cinder field is set.
      • getCinder

        public Generated.CinderVolumeSource getCinder()
         cinder represents a cinder volume attached and mounted on kubelets host machine.
         Deprecated: Cinder is deprecated. All operations for the in-tree cinder type
         are redirected to the cinder.csi.openstack.org CSI driver.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         +optional
         
        optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13;
        Specified by:
        getCinder in interface Generated.VolumeSourceOrBuilder
        Returns:
        The cinder.
      • getCinderOrBuilder

        public Generated.CinderVolumeSourceOrBuilder getCinderOrBuilder()
         cinder represents a cinder volume attached and mounted on kubelets host machine.
         Deprecated: Cinder is deprecated. All operations for the in-tree cinder type
         are redirected to the cinder.csi.openstack.org CSI driver.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         +optional
         
        optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13;
        Specified by:
        getCinderOrBuilder in interface Generated.VolumeSourceOrBuilder
      • hasCephfs

        public boolean hasCephfs()
         cephFS represents a Ceph FS mount on the host that shares a pod's lifetime.
         Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.
         +optional
         
        optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14;
        Specified by:
        hasCephfs in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the cephfs field is set.
      • getCephfs

        public Generated.CephFSVolumeSource getCephfs()
         cephFS represents a Ceph FS mount on the host that shares a pod's lifetime.
         Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.
         +optional
         
        optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14;
        Specified by:
        getCephfs in interface Generated.VolumeSourceOrBuilder
        Returns:
        The cephfs.
      • hasFlocker

        public boolean hasFlocker()
         flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running.
         Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
         +optional
         
        optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15;
        Specified by:
        hasFlocker in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the flocker field is set.
      • getFlocker

        public Generated.FlockerVolumeSource getFlocker()
         flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running.
         Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
         +optional
         
        optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15;
        Specified by:
        getFlocker in interface Generated.VolumeSourceOrBuilder
        Returns:
        The flocker.
      • getFlockerOrBuilder

        public Generated.FlockerVolumeSourceOrBuilder getFlockerOrBuilder()
         flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running.
         Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
         +optional
         
        optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15;
        Specified by:
        getFlockerOrBuilder in interface Generated.VolumeSourceOrBuilder
      • hasDownwardAPI

        public boolean hasDownwardAPI()
         downwardAPI represents downward API about the pod that should populate this volume
         +optional
         
        optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16;
        Specified by:
        hasDownwardAPI in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the downwardAPI field is set.
      • hasFc

        public boolean hasFc()
         fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
         +optional
         
        optional .k8s.io.api.core.v1.FCVolumeSource fc = 17;
        Specified by:
        hasFc in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the fc field is set.
      • getFc

        public Generated.FCVolumeSource getFc()
         fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
         +optional
         
        optional .k8s.io.api.core.v1.FCVolumeSource fc = 17;
        Specified by:
        getFc in interface Generated.VolumeSourceOrBuilder
        Returns:
        The fc.
      • hasAzureFile

        public boolean hasAzureFile()
         azureFile represents an Azure File Service mount on the host and bind mount to the pod.
         Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type
         are redirected to the file.csi.azure.com CSI driver.
         +optional
         
        optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18;
        Specified by:
        hasAzureFile in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the azureFile field is set.
      • getAzureFile

        public Generated.AzureFileVolumeSource getAzureFile()
         azureFile represents an Azure File Service mount on the host and bind mount to the pod.
         Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type
         are redirected to the file.csi.azure.com CSI driver.
         +optional
         
        optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18;
        Specified by:
        getAzureFile in interface Generated.VolumeSourceOrBuilder
        Returns:
        The azureFile.
      • getAzureFileOrBuilder

        public Generated.AzureFileVolumeSourceOrBuilder getAzureFileOrBuilder()
         azureFile represents an Azure File Service mount on the host and bind mount to the pod.
         Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type
         are redirected to the file.csi.azure.com CSI driver.
         +optional
         
        optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18;
        Specified by:
        getAzureFileOrBuilder in interface Generated.VolumeSourceOrBuilder
      • hasConfigMap

        public boolean hasConfigMap()
         configMap represents a configMap that should populate this volume
         +optional
         
        optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19;
        Specified by:
        hasConfigMap in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the configMap field is set.
      • hasVsphereVolume

        public boolean hasVsphereVolume()
         vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine.
         Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type
         are redirected to the csi.vsphere.vmware.com CSI driver.
         +optional
         
        optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20;
        Specified by:
        hasVsphereVolume in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the vsphereVolume field is set.
      • getVsphereVolume

        public Generated.VsphereVirtualDiskVolumeSource getVsphereVolume()
         vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine.
         Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type
         are redirected to the csi.vsphere.vmware.com CSI driver.
         +optional
         
        optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20;
        Specified by:
        getVsphereVolume in interface Generated.VolumeSourceOrBuilder
        Returns:
        The vsphereVolume.
      • getVsphereVolumeOrBuilder

        public Generated.VsphereVirtualDiskVolumeSourceOrBuilder getVsphereVolumeOrBuilder()
         vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine.
         Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type
         are redirected to the csi.vsphere.vmware.com CSI driver.
         +optional
         
        optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20;
        Specified by:
        getVsphereVolumeOrBuilder in interface Generated.VolumeSourceOrBuilder
      • hasQuobyte

        public boolean hasQuobyte()
         quobyte represents a Quobyte mount on the host that shares a pod's lifetime.
         Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.
         +optional
         
        optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21;
        Specified by:
        hasQuobyte in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the quobyte field is set.
      • getQuobyte

        public Generated.QuobyteVolumeSource getQuobyte()
         quobyte represents a Quobyte mount on the host that shares a pod's lifetime.
         Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.
         +optional
         
        optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21;
        Specified by:
        getQuobyte in interface Generated.VolumeSourceOrBuilder
        Returns:
        The quobyte.
      • hasAzureDisk

        public boolean hasAzureDisk()
         azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
         Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type
         are redirected to the disk.csi.azure.com CSI driver.
         +optional
         
        optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22;
        Specified by:
        hasAzureDisk in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the azureDisk field is set.
      • getAzureDisk

        public Generated.AzureDiskVolumeSource getAzureDisk()
         azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
         Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type
         are redirected to the disk.csi.azure.com CSI driver.
         +optional
         
        optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22;
        Specified by:
        getAzureDisk in interface Generated.VolumeSourceOrBuilder
        Returns:
        The azureDisk.
      • getAzureDiskOrBuilder

        public Generated.AzureDiskVolumeSourceOrBuilder getAzureDiskOrBuilder()
         azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
         Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type
         are redirected to the disk.csi.azure.com CSI driver.
         +optional
         
        optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22;
        Specified by:
        getAzureDiskOrBuilder in interface Generated.VolumeSourceOrBuilder
      • hasPhotonPersistentDisk

        public boolean hasPhotonPersistentDisk()
         photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine.
         Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.
         
        optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23;
        Specified by:
        hasPhotonPersistentDisk in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the photonPersistentDisk field is set.
      • getPhotonPersistentDisk

        public Generated.PhotonPersistentDiskVolumeSource getPhotonPersistentDisk()
         photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine.
         Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.
         
        optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23;
        Specified by:
        getPhotonPersistentDisk in interface Generated.VolumeSourceOrBuilder
        Returns:
        The photonPersistentDisk.
      • hasProjected

        public boolean hasProjected()
         projected items for all in one resources secrets, configmaps, and downward API
         
        optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26;
        Specified by:
        hasProjected in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the projected field is set.
      • hasPortworxVolume

        public boolean hasPortworxVolume()
         portworxVolume represents a portworx volume attached and mounted on kubelets host machine.
         Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type
         are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate
         is on.
         +optional
         
        optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24;
        Specified by:
        hasPortworxVolume in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the portworxVolume field is set.
      • getPortworxVolume

        public Generated.PortworxVolumeSource getPortworxVolume()
         portworxVolume represents a portworx volume attached and mounted on kubelets host machine.
         Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type
         are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate
         is on.
         +optional
         
        optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24;
        Specified by:
        getPortworxVolume in interface Generated.VolumeSourceOrBuilder
        Returns:
        The portworxVolume.
      • getPortworxVolumeOrBuilder

        public Generated.PortworxVolumeSourceOrBuilder getPortworxVolumeOrBuilder()
         portworxVolume represents a portworx volume attached and mounted on kubelets host machine.
         Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type
         are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate
         is on.
         +optional
         
        optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24;
        Specified by:
        getPortworxVolumeOrBuilder in interface Generated.VolumeSourceOrBuilder
      • hasScaleIO

        public boolean hasScaleIO()
         scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
         Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.
         +optional
         
        optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25;
        Specified by:
        hasScaleIO in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the scaleIO field is set.
      • getScaleIO

        public Generated.ScaleIOVolumeSource getScaleIO()
         scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
         Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.
         +optional
         
        optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25;
        Specified by:
        getScaleIO in interface Generated.VolumeSourceOrBuilder
        Returns:
        The scaleIO.
      • hasStorageos

        public boolean hasStorageos()
         storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
         Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.
         +optional
         
        optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27;
        Specified by:
        hasStorageos in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the storageos field is set.
      • getStorageos

        public Generated.StorageOSVolumeSource getStorageos()
         storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
         Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.
         +optional
         
        optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27;
        Specified by:
        getStorageos in interface Generated.VolumeSourceOrBuilder
        Returns:
        The storageos.
      • hasCsi

        public boolean hasCsi()
         csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.
         +optional
         
        optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28;
        Specified by:
        hasCsi in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the csi field is set.
      • getCsi

        public Generated.CSIVolumeSource getCsi()
         csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.
         +optional
         
        optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28;
        Specified by:
        getCsi in interface Generated.VolumeSourceOrBuilder
        Returns:
        The csi.
      • hasEphemeral

        public boolean hasEphemeral()
         ephemeral represents a volume that is handled by a cluster storage driver.
         The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
         and deleted when the pod is removed.
        
         Use this if:
         a) the volume is only needed while the pod runs,
         b) features of normal volumes like restoring from snapshot or capacity
            tracking are needed,
         c) the storage driver is specified through a storage class, and
         d) the storage driver supports dynamic volume provisioning through
            a PersistentVolumeClaim (see EphemeralVolumeSource for more
            information on the connection between this volume type
            and PersistentVolumeClaim).
        
         Use PersistentVolumeClaim or one of the vendor-specific
         APIs for volumes that persist for longer than the lifecycle
         of an individual pod.
        
         Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
         be used that way - see the documentation of the driver for
         more information.
        
         A pod can use both types of ephemeral volumes and
         persistent volumes at the same time.
        
         +optional
         
        optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29;
        Specified by:
        hasEphemeral in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the ephemeral field is set.
      • getEphemeral

        public Generated.EphemeralVolumeSource getEphemeral()
         ephemeral represents a volume that is handled by a cluster storage driver.
         The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
         and deleted when the pod is removed.
        
         Use this if:
         a) the volume is only needed while the pod runs,
         b) features of normal volumes like restoring from snapshot or capacity
            tracking are needed,
         c) the storage driver is specified through a storage class, and
         d) the storage driver supports dynamic volume provisioning through
            a PersistentVolumeClaim (see EphemeralVolumeSource for more
            information on the connection between this volume type
            and PersistentVolumeClaim).
        
         Use PersistentVolumeClaim or one of the vendor-specific
         APIs for volumes that persist for longer than the lifecycle
         of an individual pod.
        
         Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
         be used that way - see the documentation of the driver for
         more information.
        
         A pod can use both types of ephemeral volumes and
         persistent volumes at the same time.
        
         +optional
         
        optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29;
        Specified by:
        getEphemeral in interface Generated.VolumeSourceOrBuilder
        Returns:
        The ephemeral.
      • getEphemeralOrBuilder

        public Generated.EphemeralVolumeSourceOrBuilder getEphemeralOrBuilder()
         ephemeral represents a volume that is handled by a cluster storage driver.
         The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
         and deleted when the pod is removed.
        
         Use this if:
         a) the volume is only needed while the pod runs,
         b) features of normal volumes like restoring from snapshot or capacity
            tracking are needed,
         c) the storage driver is specified through a storage class, and
         d) the storage driver supports dynamic volume provisioning through
            a PersistentVolumeClaim (see EphemeralVolumeSource for more
            information on the connection between this volume type
            and PersistentVolumeClaim).
        
         Use PersistentVolumeClaim or one of the vendor-specific
         APIs for volumes that persist for longer than the lifecycle
         of an individual pod.
        
         Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
         be used that way - see the documentation of the driver for
         more information.
        
         A pod can use both types of ephemeral volumes and
         persistent volumes at the same time.
        
         +optional
         
        optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29;
        Specified by:
        getEphemeralOrBuilder in interface Generated.VolumeSourceOrBuilder
      • hasImage

        public boolean hasImage()
         image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
         The volume is resolved at pod startup depending on which PullPolicy value is provided:
        
         - Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
         - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
         - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
        
         The volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation.
         A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message.
         The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field.
         The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images.
         The volume will be mounted read-only (ro) and non-executable files (noexec).
         Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath).
         The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.
         +featureGate=ImageVolume
         +optional
         
        optional .k8s.io.api.core.v1.ImageVolumeSource image = 30;
        Specified by:
        hasImage in interface Generated.VolumeSourceOrBuilder
        Returns:
        Whether the image field is set.
      • getImage

        public Generated.ImageVolumeSource getImage()
         image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
         The volume is resolved at pod startup depending on which PullPolicy value is provided:
        
         - Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
         - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
         - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
        
         The volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation.
         A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message.
         The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field.
         The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images.
         The volume will be mounted read-only (ro) and non-executable files (noexec).
         Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath).
         The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.
         +featureGate=ImageVolume
         +optional
         
        optional .k8s.io.api.core.v1.ImageVolumeSource image = 30;
        Specified by:
        getImage in interface Generated.VolumeSourceOrBuilder
        Returns:
        The image.
      • getImageOrBuilder

        public Generated.ImageVolumeSourceOrBuilder getImageOrBuilder()
         image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
         The volume is resolved at pod startup depending on which PullPolicy value is provided:
        
         - Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
         - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
         - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
        
         The volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation.
         A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message.
         The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field.
         The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images.
         The volume will be mounted read-only (ro) and non-executable files (noexec).
         Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath).
         The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.
         +featureGate=ImageVolume
         +optional
         
        optional .k8s.io.api.core.v1.ImageVolumeSource image = 30;
        Specified by:
        getImageOrBuilder in interface Generated.VolumeSourceOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Generated.VolumeSource parseFrom​(ByteBuffer data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.VolumeSource parseFrom​(ByteBuffer data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.VolumeSource parseFrom​(com.google.protobuf.ByteString data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.VolumeSource parseFrom​(com.google.protobuf.ByteString data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.VolumeSource parseFrom​(byte[] data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.VolumeSource parseFrom​(byte[] data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public Generated.VolumeSource.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Generated.VolumeSource.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Generated.VolumeSource.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Generated.VolumeSource> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Generated.VolumeSource getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder