Package io.kubernetes.client.proto
Class V1.PersistentVolumeClaimSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1.PersistentVolumeClaimSpecOrBuilder,Cloneable
- Enclosing class:
- V1.PersistentVolumeClaimSpec
public static final class V1.PersistentVolumeClaimSpec.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
implements V1.PersistentVolumeClaimSpecOrBuilder
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributesProtobuf type
k8s.io.api.core.v1.PersistentVolumeClaimSpec-
Method Summary
Modifier and TypeMethodDescriptionaddAccessModes(String value) AccessModes contains the desired access modes the volume should have.addAccessModesBytes(com.google.protobuf.ByteString value) AccessModes contains the desired access modes the volume should have.addAllAccessModes(Iterable<String> values) AccessModes contains the desired access modes the volume should have.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()AccessModes contains the desired access modes the volume should have.This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source.Specifies the object from which to populate the volume with data, if a non-empty volume is desired.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Resources represents the minimum resources the volume should have.A label query over volumes to consider for binding.Name of the StorageClass required by the claim.volumeMode defines what type of volume is required by the claim.VolumeName is the binding reference to the PersistentVolume backing this claim.clone()getAccessModes(int index) AccessModes contains the desired access modes the volume should have.com.google.protobuf.ByteStringgetAccessModesBytes(int index) AccessModes contains the desired access modes the volume should have.intAccessModes contains the desired access modes the volume should have.com.google.protobuf.ProtocolStringListAccessModes contains the desired access modes the volume should have.This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source.This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source.This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source.Specifies the object from which to populate the volume with data, if a non-empty volume is desired.Specifies the object from which to populate the volume with data, if a non-empty volume is desired.Specifies the object from which to populate the volume with data, if a non-empty volume is desired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorResources represents the minimum resources the volume should have.Resources represents the minimum resources the volume should have.Resources represents the minimum resources the volume should have.A label query over volumes to consider for binding.A label query over volumes to consider for binding.A label query over volumes to consider for binding.Name of the StorageClass required by the claim.com.google.protobuf.ByteStringName of the StorageClass required by the claim.volumeMode defines what type of volume is required by the claim.com.google.protobuf.ByteStringvolumeMode defines what type of volume is required by the claim.VolumeName is the binding reference to the PersistentVolume backing this claim.com.google.protobuf.ByteStringVolumeName is the binding reference to the PersistentVolume backing this claim.booleanThis field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source.booleanSpecifies the object from which to populate the volume with data, if a non-empty volume is desired.booleanResources represents the minimum resources the volume should have.booleanA label query over volumes to consider for binding.booleanName of the StorageClass required by the claim.booleanvolumeMode defines what type of volume is required by the claim.booleanVolumeName is the binding reference to the PersistentVolume backing this claim.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanThis field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source.Specifies the object from which to populate the volume with data, if a non-empty volume is desired.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Resources represents the minimum resources the volume should have.mergeSelector(Meta.LabelSelector value) A label query over volumes to consider for binding.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAccessModes(int index, String value) AccessModes contains the desired access modes the volume should have.This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source.setDataSource(V1.TypedLocalObjectReference.Builder builderForValue) This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source.Specifies the object from which to populate the volume with data, if a non-empty volume is desired.setDataSourceRef(V1.TypedLocalObjectReference.Builder builderForValue) Specifies the object from which to populate the volume with data, if a non-empty volume is desired.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Resources represents the minimum resources the volume should have.setResources(V1.ResourceRequirements.Builder builderForValue) Resources represents the minimum resources the volume should have.setSelector(Meta.LabelSelector value) A label query over volumes to consider for binding.setSelector(Meta.LabelSelector.Builder builderForValue) A label query over volumes to consider for binding.setStorageClassName(String value) Name of the StorageClass required by the claim.setStorageClassNameBytes(com.google.protobuf.ByteString value) Name of the StorageClass required by the claim.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVolumeMode(String value) volumeMode defines what type of volume is required by the claim.setVolumeModeBytes(com.google.protobuf.ByteString value) volumeMode defines what type of volume is required by the claim.setVolumeName(String value) VolumeName is the binding reference to the PersistentVolume backing this claim.setVolumeNameBytes(com.google.protobuf.ByteString value) VolumeName is the binding reference to the PersistentVolume backing this claim.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.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<V1.PersistentVolumeClaimSpec.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<V1.PersistentVolumeClaimSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<V1.PersistentVolumeClaimSpec.Builder>
-
setField
public V1.PersistentVolumeClaimSpec.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<V1.PersistentVolumeClaimSpec.Builder>
-
clearField
public V1.PersistentVolumeClaimSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
-
clearOneof
public V1.PersistentVolumeClaimSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
-
setRepeatedField
public V1.PersistentVolumeClaimSpec.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<V1.PersistentVolumeClaimSpec.Builder>
-
addRepeatedField
public V1.PersistentVolumeClaimSpec.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<V1.PersistentVolumeClaimSpec.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1.PersistentVolumeClaimSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
-
mergeFrom
public V1.PersistentVolumeClaimSpec.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<V1.PersistentVolumeClaimSpec.Builder>- Throws:
IOException
-
getAccessModesList
public com.google.protobuf.ProtocolStringList getAccessModesList()AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional
repeated string accessModes = 1;- Specified by:
getAccessModesListin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
getAccessModesCount
public int getAccessModesCount()AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional
repeated string accessModes = 1;- Specified by:
getAccessModesCountin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
getAccessModes
AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional
repeated string accessModes = 1;- Specified by:
getAccessModesin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
getAccessModesBytes
public com.google.protobuf.ByteString getAccessModesBytes(int index) AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional
repeated string accessModes = 1;- Specified by:
getAccessModesBytesin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
setAccessModes
AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional
repeated string accessModes = 1; -
addAccessModes
AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional
repeated string accessModes = 1; -
addAllAccessModes
AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional
repeated string accessModes = 1; -
clearAccessModes
AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional
repeated string accessModes = 1; -
addAccessModesBytes
public V1.PersistentVolumeClaimSpec.Builder addAccessModesBytes(com.google.protobuf.ByteString value) AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional
repeated string accessModes = 1; -
hasSelector
public boolean hasSelector()A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;- Specified by:
hasSelectorin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
getSelector
A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;- Specified by:
getSelectorin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
setSelector
A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; -
setSelector
A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; -
mergeSelector
A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; -
clearSelector
A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; -
getSelectorBuilder
A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; -
getSelectorOrBuilder
A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;- Specified by:
getSelectorOrBuilderin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
hasResources
public boolean hasResources()Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources +optional
optional .k8s.io.api.core.v1.ResourceRequirements resources = 2;- Specified by:
hasResourcesin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
getResources
Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources +optional
optional .k8s.io.api.core.v1.ResourceRequirements resources = 2;- Specified by:
getResourcesin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
setResources
Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources +optional
optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; -
setResources
public V1.PersistentVolumeClaimSpec.Builder setResources(V1.ResourceRequirements.Builder builderForValue) Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources +optional
optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; -
mergeResources
Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources +optional
optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; -
clearResources
Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources +optional
optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; -
getResourcesBuilder
Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources +optional
optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; -
getResourcesOrBuilder
Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources +optional
optional .k8s.io.api.core.v1.ResourceRequirements resources = 2;- Specified by:
getResourcesOrBuilderin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
hasVolumeName
public boolean hasVolumeName()VolumeName is the binding reference to the PersistentVolume backing this claim. +optional
optional string volumeName = 3;- Specified by:
hasVolumeNamein interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
getVolumeName
VolumeName is the binding reference to the PersistentVolume backing this claim. +optional
optional string volumeName = 3;- Specified by:
getVolumeNamein interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
getVolumeNameBytes
public com.google.protobuf.ByteString getVolumeNameBytes()VolumeName is the binding reference to the PersistentVolume backing this claim. +optional
optional string volumeName = 3;- Specified by:
getVolumeNameBytesin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
setVolumeName
VolumeName is the binding reference to the PersistentVolume backing this claim. +optional
optional string volumeName = 3; -
clearVolumeName
VolumeName is the binding reference to the PersistentVolume backing this claim. +optional
optional string volumeName = 3; -
setVolumeNameBytes
public V1.PersistentVolumeClaimSpec.Builder setVolumeNameBytes(com.google.protobuf.ByteString value) VolumeName is the binding reference to the PersistentVolume backing this claim. +optional
optional string volumeName = 3; -
hasStorageClassName
public boolean hasStorageClassName()Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 +optional
optional string storageClassName = 5;- Specified by:
hasStorageClassNamein interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
getStorageClassName
Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 +optional
optional string storageClassName = 5;- Specified by:
getStorageClassNamein interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
getStorageClassNameBytes
public com.google.protobuf.ByteString getStorageClassNameBytes()Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 +optional
optional string storageClassName = 5;- Specified by:
getStorageClassNameBytesin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
setStorageClassName
Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 +optional
optional string storageClassName = 5; -
clearStorageClassName
Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 +optional
optional string storageClassName = 5; -
setStorageClassNameBytes
public V1.PersistentVolumeClaimSpec.Builder setStorageClassNameBytes(com.google.protobuf.ByteString value) Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 +optional
optional string storageClassName = 5; -
hasVolumeMode
public boolean hasVolumeMode()volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. +optional
optional string volumeMode = 6;- Specified by:
hasVolumeModein interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
getVolumeMode
volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. +optional
optional string volumeMode = 6;- Specified by:
getVolumeModein interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
getVolumeModeBytes
public com.google.protobuf.ByteString getVolumeModeBytes()volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. +optional
optional string volumeMode = 6;- Specified by:
getVolumeModeBytesin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
setVolumeMode
volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. +optional
optional string volumeMode = 6; -
clearVolumeMode
volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. +optional
optional string volumeMode = 6; -
setVolumeModeBytes
public V1.PersistentVolumeClaimSpec.Builder setVolumeModeBytes(com.google.protobuf.ByteString value) volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. +optional
optional string volumeMode = 6; -
hasDataSource
public boolean hasDataSource()This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7;- Specified by:
hasDataSourcein interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
getDataSource
This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7;- Specified by:
getDataSourcein interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
setDataSource
This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; -
setDataSource
public V1.PersistentVolumeClaimSpec.Builder setDataSource(V1.TypedLocalObjectReference.Builder builderForValue) This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; -
mergeDataSource
This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; -
clearDataSource
This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; -
getDataSourceBuilder
This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; -
getDataSourceOrBuilder
This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7;- Specified by:
getDataSourceOrBuilderin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
hasDataSourceRef
public boolean hasDataSourceRef()Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8;- Specified by:
hasDataSourceRefin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
getDataSourceRef
Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8;- Specified by:
getDataSourceRefin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
setDataSourceRef
Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; -
setDataSourceRef
public V1.PersistentVolumeClaimSpec.Builder setDataSourceRef(V1.TypedLocalObjectReference.Builder builderForValue) Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; -
mergeDataSourceRef
Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; -
clearDataSourceRef
Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; -
getDataSourceRefBuilder
Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; -
getDataSourceRefOrBuilder
Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8;- Specified by:
getDataSourceRefOrBuilderin interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
setUnknownFields
public final V1.PersistentVolumeClaimSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
-
mergeUnknownFields
public final V1.PersistentVolumeClaimSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
-