Class Generated.PersistentVolumeSpec.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder>
      • internalGetMutableMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)
        Overrides:
        internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.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<Generated.PersistentVolumeSpec.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public boolean containsCapacity​(String key)
         capacity is the 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 Generated.PersistentVolumeSpecOrBuilder
      • getCapacityMap

        public Map<String,​Generated.Quantity> getCapacityMap()
         capacity is the 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 Generated.PersistentVolumeSpecOrBuilder
      • getCapacityOrThrow

        public Generated.Quantity getCapacityOrThrow​(String key)
         capacity is the 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 Generated.PersistentVolumeSpecOrBuilder
      • removeCapacity

        public Generated.PersistentVolumeSpec.Builder removeCapacity​(String key)
         capacity is the 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;
      • putCapacity

        public Generated.PersistentVolumeSpec.Builder putCapacity​(String key,
                                                                  Generated.Quantity value)
         capacity is the 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

        public Generated.PersistentVolumeSpec.Builder putAllCapacity​(Map<String,​Generated.Quantity> values)
         capacity is the 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;
      • putCapacityBuilderIfAbsent

        public Generated.Quantity.Builder putCapacityBuilderIfAbsent​(String key)
         capacity is the 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()
         persistentVolumeSource is the actual volume backing the persistent volume.
         
        optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
        Specified by:
        hasPersistentVolumeSource in interface Generated.PersistentVolumeSpecOrBuilder
        Returns:
        Whether the persistentVolumeSource field is set.
      • clearPersistentVolumeSource

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

        public Generated.PersistentVolumeSource.Builder getPersistentVolumeSourceBuilder()
         persistentVolumeSource is the actual volume backing the persistent volume.
         
        optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
      • 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
         +listType=atomic
         
        repeated string accessModes = 3;
        Specified by:
        getAccessModesList in interface Generated.PersistentVolumeSpecOrBuilder
        Returns:
        A list containing the accessModes.
      • 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
         +listType=atomic
         
        repeated string accessModes = 3;
        Specified by:
        getAccessModesCount in interface Generated.PersistentVolumeSpecOrBuilder
        Returns:
        The count of accessModes.
      • 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
         +listType=atomic
         
        repeated string accessModes = 3;
        Specified by:
        getAccessModes in interface Generated.PersistentVolumeSpecOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The accessModes at the given index.
      • 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
         +listType=atomic
         
        repeated string accessModes = 3;
        Specified by:
        getAccessModesBytes in interface Generated.PersistentVolumeSpecOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the accessModes at the given index.
      • setAccessModes

        public Generated.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
         +listType=atomic
         
        repeated string accessModes = 3;
        Parameters:
        index - The index to set the value at.
        value - The accessModes to set.
        Returns:
        This builder for chaining.
      • addAccessModes

        public Generated.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
         +listType=atomic
         
        repeated string accessModes = 3;
        Parameters:
        value - The accessModes to add.
        Returns:
        This builder for chaining.
      • addAllAccessModes

        public Generated.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
         +listType=atomic
         
        repeated string accessModes = 3;
        Parameters:
        values - The accessModes to add.
        Returns:
        This builder for chaining.
      • clearAccessModes

        public Generated.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
         +listType=atomic
         
        repeated string accessModes = 3;
        Returns:
        This builder for chaining.
      • addAccessModesBytes

        public Generated.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
         +listType=atomic
         
        repeated string accessModes = 3;
        Parameters:
        value - The bytes of the accessModes to add.
        Returns:
        This builder for chaining.
      • 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
         +structType=granular
         
        optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
        Specified by:
        hasClaimRef in interface Generated.PersistentVolumeSpecOrBuilder
        Returns:
        Whether the claimRef field is set.
      • getClaimRef

        public Generated.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
         +structType=granular
         
        optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
        Specified by:
        getClaimRef in interface Generated.PersistentVolumeSpecOrBuilder
        Returns:
        The claimRef.
      • setClaimRef

        public Generated.PersistentVolumeSpec.Builder setClaimRef​(Generated.ObjectReference value)
         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
         +structType=granular
         
        optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
      • setClaimRef

        public Generated.PersistentVolumeSpec.Builder setClaimRef​(Generated.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
         +structType=granular
         
        optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
      • mergeClaimRef

        public Generated.PersistentVolumeSpec.Builder mergeClaimRef​(Generated.ObjectReference value)
         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
         +structType=granular
         
        optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
      • clearClaimRef

        public Generated.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
         +structType=granular
         
        optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
      • getClaimRefBuilder

        public Generated.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
         +structType=granular
         
        optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
      • getClaimRefOrBuilder

        public Generated.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
         +structType=granular
         
        optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
        Specified by:
        getClaimRefOrBuilder in interface Generated.PersistentVolumeSpecOrBuilder
      • hasPersistentVolumeReclaimPolicy

        public boolean hasPersistentVolumeReclaimPolicy()
         persistentVolumeReclaimPolicy defines 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 Generated.PersistentVolumeSpecOrBuilder
        Returns:
        Whether the persistentVolumeReclaimPolicy field is set.
      • getPersistentVolumeReclaimPolicy

        public String getPersistentVolumeReclaimPolicy()
         persistentVolumeReclaimPolicy defines 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 Generated.PersistentVolumeSpecOrBuilder
        Returns:
        The persistentVolumeReclaimPolicy.
      • getPersistentVolumeReclaimPolicyBytes

        public com.google.protobuf.ByteString getPersistentVolumeReclaimPolicyBytes()
         persistentVolumeReclaimPolicy defines 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 Generated.PersistentVolumeSpecOrBuilder
        Returns:
        The bytes for persistentVolumeReclaimPolicy.
      • setPersistentVolumeReclaimPolicy

        public Generated.PersistentVolumeSpec.Builder setPersistentVolumeReclaimPolicy​(String value)
         persistentVolumeReclaimPolicy defines 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;
        Parameters:
        value - The persistentVolumeReclaimPolicy to set.
        Returns:
        This builder for chaining.
      • clearPersistentVolumeReclaimPolicy

        public Generated.PersistentVolumeSpec.Builder clearPersistentVolumeReclaimPolicy()
         persistentVolumeReclaimPolicy defines 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;
        Returns:
        This builder for chaining.
      • setPersistentVolumeReclaimPolicyBytes

        public Generated.PersistentVolumeSpec.Builder setPersistentVolumeReclaimPolicyBytes​(com.google.protobuf.ByteString value)
         persistentVolumeReclaimPolicy defines 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;
        Parameters:
        value - The bytes for persistentVolumeReclaimPolicy to set.
        Returns:
        This builder for chaining.
      • hasStorageClassName

        public boolean hasStorageClassName()
         storageClassName is the 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 Generated.PersistentVolumeSpecOrBuilder
        Returns:
        Whether the storageClassName field is set.
      • getStorageClassName

        public String getStorageClassName()
         storageClassName is the 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 Generated.PersistentVolumeSpecOrBuilder
        Returns:
        The storageClassName.
      • getStorageClassNameBytes

        public com.google.protobuf.ByteString getStorageClassNameBytes()
         storageClassName is the 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 Generated.PersistentVolumeSpecOrBuilder
        Returns:
        The bytes for storageClassName.
      • setStorageClassName

        public Generated.PersistentVolumeSpec.Builder setStorageClassName​(String value)
         storageClassName is the 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;
        Parameters:
        value - The storageClassName to set.
        Returns:
        This builder for chaining.
      • clearStorageClassName

        public Generated.PersistentVolumeSpec.Builder clearStorageClassName()
         storageClassName is the 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;
        Returns:
        This builder for chaining.
      • setStorageClassNameBytes

        public Generated.PersistentVolumeSpec.Builder setStorageClassNameBytes​(com.google.protobuf.ByteString value)
         storageClassName is the 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;
        Parameters:
        value - The bytes for storageClassName to set.
        Returns:
        This builder for chaining.
      • getMountOptionsList

        public com.google.protobuf.ProtocolStringList getMountOptionsList()
         mountOptions is the 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
         +listType=atomic
         
        repeated string mountOptions = 7;
        Specified by:
        getMountOptionsList in interface Generated.PersistentVolumeSpecOrBuilder
        Returns:
        A list containing the mountOptions.
      • getMountOptionsCount

        public int getMountOptionsCount()
         mountOptions is the 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
         +listType=atomic
         
        repeated string mountOptions = 7;
        Specified by:
        getMountOptionsCount in interface Generated.PersistentVolumeSpecOrBuilder
        Returns:
        The count of mountOptions.
      • getMountOptions

        public String getMountOptions​(int index)
         mountOptions is the 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
         +listType=atomic
         
        repeated string mountOptions = 7;
        Specified by:
        getMountOptions in interface Generated.PersistentVolumeSpecOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The mountOptions at the given index.
      • getMountOptionsBytes

        public com.google.protobuf.ByteString getMountOptionsBytes​(int index)
         mountOptions is the 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
         +listType=atomic
         
        repeated string mountOptions = 7;
        Specified by:
        getMountOptionsBytes in interface Generated.PersistentVolumeSpecOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the mountOptions at the given index.
      • setMountOptions

        public Generated.PersistentVolumeSpec.Builder setMountOptions​(int index,
                                                                      String value)
         mountOptions is the 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
         +listType=atomic
         
        repeated string mountOptions = 7;
        Parameters:
        index - The index to set the value at.
        value - The mountOptions to set.
        Returns:
        This builder for chaining.
      • addMountOptions

        public Generated.PersistentVolumeSpec.Builder addMountOptions​(String value)
         mountOptions is the 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
         +listType=atomic
         
        repeated string mountOptions = 7;
        Parameters:
        value - The mountOptions to add.
        Returns:
        This builder for chaining.
      • addAllMountOptions

        public Generated.PersistentVolumeSpec.Builder addAllMountOptions​(Iterable<String> values)
         mountOptions is the 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
         +listType=atomic
         
        repeated string mountOptions = 7;
        Parameters:
        values - The mountOptions to add.
        Returns:
        This builder for chaining.
      • clearMountOptions

        public Generated.PersistentVolumeSpec.Builder clearMountOptions()
         mountOptions is the 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
         +listType=atomic
         
        repeated string mountOptions = 7;
        Returns:
        This builder for chaining.
      • addMountOptionsBytes

        public Generated.PersistentVolumeSpec.Builder addMountOptionsBytes​(com.google.protobuf.ByteString value)
         mountOptions is the 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
         +listType=atomic
         
        repeated string mountOptions = 7;
        Parameters:
        value - The bytes of the mountOptions to add.
        Returns:
        This builder for chaining.
      • 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 Generated.PersistentVolumeSpecOrBuilder
        Returns:
        Whether the volumeMode field is set.
      • 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 Generated.PersistentVolumeSpecOrBuilder
        Returns:
        The volumeMode.
      • 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 Generated.PersistentVolumeSpecOrBuilder
        Returns:
        The bytes for volumeMode.
      • setVolumeMode

        public Generated.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;
        Parameters:
        value - The volumeMode to set.
        Returns:
        This builder for chaining.
      • clearVolumeMode

        public Generated.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;
        Returns:
        This builder for chaining.
      • setVolumeModeBytes

        public Generated.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;
        Parameters:
        value - The bytes for volumeMode to set.
        Returns:
        This builder for chaining.
      • 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 Generated.PersistentVolumeSpecOrBuilder
        Returns:
        Whether the nodeAffinity field is set.
      • getNodeAffinity

        public Generated.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 Generated.PersistentVolumeSpecOrBuilder
        Returns:
        The nodeAffinity.
      • setNodeAffinity

        public Generated.PersistentVolumeSpec.Builder setNodeAffinity​(Generated.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;
      • setNodeAffinity

        public Generated.PersistentVolumeSpec.Builder setNodeAffinity​(Generated.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 Generated.PersistentVolumeSpec.Builder mergeNodeAffinity​(Generated.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 Generated.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 Generated.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;
      • hasVolumeAttributesClassName

        public boolean hasVolumeAttributesClassName()
         Name of VolumeAttributesClass to which this persistent volume belongs. Empty value
         is not allowed. When this field is not set, it indicates that this volume does not belong to any
         VolumeAttributesClass. This field is mutable and can be changed by the CSI driver
         after a volume has been updated successfully to a new class.
         For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound
         PersistentVolumeClaims during the binding process.
         This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
         +featureGate=VolumeAttributesClass
         +optional
         
        optional string volumeAttributesClassName = 10;
        Specified by:
        hasVolumeAttributesClassName in interface Generated.PersistentVolumeSpecOrBuilder
        Returns:
        Whether the volumeAttributesClassName field is set.
      • getVolumeAttributesClassName

        public String getVolumeAttributesClassName()
         Name of VolumeAttributesClass to which this persistent volume belongs. Empty value
         is not allowed. When this field is not set, it indicates that this volume does not belong to any
         VolumeAttributesClass. This field is mutable and can be changed by the CSI driver
         after a volume has been updated successfully to a new class.
         For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound
         PersistentVolumeClaims during the binding process.
         This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
         +featureGate=VolumeAttributesClass
         +optional
         
        optional string volumeAttributesClassName = 10;
        Specified by:
        getVolumeAttributesClassName in interface Generated.PersistentVolumeSpecOrBuilder
        Returns:
        The volumeAttributesClassName.
      • getVolumeAttributesClassNameBytes

        public com.google.protobuf.ByteString getVolumeAttributesClassNameBytes()
         Name of VolumeAttributesClass to which this persistent volume belongs. Empty value
         is not allowed. When this field is not set, it indicates that this volume does not belong to any
         VolumeAttributesClass. This field is mutable and can be changed by the CSI driver
         after a volume has been updated successfully to a new class.
         For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound
         PersistentVolumeClaims during the binding process.
         This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
         +featureGate=VolumeAttributesClass
         +optional
         
        optional string volumeAttributesClassName = 10;
        Specified by:
        getVolumeAttributesClassNameBytes in interface Generated.PersistentVolumeSpecOrBuilder
        Returns:
        The bytes for volumeAttributesClassName.
      • setVolumeAttributesClassName

        public Generated.PersistentVolumeSpec.Builder setVolumeAttributesClassName​(String value)
         Name of VolumeAttributesClass to which this persistent volume belongs. Empty value
         is not allowed. When this field is not set, it indicates that this volume does not belong to any
         VolumeAttributesClass. This field is mutable and can be changed by the CSI driver
         after a volume has been updated successfully to a new class.
         For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound
         PersistentVolumeClaims during the binding process.
         This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
         +featureGate=VolumeAttributesClass
         +optional
         
        optional string volumeAttributesClassName = 10;
        Parameters:
        value - The volumeAttributesClassName to set.
        Returns:
        This builder for chaining.
      • clearVolumeAttributesClassName

        public Generated.PersistentVolumeSpec.Builder clearVolumeAttributesClassName()
         Name of VolumeAttributesClass to which this persistent volume belongs. Empty value
         is not allowed. When this field is not set, it indicates that this volume does not belong to any
         VolumeAttributesClass. This field is mutable and can be changed by the CSI driver
         after a volume has been updated successfully to a new class.
         For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound
         PersistentVolumeClaims during the binding process.
         This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
         +featureGate=VolumeAttributesClass
         +optional
         
        optional string volumeAttributesClassName = 10;
        Returns:
        This builder for chaining.
      • setVolumeAttributesClassNameBytes

        public Generated.PersistentVolumeSpec.Builder setVolumeAttributesClassNameBytes​(com.google.protobuf.ByteString value)
         Name of VolumeAttributesClass to which this persistent volume belongs. Empty value
         is not allowed. When this field is not set, it indicates that this volume does not belong to any
         VolumeAttributesClass. This field is mutable and can be changed by the CSI driver
         after a volume has been updated successfully to a new class.
         For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound
         PersistentVolumeClaims during the binding process.
         This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
         +featureGate=VolumeAttributesClass
         +optional
         
        optional string volumeAttributesClassName = 10;
        Parameters:
        value - The bytes for volumeAttributesClassName to set.
        Returns:
        This builder for chaining.