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| Modifier and Type | Method and Description |
|---|---|
V1.PersistentVolumeClaimSpec.Builder |
addAccessModes(String value)
AccessModes contains the desired access modes the volume should have.
|
V1.PersistentVolumeClaimSpec.Builder |
addAccessModesBytes(com.google.protobuf.ByteString value)
AccessModes contains the desired access modes the volume should have.
|
V1.PersistentVolumeClaimSpec.Builder |
addAllAccessModes(Iterable<String> values)
AccessModes contains the desired access modes the volume should have.
|
V1.PersistentVolumeClaimSpec.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.PersistentVolumeClaimSpec |
build() |
V1.PersistentVolumeClaimSpec |
buildPartial() |
V1.PersistentVolumeClaimSpec.Builder |
clear() |
V1.PersistentVolumeClaimSpec.Builder |
clearAccessModes()
AccessModes contains the desired access modes the volume should have.
|
V1.PersistentVolumeClaimSpec.Builder |
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.
|
V1.PersistentVolumeClaimSpec.Builder |
clearDataSourceRef()
Specifies the object from which to populate the volume with data, if a non-empty
volume is desired.
|
V1.PersistentVolumeClaimSpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1.PersistentVolumeClaimSpec.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1.PersistentVolumeClaimSpec.Builder |
clearResources()
Resources represents the minimum resources the volume should have.
|
V1.PersistentVolumeClaimSpec.Builder |
clearSelector()
A label query over volumes to consider for binding.
|
V1.PersistentVolumeClaimSpec.Builder |
clearStorageClassName()
Name of the StorageClass required by the claim.
|
V1.PersistentVolumeClaimSpec.Builder |
clearVolumeMode()
volumeMode defines what type of volume is required by the claim.
|
V1.PersistentVolumeClaimSpec.Builder |
clearVolumeName()
VolumeName is the binding reference to the PersistentVolume backing this claim.
|
V1.PersistentVolumeClaimSpec.Builder |
clone() |
String |
getAccessModes(int index)
AccessModes contains the desired access modes the volume should have.
|
com.google.protobuf.ByteString |
getAccessModesBytes(int index)
AccessModes contains the desired access modes the volume should have.
|
int |
getAccessModesCount()
AccessModes contains the desired access modes the volume should have.
|
com.google.protobuf.ProtocolStringList |
getAccessModesList()
AccessModes contains the desired access modes the volume should have.
|
V1.TypedLocalObjectReference |
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.
|
V1.TypedLocalObjectReference.Builder |
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.
|
V1.TypedLocalObjectReferenceOrBuilder |
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.
|
V1.TypedLocalObjectReference |
getDataSourceRef()
Specifies the object from which to populate the volume with data, if a non-empty
volume is desired.
|
V1.TypedLocalObjectReference.Builder |
getDataSourceRefBuilder()
Specifies the object from which to populate the volume with data, if a non-empty
volume is desired.
|
V1.TypedLocalObjectReferenceOrBuilder |
getDataSourceRefOrBuilder()
Specifies the object from which to populate the volume with data, if a non-empty
volume is desired.
|
V1.PersistentVolumeClaimSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
V1.ResourceRequirements |
getResources()
Resources represents the minimum resources the volume should have.
|
V1.ResourceRequirements.Builder |
getResourcesBuilder()
Resources represents the minimum resources the volume should have.
|
V1.ResourceRequirementsOrBuilder |
getResourcesOrBuilder()
Resources represents the minimum resources the volume should have.
|
Meta.LabelSelector |
getSelector()
A label query over volumes to consider for binding.
|
Meta.LabelSelector.Builder |
getSelectorBuilder()
A label query over volumes to consider for binding.
|
Meta.LabelSelectorOrBuilder |
getSelectorOrBuilder()
A label query over volumes to consider for binding.
|
String |
getStorageClassName()
Name of the StorageClass required by the claim.
|
com.google.protobuf.ByteString |
getStorageClassNameBytes()
Name of the StorageClass required by the claim.
|
String |
getVolumeMode()
volumeMode defines what type of volume is required by the claim.
|
com.google.protobuf.ByteString |
getVolumeModeBytes()
volumeMode defines what type of volume is required by the claim.
|
String |
getVolumeName()
VolumeName is the binding reference to the PersistentVolume backing this claim.
|
com.google.protobuf.ByteString |
getVolumeNameBytes()
VolumeName is the binding reference to the PersistentVolume backing this claim.
|
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.
|
boolean |
hasDataSourceRef()
Specifies the object from which to populate the volume with data, if a non-empty
volume is desired.
|
boolean |
hasResources()
Resources represents the minimum resources the volume should have.
|
boolean |
hasSelector()
A label query over volumes to consider for binding.
|
boolean |
hasStorageClassName()
Name of the StorageClass required by the claim.
|
boolean |
hasVolumeMode()
volumeMode defines what type of volume is required by the claim.
|
boolean |
hasVolumeName()
VolumeName is the binding reference to the PersistentVolume backing this claim.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1.PersistentVolumeClaimSpec.Builder |
mergeDataSource(V1.TypedLocalObjectReference value)
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.
|
V1.PersistentVolumeClaimSpec.Builder |
mergeDataSourceRef(V1.TypedLocalObjectReference value)
Specifies the object from which to populate the volume with data, if a non-empty
volume is desired.
|
V1.PersistentVolumeClaimSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1.PersistentVolumeClaimSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1.PersistentVolumeClaimSpec.Builder |
mergeFrom(V1.PersistentVolumeClaimSpec other) |
V1.PersistentVolumeClaimSpec.Builder |
mergeResources(V1.ResourceRequirements value)
Resources represents the minimum resources the volume should have.
|
V1.PersistentVolumeClaimSpec.Builder |
mergeSelector(Meta.LabelSelector value)
A label query over volumes to consider for binding.
|
V1.PersistentVolumeClaimSpec.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.PersistentVolumeClaimSpec.Builder |
setAccessModes(int index,
String value)
AccessModes contains the desired access modes the volume should have.
|
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.
|
V1.PersistentVolumeClaimSpec.Builder |
setDataSource(V1.TypedLocalObjectReference value)
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.
|
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.
|
V1.PersistentVolumeClaimSpec.Builder |
setDataSourceRef(V1.TypedLocalObjectReference value)
Specifies the object from which to populate the volume with data, if a non-empty
volume is desired.
|
V1.PersistentVolumeClaimSpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.PersistentVolumeClaimSpec.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1.PersistentVolumeClaimSpec.Builder |
setResources(V1.ResourceRequirements.Builder builderForValue)
Resources represents the minimum resources the volume should have.
|
V1.PersistentVolumeClaimSpec.Builder |
setResources(V1.ResourceRequirements value)
Resources represents the minimum resources the volume should have.
|
V1.PersistentVolumeClaimSpec.Builder |
setSelector(Meta.LabelSelector.Builder builderForValue)
A label query over volumes to consider for binding.
|
V1.PersistentVolumeClaimSpec.Builder |
setSelector(Meta.LabelSelector value)
A label query over volumes to consider for binding.
|
V1.PersistentVolumeClaimSpec.Builder |
setStorageClassName(String value)
Name of the StorageClass required by the claim.
|
V1.PersistentVolumeClaimSpec.Builder |
setStorageClassNameBytes(com.google.protobuf.ByteString value)
Name of the StorageClass required by the claim.
|
V1.PersistentVolumeClaimSpec.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.PersistentVolumeClaimSpec.Builder |
setVolumeMode(String value)
volumeMode defines what type of volume is required by the claim.
|
V1.PersistentVolumeClaimSpec.Builder |
setVolumeModeBytes(com.google.protobuf.ByteString value)
volumeMode defines what type of volume is required by the claim.
|
V1.PersistentVolumeClaimSpec.Builder |
setVolumeName(String value)
VolumeName is the binding reference to the PersistentVolume backing this claim.
|
V1.PersistentVolumeClaimSpec.Builder |
setVolumeNameBytes(com.google.protobuf.ByteString value)
VolumeName is the binding reference to the PersistentVolume backing this claim.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>public V1.PersistentVolumeClaimSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>public V1.PersistentVolumeClaimSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1.PersistentVolumeClaimSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1.PersistentVolumeClaimSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1.PersistentVolumeClaimSpec.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>public V1.PersistentVolumeClaimSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>public V1.PersistentVolumeClaimSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>public V1.PersistentVolumeClaimSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>public V1.PersistentVolumeClaimSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>public V1.PersistentVolumeClaimSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>public V1.PersistentVolumeClaimSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.PersistentVolumeClaimSpec.Builder>public V1.PersistentVolumeClaimSpec.Builder mergeFrom(V1.PersistentVolumeClaimSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>public V1.PersistentVolumeClaimSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.PersistentVolumeClaimSpec.Builder>IOExceptionpublic 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;getAccessModesList in interface V1.PersistentVolumeClaimSpecOrBuilderpublic 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;getAccessModesCount in interface V1.PersistentVolumeClaimSpecOrBuilderpublic String getAccessModes(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;getAccessModes in interface V1.PersistentVolumeClaimSpecOrBuilderpublic 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;getAccessModesBytes in interface V1.PersistentVolumeClaimSpecOrBuilderpublic V1.PersistentVolumeClaimSpec.Builder setAccessModes(int index, String 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;public V1.PersistentVolumeClaimSpec.Builder addAccessModes(String 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;public V1.PersistentVolumeClaimSpec.Builder addAllAccessModes(Iterable<String> values)
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;public V1.PersistentVolumeClaimSpec.Builder 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;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;public boolean hasSelector()
A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;hasSelector in interface V1.PersistentVolumeClaimSpecOrBuilderpublic Meta.LabelSelector getSelector()
A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;getSelector in interface V1.PersistentVolumeClaimSpecOrBuilderpublic V1.PersistentVolumeClaimSpec.Builder setSelector(Meta.LabelSelector value)
A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;public V1.PersistentVolumeClaimSpec.Builder setSelector(Meta.LabelSelector.Builder builderForValue)
A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;public V1.PersistentVolumeClaimSpec.Builder mergeSelector(Meta.LabelSelector value)
A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;public V1.PersistentVolumeClaimSpec.Builder clearSelector()
A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;public Meta.LabelSelector.Builder getSelectorBuilder()
A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;public Meta.LabelSelectorOrBuilder getSelectorOrBuilder()
A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;getSelectorOrBuilder in interface V1.PersistentVolumeClaimSpecOrBuilderpublic 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;hasResources in interface V1.PersistentVolumeClaimSpecOrBuilderpublic V1.ResourceRequirements 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;getResources in interface V1.PersistentVolumeClaimSpecOrBuilderpublic V1.PersistentVolumeClaimSpec.Builder setResources(V1.ResourceRequirements value)
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;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;public V1.PersistentVolumeClaimSpec.Builder mergeResources(V1.ResourceRequirements value)
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;public V1.PersistentVolumeClaimSpec.Builder 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;public V1.ResourceRequirements.Builder 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;public V1.ResourceRequirementsOrBuilder 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;getResourcesOrBuilder in interface V1.PersistentVolumeClaimSpecOrBuilderpublic boolean hasVolumeName()
VolumeName is the binding reference to the PersistentVolume backing this claim. +optional
optional string volumeName = 3;hasVolumeName in interface V1.PersistentVolumeClaimSpecOrBuilderpublic String getVolumeName()
VolumeName is the binding reference to the PersistentVolume backing this claim. +optional
optional string volumeName = 3;getVolumeName in interface V1.PersistentVolumeClaimSpecOrBuilderpublic com.google.protobuf.ByteString getVolumeNameBytes()
VolumeName is the binding reference to the PersistentVolume backing this claim. +optional
optional string volumeName = 3;getVolumeNameBytes in interface V1.PersistentVolumeClaimSpecOrBuilderpublic V1.PersistentVolumeClaimSpec.Builder setVolumeName(String value)
VolumeName is the binding reference to the PersistentVolume backing this claim. +optional
optional string volumeName = 3;public V1.PersistentVolumeClaimSpec.Builder clearVolumeName()
VolumeName is the binding reference to the PersistentVolume backing this claim. +optional
optional string volumeName = 3;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;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;hasStorageClassName in interface V1.PersistentVolumeClaimSpecOrBuilderpublic String 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;getStorageClassName in interface V1.PersistentVolumeClaimSpecOrBuilderpublic 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;getStorageClassNameBytes in interface V1.PersistentVolumeClaimSpecOrBuilderpublic V1.PersistentVolumeClaimSpec.Builder setStorageClassName(String 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;public V1.PersistentVolumeClaimSpec.Builder 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;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;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;hasVolumeMode in interface V1.PersistentVolumeClaimSpecOrBuilderpublic String 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;getVolumeMode in interface V1.PersistentVolumeClaimSpecOrBuilderpublic 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;getVolumeModeBytes in interface V1.PersistentVolumeClaimSpecOrBuilderpublic V1.PersistentVolumeClaimSpec.Builder setVolumeMode(String 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;public V1.PersistentVolumeClaimSpec.Builder 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;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;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;hasDataSource in interface V1.PersistentVolumeClaimSpecOrBuilderpublic V1.TypedLocalObjectReference 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;getDataSource in interface V1.PersistentVolumeClaimSpecOrBuilderpublic V1.PersistentVolumeClaimSpec.Builder setDataSource(V1.TypedLocalObjectReference value)
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;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;public V1.PersistentVolumeClaimSpec.Builder mergeDataSource(V1.TypedLocalObjectReference value)
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;public V1.PersistentVolumeClaimSpec.Builder 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;public V1.TypedLocalObjectReference.Builder 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;public V1.TypedLocalObjectReferenceOrBuilder 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;getDataSourceOrBuilder in interface V1.PersistentVolumeClaimSpecOrBuilderpublic 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;hasDataSourceRef in interface V1.PersistentVolumeClaimSpecOrBuilderpublic V1.TypedLocalObjectReference 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;getDataSourceRef in interface V1.PersistentVolumeClaimSpecOrBuilderpublic V1.PersistentVolumeClaimSpec.Builder setDataSourceRef(V1.TypedLocalObjectReference value)
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;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;public V1.PersistentVolumeClaimSpec.Builder mergeDataSourceRef(V1.TypedLocalObjectReference value)
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;public V1.PersistentVolumeClaimSpec.Builder 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;public V1.TypedLocalObjectReference.Builder 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;public V1.TypedLocalObjectReferenceOrBuilder 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;getDataSourceRefOrBuilder in interface V1.PersistentVolumeClaimSpecOrBuilderpublic final V1.PersistentVolumeClaimSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>public final V1.PersistentVolumeClaimSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>Copyright © 2023. All rights reserved.