Class V1.PersistentVolumeSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
io.kubernetes.client.proto.V1.PersistentVolumeSpec.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.PersistentVolumeSpecOrBuilder, Cloneable
Enclosing class:
V1.PersistentVolumeSpec

public static final class V1.PersistentVolumeSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder> implements V1.PersistentVolumeSpecOrBuilder
 PersistentVolumeSpec is the specification of a persistent volume.
 
Protobuf type k8s.io.api.core.v1.PersistentVolumeSpec
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      Overrides:
      internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
    • getDefaultInstanceForType

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

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

      public V1.PersistentVolumeSpec buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
    • setField

      public V1.PersistentVolumeSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
    • clearField

      public V1.PersistentVolumeSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
    • clearOneof

      public V1.PersistentVolumeSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
    • setRepeatedField

      public V1.PersistentVolumeSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
    • addRepeatedField

      public V1.PersistentVolumeSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
    • mergeFrom

      public V1.PersistentVolumeSpec.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.PersistentVolumeSpec.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
    • mergeFrom

      public V1.PersistentVolumeSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.PersistentVolumeSpec.Builder>
      Throws:
      IOException
    • getCapacityCount

      public int getCapacityCount()
      Description copied from interface: V1.PersistentVolumeSpecOrBuilder
       A description of the persistent volume's resources and capacity.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
      Specified by:
      getCapacityCount in interface V1.PersistentVolumeSpecOrBuilder
    • containsCapacity

      public boolean containsCapacity(String key)
       A description of the persistent volume's resources and capacity.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
      Specified by:
      containsCapacity in interface V1.PersistentVolumeSpecOrBuilder
    • getCapacity

      @Deprecated public Map<String,Resource.Quantity> getCapacity()
      Deprecated.
      Use getCapacityMap() instead.
      Specified by:
      getCapacity in interface V1.PersistentVolumeSpecOrBuilder
    • getCapacityMap

      public Map<String,Resource.Quantity> getCapacityMap()
       A description of the persistent volume's resources and capacity.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
      Specified by:
      getCapacityMap in interface V1.PersistentVolumeSpecOrBuilder
    • getCapacityOrDefault

      public Resource.Quantity getCapacityOrDefault(String key, Resource.Quantity defaultValue)
       A description of the persistent volume's resources and capacity.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
      Specified by:
      getCapacityOrDefault in interface V1.PersistentVolumeSpecOrBuilder
    • getCapacityOrThrow

      public Resource.Quantity getCapacityOrThrow(String key)
       A description of the persistent volume's resources and capacity.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
      Specified by:
      getCapacityOrThrow in interface V1.PersistentVolumeSpecOrBuilder
    • clearCapacity

      public V1.PersistentVolumeSpec.Builder clearCapacity()
    • removeCapacity

      public V1.PersistentVolumeSpec.Builder removeCapacity(String key)
       A description of the persistent volume's resources and capacity.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
    • getMutableCapacity

      @Deprecated public Map<String,Resource.Quantity> getMutableCapacity()
      Deprecated.
      Use alternate mutation accessors instead.
    • putCapacity

      public V1.PersistentVolumeSpec.Builder putCapacity(String key, Resource.Quantity value)
       A description of the persistent volume's resources and capacity.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
    • putAllCapacity

       A description of the persistent volume's resources and capacity.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
    • hasPersistentVolumeSource

      public boolean hasPersistentVolumeSource()
       The actual volume backing the persistent volume.
       
      optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
      Specified by:
      hasPersistentVolumeSource in interface V1.PersistentVolumeSpecOrBuilder
    • getPersistentVolumeSource

      public V1.PersistentVolumeSource getPersistentVolumeSource()
       The actual volume backing the persistent volume.
       
      optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
      Specified by:
      getPersistentVolumeSource in interface V1.PersistentVolumeSpecOrBuilder
    • setPersistentVolumeSource

      public V1.PersistentVolumeSpec.Builder setPersistentVolumeSource(V1.PersistentVolumeSource value)
       The actual volume backing the persistent volume.
       
      optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
    • setPersistentVolumeSource

      public V1.PersistentVolumeSpec.Builder setPersistentVolumeSource(V1.PersistentVolumeSource.Builder builderForValue)
       The actual volume backing the persistent volume.
       
      optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
    • mergePersistentVolumeSource

      public V1.PersistentVolumeSpec.Builder mergePersistentVolumeSource(V1.PersistentVolumeSource value)
       The actual volume backing the persistent volume.
       
      optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
    • clearPersistentVolumeSource

      public V1.PersistentVolumeSpec.Builder clearPersistentVolumeSource()
       The actual volume backing the persistent volume.
       
      optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
    • getPersistentVolumeSourceBuilder

      public V1.PersistentVolumeSource.Builder getPersistentVolumeSourceBuilder()
       The actual volume backing the persistent volume.
       
      optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
    • getPersistentVolumeSourceOrBuilder

      public V1.PersistentVolumeSourceOrBuilder getPersistentVolumeSourceOrBuilder()
       The actual volume backing the persistent volume.
       
      optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
      Specified by:
      getPersistentVolumeSourceOrBuilder in interface V1.PersistentVolumeSpecOrBuilder
    • getAccessModesList

      public com.google.protobuf.ProtocolStringList getAccessModesList()
       AccessModes contains all ways the volume can be mounted.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       +optional
       
      repeated string accessModes = 3;
      Specified by:
      getAccessModesList in interface V1.PersistentVolumeSpecOrBuilder
    • getAccessModesCount

      public int getAccessModesCount()
       AccessModes contains all ways the volume can be mounted.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       +optional
       
      repeated string accessModes = 3;
      Specified by:
      getAccessModesCount in interface V1.PersistentVolumeSpecOrBuilder
    • getAccessModes

      public String getAccessModes(int index)
       AccessModes contains all ways the volume can be mounted.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       +optional
       
      repeated string accessModes = 3;
      Specified by:
      getAccessModes in interface V1.PersistentVolumeSpecOrBuilder
    • getAccessModesBytes

      public com.google.protobuf.ByteString getAccessModesBytes(int index)
       AccessModes contains all ways the volume can be mounted.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       +optional
       
      repeated string accessModes = 3;
      Specified by:
      getAccessModesBytes in interface V1.PersistentVolumeSpecOrBuilder
    • setAccessModes

      public V1.PersistentVolumeSpec.Builder setAccessModes(int index, String value)
       AccessModes contains all ways the volume can be mounted.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       +optional
       
      repeated string accessModes = 3;
    • addAccessModes

      public V1.PersistentVolumeSpec.Builder addAccessModes(String value)
       AccessModes contains all ways the volume can be mounted.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       +optional
       
      repeated string accessModes = 3;
    • addAllAccessModes

      public V1.PersistentVolumeSpec.Builder addAllAccessModes(Iterable<String> values)
       AccessModes contains all ways the volume can be mounted.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       +optional
       
      repeated string accessModes = 3;
    • clearAccessModes

      public V1.PersistentVolumeSpec.Builder clearAccessModes()
       AccessModes contains all ways the volume can be mounted.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       +optional
       
      repeated string accessModes = 3;
    • addAccessModesBytes

      public V1.PersistentVolumeSpec.Builder addAccessModesBytes(com.google.protobuf.ByteString value)
       AccessModes contains all ways the volume can be mounted.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       +optional
       
      repeated string accessModes = 3;
    • hasClaimRef

      public boolean hasClaimRef()
       ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       Expected to be non-nil when bound.
       claim.VolumeName is the authoritative bind between PV and PVC.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       +optional
       
      optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
      Specified by:
      hasClaimRef in interface V1.PersistentVolumeSpecOrBuilder
    • getClaimRef

      public V1.ObjectReference getClaimRef()
       ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       Expected to be non-nil when bound.
       claim.VolumeName is the authoritative bind between PV and PVC.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       +optional
       
      optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
      Specified by:
      getClaimRef in interface V1.PersistentVolumeSpecOrBuilder
    • setClaimRef

       ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       Expected to be non-nil when bound.
       claim.VolumeName is the authoritative bind between PV and PVC.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       +optional
       
      optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
    • setClaimRef

      public V1.PersistentVolumeSpec.Builder setClaimRef(V1.ObjectReference.Builder builderForValue)
       ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       Expected to be non-nil when bound.
       claim.VolumeName is the authoritative bind between PV and PVC.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       +optional
       
      optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
    • mergeClaimRef

       ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       Expected to be non-nil when bound.
       claim.VolumeName is the authoritative bind between PV and PVC.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       +optional
       
      optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
    • clearClaimRef

      public V1.PersistentVolumeSpec.Builder clearClaimRef()
       ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       Expected to be non-nil when bound.
       claim.VolumeName is the authoritative bind between PV and PVC.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       +optional
       
      optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
    • getClaimRefBuilder

      public V1.ObjectReference.Builder getClaimRefBuilder()
       ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       Expected to be non-nil when bound.
       claim.VolumeName is the authoritative bind between PV and PVC.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       +optional
       
      optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
    • getClaimRefOrBuilder

      public V1.ObjectReferenceOrBuilder getClaimRefOrBuilder()
       ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       Expected to be non-nil when bound.
       claim.VolumeName is the authoritative bind between PV and PVC.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       +optional
       
      optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
      Specified by:
      getClaimRefOrBuilder in interface V1.PersistentVolumeSpecOrBuilder
    • hasPersistentVolumeReclaimPolicy

      public boolean hasPersistentVolumeReclaimPolicy()
       What happens to a persistent volume when released from its claim.
       Valid options are Retain (default for manually created PersistentVolumes), Delete (default
       for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
       Recycle must be supported by the volume plugin underlying this PersistentVolume.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
       +optional
       
      optional string persistentVolumeReclaimPolicy = 5;
      Specified by:
      hasPersistentVolumeReclaimPolicy in interface V1.PersistentVolumeSpecOrBuilder
    • getPersistentVolumeReclaimPolicy

      public String getPersistentVolumeReclaimPolicy()
       What happens to a persistent volume when released from its claim.
       Valid options are Retain (default for manually created PersistentVolumes), Delete (default
       for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
       Recycle must be supported by the volume plugin underlying this PersistentVolume.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
       +optional
       
      optional string persistentVolumeReclaimPolicy = 5;
      Specified by:
      getPersistentVolumeReclaimPolicy in interface V1.PersistentVolumeSpecOrBuilder
    • getPersistentVolumeReclaimPolicyBytes

      public com.google.protobuf.ByteString getPersistentVolumeReclaimPolicyBytes()
       What happens to a persistent volume when released from its claim.
       Valid options are Retain (default for manually created PersistentVolumes), Delete (default
       for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
       Recycle must be supported by the volume plugin underlying this PersistentVolume.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
       +optional
       
      optional string persistentVolumeReclaimPolicy = 5;
      Specified by:
      getPersistentVolumeReclaimPolicyBytes in interface V1.PersistentVolumeSpecOrBuilder
    • setPersistentVolumeReclaimPolicy

      public V1.PersistentVolumeSpec.Builder setPersistentVolumeReclaimPolicy(String value)
       What happens to a persistent volume when released from its claim.
       Valid options are Retain (default for manually created PersistentVolumes), Delete (default
       for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
       Recycle must be supported by the volume plugin underlying this PersistentVolume.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
       +optional
       
      optional string persistentVolumeReclaimPolicy = 5;
    • clearPersistentVolumeReclaimPolicy

      public V1.PersistentVolumeSpec.Builder clearPersistentVolumeReclaimPolicy()
       What happens to a persistent volume when released from its claim.
       Valid options are Retain (default for manually created PersistentVolumes), Delete (default
       for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
       Recycle must be supported by the volume plugin underlying this PersistentVolume.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
       +optional
       
      optional string persistentVolumeReclaimPolicy = 5;
    • setPersistentVolumeReclaimPolicyBytes

      public V1.PersistentVolumeSpec.Builder setPersistentVolumeReclaimPolicyBytes(com.google.protobuf.ByteString value)
       What happens to a persistent volume when released from its claim.
       Valid options are Retain (default for manually created PersistentVolumes), Delete (default
       for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
       Recycle must be supported by the volume plugin underlying this PersistentVolume.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
       +optional
       
      optional string persistentVolumeReclaimPolicy = 5;
    • hasStorageClassName

      public boolean hasStorageClassName()
       Name of StorageClass to which this persistent volume belongs. Empty value
       means that this volume does not belong to any StorageClass.
       +optional
       
      optional string storageClassName = 6;
      Specified by:
      hasStorageClassName in interface V1.PersistentVolumeSpecOrBuilder
    • getStorageClassName

      public String getStorageClassName()
       Name of StorageClass to which this persistent volume belongs. Empty value
       means that this volume does not belong to any StorageClass.
       +optional
       
      optional string storageClassName = 6;
      Specified by:
      getStorageClassName in interface V1.PersistentVolumeSpecOrBuilder
    • getStorageClassNameBytes

      public com.google.protobuf.ByteString getStorageClassNameBytes()
       Name of StorageClass to which this persistent volume belongs. Empty value
       means that this volume does not belong to any StorageClass.
       +optional
       
      optional string storageClassName = 6;
      Specified by:
      getStorageClassNameBytes in interface V1.PersistentVolumeSpecOrBuilder
    • setStorageClassName

      public V1.PersistentVolumeSpec.Builder setStorageClassName(String value)
       Name of StorageClass to which this persistent volume belongs. Empty value
       means that this volume does not belong to any StorageClass.
       +optional
       
      optional string storageClassName = 6;
    • clearStorageClassName

      public V1.PersistentVolumeSpec.Builder clearStorageClassName()
       Name of StorageClass to which this persistent volume belongs. Empty value
       means that this volume does not belong to any StorageClass.
       +optional
       
      optional string storageClassName = 6;
    • setStorageClassNameBytes

      public V1.PersistentVolumeSpec.Builder setStorageClassNameBytes(com.google.protobuf.ByteString value)
       Name of StorageClass to which this persistent volume belongs. Empty value
       means that this volume does not belong to any StorageClass.
       +optional
       
      optional string storageClassName = 6;
    • getMountOptionsList

      public com.google.protobuf.ProtocolStringList getMountOptionsList()
       A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       simply fail if one is invalid.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       +optional
       
      repeated string mountOptions = 7;
      Specified by:
      getMountOptionsList in interface V1.PersistentVolumeSpecOrBuilder
    • getMountOptionsCount

      public int getMountOptionsCount()
       A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       simply fail if one is invalid.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       +optional
       
      repeated string mountOptions = 7;
      Specified by:
      getMountOptionsCount in interface V1.PersistentVolumeSpecOrBuilder
    • getMountOptions

      public String getMountOptions(int index)
       A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       simply fail if one is invalid.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       +optional
       
      repeated string mountOptions = 7;
      Specified by:
      getMountOptions in interface V1.PersistentVolumeSpecOrBuilder
    • getMountOptionsBytes

      public com.google.protobuf.ByteString getMountOptionsBytes(int index)
       A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       simply fail if one is invalid.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       +optional
       
      repeated string mountOptions = 7;
      Specified by:
      getMountOptionsBytes in interface V1.PersistentVolumeSpecOrBuilder
    • setMountOptions

      public V1.PersistentVolumeSpec.Builder setMountOptions(int index, String value)
       A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       simply fail if one is invalid.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       +optional
       
      repeated string mountOptions = 7;
    • addMountOptions

      public V1.PersistentVolumeSpec.Builder addMountOptions(String value)
       A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       simply fail if one is invalid.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       +optional
       
      repeated string mountOptions = 7;
    • addAllMountOptions

      public V1.PersistentVolumeSpec.Builder addAllMountOptions(Iterable<String> values)
       A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       simply fail if one is invalid.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       +optional
       
      repeated string mountOptions = 7;
    • clearMountOptions

      public V1.PersistentVolumeSpec.Builder clearMountOptions()
       A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       simply fail if one is invalid.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       +optional
       
      repeated string mountOptions = 7;
    • addMountOptionsBytes

      public V1.PersistentVolumeSpec.Builder addMountOptionsBytes(com.google.protobuf.ByteString value)
       A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       simply fail if one is invalid.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       +optional
       
      repeated string mountOptions = 7;
    • hasVolumeMode

      public boolean hasVolumeMode()
       volumeMode defines if a volume is intended to be used with a formatted filesystem
       or to remain in raw block state. Value of Filesystem is implied when not included in spec.
       +optional
       
      optional string volumeMode = 8;
      Specified by:
      hasVolumeMode in interface V1.PersistentVolumeSpecOrBuilder
    • getVolumeMode

      public String getVolumeMode()
       volumeMode defines if a volume is intended to be used with a formatted filesystem
       or to remain in raw block state. Value of Filesystem is implied when not included in spec.
       +optional
       
      optional string volumeMode = 8;
      Specified by:
      getVolumeMode in interface V1.PersistentVolumeSpecOrBuilder
    • getVolumeModeBytes

      public com.google.protobuf.ByteString getVolumeModeBytes()
       volumeMode defines if a volume is intended to be used with a formatted filesystem
       or to remain in raw block state. Value of Filesystem is implied when not included in spec.
       +optional
       
      optional string volumeMode = 8;
      Specified by:
      getVolumeModeBytes in interface V1.PersistentVolumeSpecOrBuilder
    • setVolumeMode

      public V1.PersistentVolumeSpec.Builder setVolumeMode(String value)
       volumeMode defines if a volume is intended to be used with a formatted filesystem
       or to remain in raw block state. Value of Filesystem is implied when not included in spec.
       +optional
       
      optional string volumeMode = 8;
    • clearVolumeMode

      public V1.PersistentVolumeSpec.Builder clearVolumeMode()
       volumeMode defines if a volume is intended to be used with a formatted filesystem
       or to remain in raw block state. Value of Filesystem is implied when not included in spec.
       +optional
       
      optional string volumeMode = 8;
    • setVolumeModeBytes

      public V1.PersistentVolumeSpec.Builder setVolumeModeBytes(com.google.protobuf.ByteString value)
       volumeMode defines if a volume is intended to be used with a formatted filesystem
       or to remain in raw block state. Value of Filesystem is implied when not included in spec.
       +optional
       
      optional string volumeMode = 8;
    • hasNodeAffinity

      public boolean hasNodeAffinity()
       NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       This field influences the scheduling of pods that use this volume.
       +optional
       
      optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
      Specified by:
      hasNodeAffinity in interface V1.PersistentVolumeSpecOrBuilder
    • getNodeAffinity

      public V1.VolumeNodeAffinity getNodeAffinity()
       NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       This field influences the scheduling of pods that use this volume.
       +optional
       
      optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
      Specified by:
      getNodeAffinity in interface V1.PersistentVolumeSpecOrBuilder
    • setNodeAffinity

       NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       This field influences the scheduling of pods that use this volume.
       +optional
       
      optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
    • setNodeAffinity

      public V1.PersistentVolumeSpec.Builder setNodeAffinity(V1.VolumeNodeAffinity.Builder builderForValue)
       NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       This field influences the scheduling of pods that use this volume.
       +optional
       
      optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
    • mergeNodeAffinity

      public V1.PersistentVolumeSpec.Builder mergeNodeAffinity(V1.VolumeNodeAffinity value)
       NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       This field influences the scheduling of pods that use this volume.
       +optional
       
      optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
    • clearNodeAffinity

      public V1.PersistentVolumeSpec.Builder clearNodeAffinity()
       NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       This field influences the scheduling of pods that use this volume.
       +optional
       
      optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
    • getNodeAffinityBuilder

      public V1.VolumeNodeAffinity.Builder getNodeAffinityBuilder()
       NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       This field influences the scheduling of pods that use this volume.
       +optional
       
      optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
    • getNodeAffinityOrBuilder

      public V1.VolumeNodeAffinityOrBuilder getNodeAffinityOrBuilder()
       NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       This field influences the scheduling of pods that use this volume.
       +optional
       
      optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
      Specified by:
      getNodeAffinityOrBuilder in interface V1.PersistentVolumeSpecOrBuilder
    • setUnknownFields

      public final V1.PersistentVolumeSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
    • mergeUnknownFields

      public final V1.PersistentVolumeSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>