Package k8s.io.api.core.v1
Class Generated.PersistentVolumeSpec
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.api.core.v1.Generated.PersistentVolumeSpec
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Generated.PersistentVolumeSpecOrBuilder
- Enclosing class:
- Generated
public static final class Generated.PersistentVolumeSpec extends com.google.protobuf.GeneratedMessageV3 implements Generated.PersistentVolumeSpecOrBuilder
PersistentVolumeSpec is the specification of a persistent volume.
Protobuf typek8s.io.api.core.v1.PersistentVolumeSpec- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.PersistentVolumeSpec.BuilderPersistentVolumeSpec is the specification of a persistent volume.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intACCESSMODES_FIELD_NUMBERstatic intCAPACITY_FIELD_NUMBERstatic intCLAIMREF_FIELD_NUMBERstatic intMOUNTOPTIONS_FIELD_NUMBERstatic intNODEAFFINITY_FIELD_NUMBERstatic com.google.protobuf.Parser<Generated.PersistentVolumeSpec>PARSERDeprecated.static intPERSISTENTVOLUMERECLAIMPOLICY_FIELD_NUMBERstatic intPERSISTENTVOLUMESOURCE_FIELD_NUMBERstatic intSTORAGECLASSNAME_FIELD_NUMBERstatic intVOLUMEATTRIBUTESCLASSNAME_FIELD_NUMBERstatic intVOLUMEMODE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsCapacity(String key)capacity is the description of the persistent volume's resources and capacity.booleanequals(Object obj)StringgetAccessModes(int index)accessModes contains all ways the volume can be mounted.com.google.protobuf.ByteStringgetAccessModesBytes(int index)accessModes contains all ways the volume can be mounted.intgetAccessModesCount()accessModes contains all ways the volume can be mounted.com.google.protobuf.ProtocolStringListgetAccessModesList()accessModes contains all ways the volume can be mounted.Map<String,Generated.Quantity>getCapacity()Deprecated.intgetCapacityCount()capacity is the description of the persistent volume's resources and capacity.Map<String,Generated.Quantity>getCapacityMap()capacity is the description of the persistent volume's resources and capacity.Generated.QuantitygetCapacityOrDefault(String key, Generated.Quantity defaultValue)capacity is the description of the persistent volume's resources and capacity.Generated.QuantitygetCapacityOrThrow(String key)capacity is the description of the persistent volume's resources and capacity.Generated.ObjectReferencegetClaimRef()claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.Generated.ObjectReferenceOrBuildergetClaimRefOrBuilder()claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.static Generated.PersistentVolumeSpecgetDefaultInstance()Generated.PersistentVolumeSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetMountOptions(int index)mountOptions is the list of mount options, e.g.com.google.protobuf.ByteStringgetMountOptionsBytes(int index)mountOptions is the list of mount options, e.g.intgetMountOptionsCount()mountOptions is the list of mount options, e.g.com.google.protobuf.ProtocolStringListgetMountOptionsList()mountOptions is the list of mount options, e.g.Generated.VolumeNodeAffinitygetNodeAffinity()nodeAffinity defines constraints that limit what nodes this volume can be accessed from.Generated.VolumeNodeAffinityOrBuildergetNodeAffinityOrBuilder()nodeAffinity defines constraints that limit what nodes this volume can be accessed from.com.google.protobuf.Parser<Generated.PersistentVolumeSpec>getParserForType()StringgetPersistentVolumeReclaimPolicy()persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.com.google.protobuf.ByteStringgetPersistentVolumeReclaimPolicyBytes()persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.Generated.PersistentVolumeSourcegetPersistentVolumeSource()persistentVolumeSource is the actual volume backing the persistent volume.Generated.PersistentVolumeSourceOrBuildergetPersistentVolumeSourceOrBuilder()persistentVolumeSource is the actual volume backing the persistent volume.intgetSerializedSize()StringgetStorageClassName()storageClassName is the name of StorageClass to which this persistent volume belongs.com.google.protobuf.ByteStringgetStorageClassNameBytes()storageClassName is the name of StorageClass to which this persistent volume belongs.StringgetVolumeAttributesClassName()Name of VolumeAttributesClass to which this persistent volume belongs.com.google.protobuf.ByteStringgetVolumeAttributesClassNameBytes()Name of VolumeAttributesClass to which this persistent volume belongs.StringgetVolumeMode()volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.com.google.protobuf.ByteStringgetVolumeModeBytes()volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.booleanhasClaimRef()claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.inthashCode()booleanhasNodeAffinity()nodeAffinity defines constraints that limit what nodes this volume can be accessed from.booleanhasPersistentVolumeReclaimPolicy()persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.booleanhasPersistentVolumeSource()persistentVolumeSource is the actual volume backing the persistent volume.booleanhasStorageClassName()storageClassName is the name of StorageClass to which this persistent volume belongs.booleanhasVolumeAttributesClassName()Name of VolumeAttributesClass to which this persistent volume belongs.booleanhasVolumeMode()volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static Generated.PersistentVolumeSpec.BuildernewBuilder()static Generated.PersistentVolumeSpec.BuildernewBuilder(Generated.PersistentVolumeSpec prototype)Generated.PersistentVolumeSpec.BuildernewBuilderForType()protected Generated.PersistentVolumeSpec.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.PersistentVolumeSpecparseDelimitedFrom(InputStream input)static Generated.PersistentVolumeSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PersistentVolumeSpecparseFrom(byte[] data)static Generated.PersistentVolumeSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PersistentVolumeSpecparseFrom(com.google.protobuf.ByteString data)static Generated.PersistentVolumeSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PersistentVolumeSpecparseFrom(com.google.protobuf.CodedInputStream input)static Generated.PersistentVolumeSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PersistentVolumeSpecparseFrom(InputStream input)static Generated.PersistentVolumeSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PersistentVolumeSpecparseFrom(ByteBuffer data)static Generated.PersistentVolumeSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.PersistentVolumeSpec>parser()Generated.PersistentVolumeSpec.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CAPACITY_FIELD_NUMBER
public static final int CAPACITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PERSISTENTVOLUMESOURCE_FIELD_NUMBER
public static final int PERSISTENTVOLUMESOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACCESSMODES_FIELD_NUMBER
public static final int ACCESSMODES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CLAIMREF_FIELD_NUMBER
public static final int CLAIMREF_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PERSISTENTVOLUMERECLAIMPOLICY_FIELD_NUMBER
public static final int PERSISTENTVOLUMERECLAIMPOLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STORAGECLASSNAME_FIELD_NUMBER
public static final int STORAGECLASSNAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MOUNTOPTIONS_FIELD_NUMBER
public static final int MOUNTOPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VOLUMEMODE_FIELD_NUMBER
public static final int VOLUMEMODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NODEAFFINITY_FIELD_NUMBER
public static final int NODEAFFINITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VOLUMEATTRIBUTESCLASSNAME_FIELD_NUMBER
public static final int VOLUMEATTRIBUTESCLASSNAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.PersistentVolumeSpec> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getCapacityCount
public int getCapacityCount()
Description copied from interface:Generated.PersistentVolumeSpecOrBuildercapacity 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:
getCapacityCountin interfaceGenerated.PersistentVolumeSpecOrBuilder
-
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:
containsCapacityin interfaceGenerated.PersistentVolumeSpecOrBuilder
-
getCapacity
@Deprecated public Map<String,Generated.Quantity> getCapacity()
Deprecated.UsegetCapacityMap()instead.- Specified by:
getCapacityin interfaceGenerated.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:
getCapacityMapin interfaceGenerated.PersistentVolumeSpecOrBuilder
-
getCapacityOrDefault
public Generated.Quantity getCapacityOrDefault(String key, Generated.Quantity defaultValue)
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:
getCapacityOrDefaultin interfaceGenerated.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:
getCapacityOrThrowin interfaceGenerated.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:
hasPersistentVolumeSourcein interfaceGenerated.PersistentVolumeSpecOrBuilder- Returns:
- Whether the persistentVolumeSource field is set.
-
getPersistentVolumeSource
public Generated.PersistentVolumeSource getPersistentVolumeSource()
persistentVolumeSource is the actual volume backing the persistent volume.
optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;- Specified by:
getPersistentVolumeSourcein interfaceGenerated.PersistentVolumeSpecOrBuilder- Returns:
- The persistentVolumeSource.
-
getPersistentVolumeSourceOrBuilder
public Generated.PersistentVolumeSourceOrBuilder getPersistentVolumeSourceOrBuilder()
persistentVolumeSource is the actual volume backing the persistent volume.
optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;- Specified by:
getPersistentVolumeSourceOrBuilderin interfaceGenerated.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 +listType=atomic
repeated string accessModes = 3;- Specified by:
getAccessModesListin interfaceGenerated.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:
getAccessModesCountin interfaceGenerated.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:
getAccessModesin interfaceGenerated.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:
getAccessModesBytesin interfaceGenerated.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:
hasClaimRefin interfaceGenerated.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:
getClaimRefin interfaceGenerated.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:
getClaimRefOrBuilderin interfaceGenerated.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:
hasPersistentVolumeReclaimPolicyin interfaceGenerated.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:
getPersistentVolumeReclaimPolicyin interfaceGenerated.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:
getPersistentVolumeReclaimPolicyBytesin interfaceGenerated.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:
hasStorageClassNamein interfaceGenerated.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:
getStorageClassNamein interfaceGenerated.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:
getStorageClassNameBytesin interfaceGenerated.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:
getMountOptionsListin interfaceGenerated.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:
getMountOptionsCountin interfaceGenerated.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:
getMountOptionsin interfaceGenerated.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:
getMountOptionsBytesin interfaceGenerated.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:
hasVolumeModein interfaceGenerated.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:
getVolumeModein interfaceGenerated.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:
getVolumeModeBytesin interfaceGenerated.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:
hasNodeAffinityin interfaceGenerated.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:
getNodeAffinityin interfaceGenerated.PersistentVolumeSpecOrBuilder- Returns:
- The nodeAffinity.
-
getNodeAffinityOrBuilder
public Generated.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:
getNodeAffinityOrBuilderin interfaceGenerated.PersistentVolumeSpecOrBuilder
-
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:
hasVolumeAttributesClassNamein interfaceGenerated.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:
getVolumeAttributesClassNamein interfaceGenerated.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:
getVolumeAttributesClassNameBytesin interfaceGenerated.PersistentVolumeSpecOrBuilder- Returns:
- The bytes for volumeAttributesClassName.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
-
parseFrom
public static Generated.PersistentVolumeSpec parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.PersistentVolumeSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.PersistentVolumeSpec parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.PersistentVolumeSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.PersistentVolumeSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.PersistentVolumeSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.PersistentVolumeSpec.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.PersistentVolumeSpec.Builder newBuilder()
-
newBuilder
public static Generated.PersistentVolumeSpec.Builder newBuilder(Generated.PersistentVolumeSpec prototype)
-
toBuilder
public Generated.PersistentVolumeSpec.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.PersistentVolumeSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.PersistentVolumeSpec getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.PersistentVolumeSpec> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.PersistentVolumeSpec> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.PersistentVolumeSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-