Package k8s.io.api.core.v1
Class Generated.PersistentVolumeSpec.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder>
-
- k8s.io.api.core.v1.Generated.PersistentVolumeSpec.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.PersistentVolumeSpecOrBuilder
- Enclosing class:
- Generated.PersistentVolumeSpec
public static final class Generated.PersistentVolumeSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder> implements Generated.PersistentVolumeSpecOrBuilder
PersistentVolumeSpec is the specification of a persistent volume.
Protobuf typek8s.io.api.core.v1.PersistentVolumeSpec
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Generated.PersistentVolumeSpec.BuilderaddAccessModes(String value)accessModes contains all ways the volume can be mounted.Generated.PersistentVolumeSpec.BuilderaddAccessModesBytes(com.google.protobuf.ByteString value)accessModes contains all ways the volume can be mounted.Generated.PersistentVolumeSpec.BuilderaddAllAccessModes(Iterable<String> values)accessModes contains all ways the volume can be mounted.Generated.PersistentVolumeSpec.BuilderaddAllMountOptions(Iterable<String> values)mountOptions is the list of mount options, e.g.Generated.PersistentVolumeSpec.BuilderaddMountOptions(String value)mountOptions is the list of mount options, e.g.Generated.PersistentVolumeSpec.BuilderaddMountOptionsBytes(com.google.protobuf.ByteString value)mountOptions is the list of mount options, e.g.Generated.PersistentVolumeSpec.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.PersistentVolumeSpecbuild()Generated.PersistentVolumeSpecbuildPartial()Generated.PersistentVolumeSpec.Builderclear()Generated.PersistentVolumeSpec.BuilderclearAccessModes()accessModes contains all ways the volume can be mounted.Generated.PersistentVolumeSpec.BuilderclearCapacity()Generated.PersistentVolumeSpec.BuilderclearClaimRef()claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.Generated.PersistentVolumeSpec.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.PersistentVolumeSpec.BuilderclearMountOptions()mountOptions is the list of mount options, e.g.Generated.PersistentVolumeSpec.BuilderclearNodeAffinity()nodeAffinity defines constraints that limit what nodes this volume can be accessed from.Generated.PersistentVolumeSpec.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.PersistentVolumeSpec.BuilderclearPersistentVolumeReclaimPolicy()persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.Generated.PersistentVolumeSpec.BuilderclearPersistentVolumeSource()persistentVolumeSource is the actual volume backing the persistent volume.Generated.PersistentVolumeSpec.BuilderclearStorageClassName()storageClassName is the name of StorageClass to which this persistent volume belongs.Generated.PersistentVolumeSpec.BuilderclearVolumeAttributesClassName()Name of VolumeAttributesClass to which this persistent volume belongs.Generated.PersistentVolumeSpec.BuilderclearVolumeMode()volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.Generated.PersistentVolumeSpec.Builderclone()booleancontainsCapacity(String key)capacity is the description of the persistent volume's resources and capacity.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.ObjectReference.BuildergetClaimRefBuilder()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.Generated.PersistentVolumeSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.Map<String,Generated.Quantity>getMutableCapacity()Deprecated.Generated.VolumeNodeAffinitygetNodeAffinity()nodeAffinity defines constraints that limit what nodes this volume can be accessed from.Generated.VolumeNodeAffinity.BuildergetNodeAffinityBuilder()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.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.PersistentVolumeSource.BuildergetPersistentVolumeSourceBuilder()persistentVolumeSource is the actual volume backing the persistent volume.Generated.PersistentVolumeSourceOrBuildergetPersistentVolumeSourceOrBuilder()persistentVolumeSource is the actual volume backing the persistent volume.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.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)protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number)booleanisInitialized()Generated.PersistentVolumeSpec.BuildermergeClaimRef(Generated.ObjectReference value)claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.Generated.PersistentVolumeSpec.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.PersistentVolumeSpec.BuildermergeFrom(com.google.protobuf.Message other)Generated.PersistentVolumeSpec.BuildermergeFrom(Generated.PersistentVolumeSpec other)Generated.PersistentVolumeSpec.BuildermergeNodeAffinity(Generated.VolumeNodeAffinity value)nodeAffinity defines constraints that limit what nodes this volume can be accessed from.Generated.PersistentVolumeSpec.BuildermergePersistentVolumeSource(Generated.PersistentVolumeSource value)persistentVolumeSource is the actual volume backing the persistent volume.Generated.PersistentVolumeSpec.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.PersistentVolumeSpec.BuilderputAllCapacity(Map<String,Generated.Quantity> values)capacity is the description of the persistent volume's resources and capacity.Generated.PersistentVolumeSpec.BuilderputCapacity(String key, Generated.Quantity value)capacity is the description of the persistent volume's resources and capacity.Generated.Quantity.BuilderputCapacityBuilderIfAbsent(String key)capacity is the description of the persistent volume's resources and capacity.Generated.PersistentVolumeSpec.BuilderremoveCapacity(String key)capacity is the description of the persistent volume's resources and capacity.Generated.PersistentVolumeSpec.BuildersetAccessModes(int index, String value)accessModes contains all ways the volume can be mounted.Generated.PersistentVolumeSpec.BuildersetClaimRef(Generated.ObjectReference value)claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.Generated.PersistentVolumeSpec.BuildersetClaimRef(Generated.ObjectReference.Builder builderForValue)claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.Generated.PersistentVolumeSpec.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.PersistentVolumeSpec.BuildersetMountOptions(int index, String value)mountOptions is the list of mount options, e.g.Generated.PersistentVolumeSpec.BuildersetNodeAffinity(Generated.VolumeNodeAffinity value)nodeAffinity defines constraints that limit what nodes this volume can be accessed from.Generated.PersistentVolumeSpec.BuildersetNodeAffinity(Generated.VolumeNodeAffinity.Builder builderForValue)nodeAffinity defines constraints that limit what nodes this volume can be accessed from.Generated.PersistentVolumeSpec.BuildersetPersistentVolumeReclaimPolicy(String value)persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.Generated.PersistentVolumeSpec.BuildersetPersistentVolumeReclaimPolicyBytes(com.google.protobuf.ByteString value)persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.Generated.PersistentVolumeSpec.BuildersetPersistentVolumeSource(Generated.PersistentVolumeSource value)persistentVolumeSource is the actual volume backing the persistent volume.Generated.PersistentVolumeSpec.BuildersetPersistentVolumeSource(Generated.PersistentVolumeSource.Builder builderForValue)persistentVolumeSource is the actual volume backing the persistent volume.Generated.PersistentVolumeSpec.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.PersistentVolumeSpec.BuildersetStorageClassName(String value)storageClassName is the name of StorageClass to which this persistent volume belongs.Generated.PersistentVolumeSpec.BuildersetStorageClassNameBytes(com.google.protobuf.ByteString value)storageClassName is the name of StorageClass to which this persistent volume belongs.Generated.PersistentVolumeSpec.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.PersistentVolumeSpec.BuildersetVolumeAttributesClassName(String value)Name of VolumeAttributesClass to which this persistent volume belongs.Generated.PersistentVolumeSpec.BuildersetVolumeAttributesClassNameBytes(com.google.protobuf.ByteString value)Name of VolumeAttributesClass to which this persistent volume belongs.Generated.PersistentVolumeSpec.BuildersetVolumeMode(String value)volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.Generated.PersistentVolumeSpec.BuildersetVolumeModeBytes(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.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<Generated.PersistentVolumeSpec.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
- Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder>
-
clear
public Generated.PersistentVolumeSpec.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder>
-
getDefaultInstanceForType
public Generated.PersistentVolumeSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.PersistentVolumeSpec build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.PersistentVolumeSpec buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.PersistentVolumeSpec.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder>
-
setField
public Generated.PersistentVolumeSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder>
-
clearField
public Generated.PersistentVolumeSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder>
-
clearOneof
public Generated.PersistentVolumeSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder>
-
setRepeatedField
public Generated.PersistentVolumeSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder>
-
addRepeatedField
public Generated.PersistentVolumeSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder>
-
mergeFrom
public Generated.PersistentVolumeSpec.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.PersistentVolumeSpec.Builder>
-
mergeFrom
public Generated.PersistentVolumeSpec.Builder mergeFrom(Generated.PersistentVolumeSpec other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder>
-
mergeFrom
public Generated.PersistentVolumeSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.PersistentVolumeSpec.Builder>- Throws:
IOException
-
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
-
clearCapacity
public Generated.PersistentVolumeSpec.Builder clearCapacity()
-
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;
-
getMutableCapacity
@Deprecated public Map<String,Generated.Quantity> getMutableCapacity()
Deprecated.Use alternate mutation accessors instead.
-
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:
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.
-
setPersistentVolumeSource
public Generated.PersistentVolumeSpec.Builder setPersistentVolumeSource(Generated.PersistentVolumeSource value)
persistentVolumeSource is the actual volume backing the persistent volume.
optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
-
setPersistentVolumeSource
public Generated.PersistentVolumeSpec.Builder setPersistentVolumeSource(Generated.PersistentVolumeSource.Builder builderForValue)
persistentVolumeSource is the actual volume backing the persistent volume.
optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
-
mergePersistentVolumeSource
public Generated.PersistentVolumeSpec.Builder mergePersistentVolumeSource(Generated.PersistentVolumeSource value)
persistentVolumeSource is the actual volume backing the persistent volume.
optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
-
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;
-
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.
-
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:
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.
-
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:
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.
-
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:
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.
-
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:
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.
-
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:
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.
-
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:
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.
-
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;
-
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.
-
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.
-
setUnknownFields
public final Generated.PersistentVolumeSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder>
-
mergeUnknownFields
public final Generated.PersistentVolumeSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeSpec.Builder>
-
-