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.ByteString
getAccessModesBytes
(int index) AccessModes contains the desired access modes the volume should have.int
AccessModes contains the desired access modes the volume should have.com.google.protobuf.ProtocolStringList
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.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.Descriptor
com.google.protobuf.Descriptors.Descriptor
Resources 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.ByteString
Name of the StorageClass required by the claim.volumeMode defines what type of volume is required by the claim.com.google.protobuf.ByteString
volumeMode defines what type of volume is required by the claim.VolumeName is the binding reference to the PersistentVolume backing this claim.com.google.protobuf.ByteString
VolumeName is the binding reference to the PersistentVolume backing this claim.boolean
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
Specifies the object from which to populate the volume with data, if a non-empty volume is desired.boolean
Resources represents the minimum resources the volume should have.boolean
A label query over volumes to consider for binding.boolean
Name of the StorageClass required by the claim.boolean
volumeMode defines what type of volume is required by the claim.boolean
VolumeName is the binding reference to the PersistentVolume backing this claim.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
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.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, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
-
setField
public V1.PersistentVolumeClaimSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
-
clearField
public V1.PersistentVolumeClaimSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
-
clearOneof
public V1.PersistentVolumeClaimSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
-
addRepeatedField
public V1.PersistentVolumeClaimSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1.PersistentVolumeClaimSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getAccessModesList
in 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:
getAccessModesCount
in 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:
getAccessModes
in 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:
getAccessModesBytes
in 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:
hasSelector
in 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:
getSelector
in 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:
getSelectorOrBuilder
in 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:
hasResources
in 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:
getResources
in 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:
getResourcesOrBuilder
in interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
hasVolumeName
public boolean hasVolumeName()VolumeName is the binding reference to the PersistentVolume backing this claim. +optional
optional string volumeName = 3;
- Specified by:
hasVolumeName
in interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
getVolumeName
VolumeName is the binding reference to the PersistentVolume backing this claim. +optional
optional string volumeName = 3;
- Specified by:
getVolumeName
in 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:
getVolumeNameBytes
in 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:
hasStorageClassName
in 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:
getStorageClassName
in 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:
getStorageClassNameBytes
in 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:
hasVolumeMode
in 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:
getVolumeMode
in 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:
getVolumeModeBytes
in 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:
hasDataSource
in 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:
getDataSource
in 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:
getDataSourceOrBuilder
in 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:
hasDataSourceRef
in 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:
getDataSourceRef
in 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:
getDataSourceRefOrBuilder
in interfaceV1.PersistentVolumeClaimSpecOrBuilder
-
setUnknownFields
public final V1.PersistentVolumeClaimSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
-
mergeUnknownFields
public final V1.PersistentVolumeClaimSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimSpec.Builder>
-