Class V1.VolumeSource

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1.VolumeSource
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.VolumeSourceOrBuilder, Serializable
Enclosing class:
V1

public static final class V1.VolumeSource extends com.google.protobuf.GeneratedMessageV3 implements V1.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:
  • Field Details

  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields 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 V1.VolumeSourceOrBuilder
    • getHostPath

      public V1.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 V1.VolumeSourceOrBuilder
    • getHostPathOrBuilder

      public V1.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 V1.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 V1.VolumeSourceOrBuilder
    • getEmptyDir

      public V1.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 V1.VolumeSourceOrBuilder
    • getEmptyDirOrBuilder

      public V1.EmptyDirVolumeSourceOrBuilder getEmptyDirOrBuilder()
       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:
      getEmptyDirOrBuilder in interface V1.VolumeSourceOrBuilder
    • 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.
       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 V1.VolumeSourceOrBuilder
    • getGcePersistentDisk

      public V1.GCEPersistentDiskVolumeSource getGcePersistentDisk()
       GCEPersistentDisk represents a GCE Disk resource that is attached to a
       kubelet's host machine and then exposed to the pod.
       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 V1.VolumeSourceOrBuilder
    • getGcePersistentDiskOrBuilder

      public V1.GCEPersistentDiskVolumeSourceOrBuilder getGcePersistentDiskOrBuilder()
       GCEPersistentDisk represents a GCE Disk resource that is attached to a
       kubelet's host machine and then exposed to the pod.
       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 V1.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.
       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 V1.VolumeSourceOrBuilder
    • getAwsElasticBlockStore

      public V1.AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore()
       AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       kubelet's host machine and then exposed to the pod.
       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 V1.VolumeSourceOrBuilder
    • getAwsElasticBlockStoreOrBuilder

      public V1.AWSElasticBlockStoreVolumeSourceOrBuilder getAwsElasticBlockStoreOrBuilder()
       AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       kubelet's host machine and then exposed to the pod.
       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 V1.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 V1.VolumeSourceOrBuilder
    • getGitRepo

      public V1.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 V1.VolumeSourceOrBuilder
    • getGitRepoOrBuilder

      public V1.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 V1.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 V1.VolumeSourceOrBuilder
    • getSecret

      public V1.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 V1.VolumeSourceOrBuilder
    • getSecretOrBuilder

      public V1.SecretVolumeSourceOrBuilder getSecretOrBuilder()
       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:
      getSecretOrBuilder in interface V1.VolumeSourceOrBuilder
    • 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 V1.VolumeSourceOrBuilder
    • getNfs

      public V1.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 V1.VolumeSourceOrBuilder
    • getNfsOrBuilder

      public V1.NFSVolumeSourceOrBuilder getNfsOrBuilder()
       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:
      getNfsOrBuilder in interface V1.VolumeSourceOrBuilder
    • 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 V1.VolumeSourceOrBuilder
    • getIscsi

      public V1.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 V1.VolumeSourceOrBuilder
    • getIscsiOrBuilder

      public V1.ISCSIVolumeSourceOrBuilder getIscsiOrBuilder()
       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:
      getIscsiOrBuilder in interface V1.VolumeSourceOrBuilder
    • hasGlusterfs

      public boolean hasGlusterfs()
       Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
       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 V1.VolumeSourceOrBuilder
    • getGlusterfs

      public V1.GlusterfsVolumeSource getGlusterfs()
       Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
       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 V1.VolumeSourceOrBuilder
    • getGlusterfsOrBuilder

      public V1.GlusterfsVolumeSourceOrBuilder getGlusterfsOrBuilder()
       Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
       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 V1.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 V1.VolumeSourceOrBuilder
    • getPersistentVolumeClaim

      public V1.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 V1.VolumeSourceOrBuilder
    • getPersistentVolumeClaimOrBuilder

      public V1.PersistentVolumeClaimVolumeSourceOrBuilder getPersistentVolumeClaimOrBuilder()
       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:
      getPersistentVolumeClaimOrBuilder in interface V1.VolumeSourceOrBuilder
    • hasRbd

      public boolean hasRbd()
       RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       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 V1.VolumeSourceOrBuilder
    • getRbd

      public V1.RBDVolumeSource getRbd()
       RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       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 V1.VolumeSourceOrBuilder
    • getRbdOrBuilder

      public V1.RBDVolumeSourceOrBuilder getRbdOrBuilder()
       RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       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 V1.VolumeSourceOrBuilder
    • hasFlexVolume

      public boolean hasFlexVolume()
       FlexVolume represents a generic volume resource that is
       provisioned/attached using an exec based plugin.
       +optional
       
      optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12;
      Specified by:
      hasFlexVolume in interface V1.VolumeSourceOrBuilder
    • getFlexVolume

      public V1.FlexVolumeSource getFlexVolume()
       FlexVolume represents a generic volume resource that is
       provisioned/attached using an exec based plugin.
       +optional
       
      optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12;
      Specified by:
      getFlexVolume in interface V1.VolumeSourceOrBuilder
    • getFlexVolumeOrBuilder

      public V1.FlexVolumeSourceOrBuilder getFlexVolumeOrBuilder()
       FlexVolume represents a generic volume resource that is
       provisioned/attached using an exec based plugin.
       +optional
       
      optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12;
      Specified by:
      getFlexVolumeOrBuilder in interface V1.VolumeSourceOrBuilder
    • hasCinder

      public boolean hasCinder()
       Cinder represents a cinder volume attached and mounted on kubelets host machine.
       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 V1.VolumeSourceOrBuilder
    • getCinder

      public V1.CinderVolumeSource getCinder()
       Cinder represents a cinder volume attached and mounted on kubelets host machine.
       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 V1.VolumeSourceOrBuilder
    • getCinderOrBuilder

      public V1.CinderVolumeSourceOrBuilder getCinderOrBuilder()
       Cinder represents a cinder volume attached and mounted on kubelets host machine.
       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 V1.VolumeSourceOrBuilder
    • hasCephfs

      public boolean hasCephfs()
       CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       +optional
       
      optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14;
      Specified by:
      hasCephfs in interface V1.VolumeSourceOrBuilder
    • getCephfs

      public V1.CephFSVolumeSource getCephfs()
       CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       +optional
       
      optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14;
      Specified by:
      getCephfs in interface V1.VolumeSourceOrBuilder
    • getCephfsOrBuilder

      public V1.CephFSVolumeSourceOrBuilder getCephfsOrBuilder()
       CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       +optional
       
      optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14;
      Specified by:
      getCephfsOrBuilder in interface V1.VolumeSourceOrBuilder
    • 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
       +optional
       
      optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15;
      Specified by:
      hasFlocker in interface V1.VolumeSourceOrBuilder
    • getFlocker

      public V1.FlockerVolumeSource getFlocker()
       Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
       +optional
       
      optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15;
      Specified by:
      getFlocker in interface V1.VolumeSourceOrBuilder
    • getFlockerOrBuilder

      public V1.FlockerVolumeSourceOrBuilder getFlockerOrBuilder()
       Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
       +optional
       
      optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15;
      Specified by:
      getFlockerOrBuilder in interface V1.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 V1.VolumeSourceOrBuilder
    • getDownwardAPI

      public V1.DownwardAPIVolumeSource getDownwardAPI()
       DownwardAPI represents downward API about the pod that should populate this volume
       +optional
       
      optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16;
      Specified by:
      getDownwardAPI in interface V1.VolumeSourceOrBuilder
    • getDownwardAPIOrBuilder

      public V1.DownwardAPIVolumeSourceOrBuilder getDownwardAPIOrBuilder()
       DownwardAPI represents downward API about the pod that should populate this volume
       +optional
       
      optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16;
      Specified by:
      getDownwardAPIOrBuilder in interface V1.VolumeSourceOrBuilder
    • 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 V1.VolumeSourceOrBuilder
    • getFc

      public V1.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 V1.VolumeSourceOrBuilder
    • getFcOrBuilder

      public V1.FCVolumeSourceOrBuilder getFcOrBuilder()
       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:
      getFcOrBuilder in interface V1.VolumeSourceOrBuilder
    • hasAzureFile

      public boolean hasAzureFile()
       AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       +optional
       
      optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18;
      Specified by:
      hasAzureFile in interface V1.VolumeSourceOrBuilder
    • getAzureFile

      public V1.AzureFileVolumeSource getAzureFile()
       AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       +optional
       
      optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18;
      Specified by:
      getAzureFile in interface V1.VolumeSourceOrBuilder
    • getAzureFileOrBuilder

      public V1.AzureFileVolumeSourceOrBuilder getAzureFileOrBuilder()
       AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       +optional
       
      optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18;
      Specified by:
      getAzureFileOrBuilder in interface V1.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 V1.VolumeSourceOrBuilder
    • getConfigMap

      public V1.ConfigMapVolumeSource getConfigMap()
       ConfigMap represents a configMap that should populate this volume
       +optional
       
      optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19;
      Specified by:
      getConfigMap in interface V1.VolumeSourceOrBuilder
    • getConfigMapOrBuilder

      public V1.ConfigMapVolumeSourceOrBuilder getConfigMapOrBuilder()
       ConfigMap represents a configMap that should populate this volume
       +optional
       
      optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19;
      Specified by:
      getConfigMapOrBuilder in interface V1.VolumeSourceOrBuilder
    • hasVsphereVolume

      public boolean hasVsphereVolume()
       VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       +optional
       
      optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20;
      Specified by:
      hasVsphereVolume in interface V1.VolumeSourceOrBuilder
    • getVsphereVolume

      public V1.VsphereVirtualDiskVolumeSource getVsphereVolume()
       VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       +optional
       
      optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20;
      Specified by:
      getVsphereVolume in interface V1.VolumeSourceOrBuilder
    • getVsphereVolumeOrBuilder

      public V1.VsphereVirtualDiskVolumeSourceOrBuilder getVsphereVolumeOrBuilder()
       VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       +optional
       
      optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20;
      Specified by:
      getVsphereVolumeOrBuilder in interface V1.VolumeSourceOrBuilder
    • hasQuobyte

      public boolean hasQuobyte()
       Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       +optional
       
      optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21;
      Specified by:
      hasQuobyte in interface V1.VolumeSourceOrBuilder
    • getQuobyte

      public V1.QuobyteVolumeSource getQuobyte()
       Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       +optional
       
      optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21;
      Specified by:
      getQuobyte in interface V1.VolumeSourceOrBuilder
    • getQuobyteOrBuilder

      public V1.QuobyteVolumeSourceOrBuilder getQuobyteOrBuilder()
       Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       +optional
       
      optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21;
      Specified by:
      getQuobyteOrBuilder in interface V1.VolumeSourceOrBuilder
    • hasAzureDisk

      public boolean hasAzureDisk()
       AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       +optional
       
      optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22;
      Specified by:
      hasAzureDisk in interface V1.VolumeSourceOrBuilder
    • getAzureDisk

      public V1.AzureDiskVolumeSource getAzureDisk()
       AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       +optional
       
      optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22;
      Specified by:
      getAzureDisk in interface V1.VolumeSourceOrBuilder
    • getAzureDiskOrBuilder

      public V1.AzureDiskVolumeSourceOrBuilder getAzureDiskOrBuilder()
       AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       +optional
       
      optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22;
      Specified by:
      getAzureDiskOrBuilder in interface V1.VolumeSourceOrBuilder
    • hasPhotonPersistentDisk

      public boolean hasPhotonPersistentDisk()
       PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       
      optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23;
      Specified by:
      hasPhotonPersistentDisk in interface V1.VolumeSourceOrBuilder
    • getPhotonPersistentDisk

      public V1.PhotonPersistentDiskVolumeSource getPhotonPersistentDisk()
       PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       
      optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23;
      Specified by:
      getPhotonPersistentDisk in interface V1.VolumeSourceOrBuilder
    • getPhotonPersistentDiskOrBuilder

      public V1.PhotonPersistentDiskVolumeSourceOrBuilder getPhotonPersistentDiskOrBuilder()
       PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       
      optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23;
      Specified by:
      getPhotonPersistentDiskOrBuilder in interface V1.VolumeSourceOrBuilder
    • hasProjected

      public boolean hasProjected()
       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 V1.VolumeSourceOrBuilder
    • getProjected

      public V1.ProjectedVolumeSource getProjected()
       Items for all in one resources secrets, configmaps, and downward API
       
      optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26;
      Specified by:
      getProjected in interface V1.VolumeSourceOrBuilder
    • getProjectedOrBuilder

      public V1.ProjectedVolumeSourceOrBuilder getProjectedOrBuilder()
       Items for all in one resources secrets, configmaps, and downward API
       
      optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26;
      Specified by:
      getProjectedOrBuilder in interface V1.VolumeSourceOrBuilder
    • hasPortworxVolume

      public boolean hasPortworxVolume()
       PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       +optional
       
      optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24;
      Specified by:
      hasPortworxVolume in interface V1.VolumeSourceOrBuilder
    • getPortworxVolume

      public V1.PortworxVolumeSource getPortworxVolume()
       PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       +optional
       
      optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24;
      Specified by:
      getPortworxVolume in interface V1.VolumeSourceOrBuilder
    • getPortworxVolumeOrBuilder

      public V1.PortworxVolumeSourceOrBuilder getPortworxVolumeOrBuilder()
       PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       +optional
       
      optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24;
      Specified by:
      getPortworxVolumeOrBuilder in interface V1.VolumeSourceOrBuilder
    • hasScaleIO

      public boolean hasScaleIO()
       ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       +optional
       
      optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25;
      Specified by:
      hasScaleIO in interface V1.VolumeSourceOrBuilder
    • getScaleIO

      public V1.ScaleIOVolumeSource getScaleIO()
       ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       +optional
       
      optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25;
      Specified by:
      getScaleIO in interface V1.VolumeSourceOrBuilder
    • getScaleIOOrBuilder

      public V1.ScaleIOVolumeSourceOrBuilder getScaleIOOrBuilder()
       ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       +optional
       
      optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25;
      Specified by:
      getScaleIOOrBuilder in interface V1.VolumeSourceOrBuilder
    • hasStorageos

      public boolean hasStorageos()
       StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
       +optional
       
      optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27;
      Specified by:
      hasStorageos in interface V1.VolumeSourceOrBuilder
    • getStorageos

      public V1.StorageOSVolumeSource getStorageos()
       StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
       +optional
       
      optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27;
      Specified by:
      getStorageos in interface V1.VolumeSourceOrBuilder
    • getStorageosOrBuilder

      public V1.StorageOSVolumeSourceOrBuilder getStorageosOrBuilder()
       StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
       +optional
       
      optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27;
      Specified by:
      getStorageosOrBuilder in interface V1.VolumeSourceOrBuilder
    • hasCsi

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

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

      public V1.CSIVolumeSourceOrBuilder getCsiOrBuilder()
       CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
       +optional
       
      optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28;
      Specified by:
      getCsiOrBuilder in interface V1.VolumeSourceOrBuilder
    • 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 V1.VolumeSourceOrBuilder
    • getEphemeral

      public V1.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 V1.VolumeSourceOrBuilder
    • getEphemeralOrBuilder

      public V1.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 V1.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 V1.VolumeSource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static V1.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 V1.VolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

      public static V1.VolumeSource parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.VolumeSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1.VolumeSource parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1.VolumeSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.VolumeSource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.VolumeSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static V1.VolumeSource.Builder newBuilder()
    • newBuilder

      public static V1.VolumeSource.Builder newBuilder(V1.VolumeSource prototype)
    • toBuilder

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

      protected V1.VolumeSource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1.VolumeSource getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1.VolumeSource> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1.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 V1.VolumeSource getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder