Class Generated.PersistentVolumeSpec

    • Method Detail

      • newInstance

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

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

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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