Package io.kubernetes.client.proto
Class V1.PersistentVolumeSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
io.kubernetes.client.proto.V1.PersistentVolumeSpec.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1.PersistentVolumeSpecOrBuilder
,Cloneable
- Enclosing class:
- V1.PersistentVolumeSpec
public static final class V1.PersistentVolumeSpec.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
implements V1.PersistentVolumeSpecOrBuilder
PersistentVolumeSpec is the specification of a persistent volume.Protobuf type
k8s.io.api.core.v1.PersistentVolumeSpec
-
Method Summary
Modifier and TypeMethodDescriptionaddAccessModes
(String value) AccessModes contains all ways the volume can be mounted.addAccessModesBytes
(com.google.protobuf.ByteString value) AccessModes contains all ways the volume can be mounted.addAllAccessModes
(Iterable<String> values) AccessModes contains all ways the volume can be mounted.addAllMountOptions
(Iterable<String> values) A list of mount options, e.g.addMountOptions
(String value) A list of mount options, e.g.addMountOptionsBytes
(com.google.protobuf.ByteString value) A list of mount options, e.g.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
AccessModes contains all ways the volume can be mounted.ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) A list of mount options, e.g.NodeAffinity defines constraints that limit what nodes this volume can be accessed from.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) What happens to a persistent volume when released from its claim.The actual volume backing the persistent volume.Name of StorageClass to which this persistent volume belongs.volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.clone()
boolean
containsCapacity
(String key) A description of the persistent volume's resources and capacity.getAccessModes
(int index) AccessModes contains all ways the volume can be mounted.com.google.protobuf.ByteString
getAccessModesBytes
(int index) AccessModes contains all ways the volume can be mounted.int
AccessModes contains all ways the volume can be mounted.com.google.protobuf.ProtocolStringList
AccessModes contains all ways the volume can be mounted.Deprecated.int
A description of the persistent volume's resources and capacity.A description of the persistent volume's resources and capacity.getCapacityOrDefault
(String key, Resource.Quantity defaultValue) A description of the persistent volume's resources and capacity.getCapacityOrThrow
(String key) A description of the persistent volume's resources and capacity.ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getMountOptions
(int index) A list of mount options, e.g.com.google.protobuf.ByteString
getMountOptionsBytes
(int index) A list of mount options, e.g.int
A list of mount options, e.g.com.google.protobuf.ProtocolStringList
A list of mount options, e.g.Deprecated.NodeAffinity defines constraints that limit what nodes this volume can be accessed from.NodeAffinity defines constraints that limit what nodes this volume can be accessed from.NodeAffinity defines constraints that limit what nodes this volume can be accessed from.What happens to a persistent volume when released from its claim.com.google.protobuf.ByteString
What happens to a persistent volume when released from its claim.The actual volume backing the persistent volume.The actual volume backing the persistent volume.The actual volume backing the persistent volume.Name of StorageClass to which this persistent volume belongs.com.google.protobuf.ByteString
Name of StorageClass to which this persistent volume belongs.volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.com.google.protobuf.ByteString
volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.boolean
ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.boolean
NodeAffinity defines constraints that limit what nodes this volume can be accessed from.boolean
What happens to a persistent volume when released from its claim.boolean
The actual volume backing the persistent volume.boolean
Name of StorageClass to which this persistent volume belongs.boolean
volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) protected com.google.protobuf.MapField
internalGetMutableMapField
(int number) final boolean
mergeClaimRef
(V1.ObjectReference value) ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(V1.PersistentVolumeSpec other) NodeAffinity defines constraints that limit what nodes this volume can be accessed from.The actual volume backing the persistent volume.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) putAllCapacity
(Map<String, Resource.Quantity> values) A description of the persistent volume's resources and capacity.putCapacity
(String key, Resource.Quantity value) A description of the persistent volume's resources and capacity.removeCapacity
(String key) A description of the persistent volume's resources and capacity.setAccessModes
(int index, String value) AccessModes contains all ways the volume can be mounted.setClaimRef
(V1.ObjectReference value) ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.setClaimRef
(V1.ObjectReference.Builder builderForValue) ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.setMountOptions
(int index, String value) A list of mount options, e.g.NodeAffinity defines constraints that limit what nodes this volume can be accessed from.setNodeAffinity
(V1.VolumeNodeAffinity.Builder builderForValue) NodeAffinity defines constraints that limit what nodes this volume can be accessed from.What happens to a persistent volume when released from its claim.setPersistentVolumeReclaimPolicyBytes
(com.google.protobuf.ByteString value) What happens to a persistent volume when released from its claim.The actual volume backing the persistent volume.setPersistentVolumeSource
(V1.PersistentVolumeSource.Builder builderForValue) The actual volume backing the persistent volume.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStorageClassName
(String value) Name of StorageClass to which this persistent volume belongs.setStorageClassNameBytes
(com.google.protobuf.ByteString value) Name of StorageClass to which this persistent volume belongs.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setVolumeMode
(String value) volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.setVolumeModeBytes
(com.google.protobuf.ByteString value) volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.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.PersistentVolumeSpec.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.PersistentVolumeSpec.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.PersistentVolumeSpec.Builder>
-
setField
public V1.PersistentVolumeSpec.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.PersistentVolumeSpec.Builder>
-
clearField
public V1.PersistentVolumeSpec.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.PersistentVolumeSpec.Builder>
-
clearOneof
public V1.PersistentVolumeSpec.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.PersistentVolumeSpec.Builder>
-
setRepeatedField
public V1.PersistentVolumeSpec.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.PersistentVolumeSpec.Builder>
-
addRepeatedField
public V1.PersistentVolumeSpec.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.PersistentVolumeSpec.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1.PersistentVolumeSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeSpec.Builder>
-
mergeFrom
public V1.PersistentVolumeSpec.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.PersistentVolumeSpec.Builder>
- Throws:
IOException
-
getCapacityCount
public int getCapacityCount()Description copied from interface:V1.PersistentVolumeSpecOrBuilder
A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
- Specified by:
getCapacityCount
in interfaceV1.PersistentVolumeSpecOrBuilder
-
containsCapacity
A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
- Specified by:
containsCapacity
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getCapacity
Deprecated.UsegetCapacityMap()
instead.- Specified by:
getCapacity
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getCapacityMap
A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
- Specified by:
getCapacityMap
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getCapacityOrDefault
A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
- Specified by:
getCapacityOrDefault
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getCapacityOrThrow
A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
- Specified by:
getCapacityOrThrow
in interfaceV1.PersistentVolumeSpecOrBuilder
-
clearCapacity
-
removeCapacity
A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
-
getMutableCapacity
Deprecated.Use alternate mutation accessors instead. -
putCapacity
A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
-
putAllCapacity
A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity +optional
map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
-
hasPersistentVolumeSource
public boolean hasPersistentVolumeSource()The actual volume backing the persistent volume.
optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
- Specified by:
hasPersistentVolumeSource
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getPersistentVolumeSource
The actual volume backing the persistent volume.
optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
- Specified by:
getPersistentVolumeSource
in interfaceV1.PersistentVolumeSpecOrBuilder
-
setPersistentVolumeSource
The actual volume backing the persistent volume.
optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
-
setPersistentVolumeSource
public V1.PersistentVolumeSpec.Builder setPersistentVolumeSource(V1.PersistentVolumeSource.Builder builderForValue) The actual volume backing the persistent volume.
optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
-
mergePersistentVolumeSource
The actual volume backing the persistent volume.
optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
-
clearPersistentVolumeSource
The actual volume backing the persistent volume.
optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
-
getPersistentVolumeSourceBuilder
The actual volume backing the persistent volume.
optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
-
getPersistentVolumeSourceOrBuilder
The actual volume backing the persistent volume.
optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
- Specified by:
getPersistentVolumeSourceOrBuilder
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getAccessModesList
public com.google.protobuf.ProtocolStringList getAccessModesList()AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes +optional
repeated string accessModes = 3;
- Specified by:
getAccessModesList
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getAccessModesCount
public int getAccessModesCount()AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes +optional
repeated string accessModes = 3;
- Specified by:
getAccessModesCount
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getAccessModes
AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes +optional
repeated string accessModes = 3;
- Specified by:
getAccessModes
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getAccessModesBytes
public com.google.protobuf.ByteString getAccessModesBytes(int index) AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes +optional
repeated string accessModes = 3;
- Specified by:
getAccessModesBytes
in interfaceV1.PersistentVolumeSpecOrBuilder
-
setAccessModes
AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes +optional
repeated string accessModes = 3;
-
addAccessModes
AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes +optional
repeated string accessModes = 3;
-
addAllAccessModes
AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes +optional
repeated string accessModes = 3;
-
clearAccessModes
AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes +optional
repeated string accessModes = 3;
-
addAccessModesBytes
AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes +optional
repeated string accessModes = 3;
-
hasClaimRef
public boolean hasClaimRef()ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding +optional
optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
- Specified by:
hasClaimRef
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getClaimRef
ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding +optional
optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
- Specified by:
getClaimRef
in interfaceV1.PersistentVolumeSpecOrBuilder
-
setClaimRef
ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding +optional
optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
-
setClaimRef
ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding +optional
optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
-
mergeClaimRef
ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding +optional
optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
-
clearClaimRef
ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding +optional
optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
-
getClaimRefBuilder
ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding +optional
optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
-
getClaimRefOrBuilder
ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding +optional
optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
- Specified by:
getClaimRefOrBuilder
in interfaceV1.PersistentVolumeSpecOrBuilder
-
hasPersistentVolumeReclaimPolicy
public boolean hasPersistentVolumeReclaimPolicy()What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming +optional
optional string persistentVolumeReclaimPolicy = 5;
- Specified by:
hasPersistentVolumeReclaimPolicy
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getPersistentVolumeReclaimPolicy
What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming +optional
optional string persistentVolumeReclaimPolicy = 5;
- Specified by:
getPersistentVolumeReclaimPolicy
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getPersistentVolumeReclaimPolicyBytes
public com.google.protobuf.ByteString getPersistentVolumeReclaimPolicyBytes()What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming +optional
optional string persistentVolumeReclaimPolicy = 5;
- Specified by:
getPersistentVolumeReclaimPolicyBytes
in interfaceV1.PersistentVolumeSpecOrBuilder
-
setPersistentVolumeReclaimPolicy
What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming +optional
optional string persistentVolumeReclaimPolicy = 5;
-
clearPersistentVolumeReclaimPolicy
What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming +optional
optional string persistentVolumeReclaimPolicy = 5;
-
setPersistentVolumeReclaimPolicyBytes
public V1.PersistentVolumeSpec.Builder setPersistentVolumeReclaimPolicyBytes(com.google.protobuf.ByteString value) What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming +optional
optional string persistentVolumeReclaimPolicy = 5;
-
hasStorageClassName
public boolean hasStorageClassName()Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. +optional
optional string storageClassName = 6;
- Specified by:
hasStorageClassName
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getStorageClassName
Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. +optional
optional string storageClassName = 6;
- Specified by:
getStorageClassName
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getStorageClassNameBytes
public com.google.protobuf.ByteString getStorageClassNameBytes()Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. +optional
optional string storageClassName = 6;
- Specified by:
getStorageClassNameBytes
in interfaceV1.PersistentVolumeSpecOrBuilder
-
setStorageClassName
Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. +optional
optional string storageClassName = 6;
-
clearStorageClassName
Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. +optional
optional string storageClassName = 6;
-
setStorageClassNameBytes
public V1.PersistentVolumeSpec.Builder setStorageClassNameBytes(com.google.protobuf.ByteString value) Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. +optional
optional string storageClassName = 6;
-
getMountOptionsList
public com.google.protobuf.ProtocolStringList getMountOptionsList()A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options +optional
repeated string mountOptions = 7;
- Specified by:
getMountOptionsList
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getMountOptionsCount
public int getMountOptionsCount()A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options +optional
repeated string mountOptions = 7;
- Specified by:
getMountOptionsCount
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getMountOptions
A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options +optional
repeated string mountOptions = 7;
- Specified by:
getMountOptions
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getMountOptionsBytes
public com.google.protobuf.ByteString getMountOptionsBytes(int index) A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options +optional
repeated string mountOptions = 7;
- Specified by:
getMountOptionsBytes
in interfaceV1.PersistentVolumeSpecOrBuilder
-
setMountOptions
A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options +optional
repeated string mountOptions = 7;
-
addMountOptions
A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options +optional
repeated string mountOptions = 7;
-
addAllMountOptions
A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options +optional
repeated string mountOptions = 7;
-
clearMountOptions
A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options +optional
repeated string mountOptions = 7;
-
addMountOptionsBytes
A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options +optional
repeated string mountOptions = 7;
-
hasVolumeMode
public boolean hasVolumeMode()volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. +optional
optional string volumeMode = 8;
- Specified by:
hasVolumeMode
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getVolumeMode
volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. +optional
optional string volumeMode = 8;
- Specified by:
getVolumeMode
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getVolumeModeBytes
public com.google.protobuf.ByteString getVolumeModeBytes()volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. +optional
optional string volumeMode = 8;
- Specified by:
getVolumeModeBytes
in interfaceV1.PersistentVolumeSpecOrBuilder
-
setVolumeMode
volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. +optional
optional string volumeMode = 8;
-
clearVolumeMode
volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. +optional
optional string volumeMode = 8;
-
setVolumeModeBytes
volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. +optional
optional string volumeMode = 8;
-
hasNodeAffinity
public boolean hasNodeAffinity()NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. +optional
optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
- Specified by:
hasNodeAffinity
in interfaceV1.PersistentVolumeSpecOrBuilder
-
getNodeAffinity
NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. +optional
optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
- Specified by:
getNodeAffinity
in interfaceV1.PersistentVolumeSpecOrBuilder
-
setNodeAffinity
NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. +optional
optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
-
setNodeAffinity
public V1.PersistentVolumeSpec.Builder setNodeAffinity(V1.VolumeNodeAffinity.Builder builderForValue) NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. +optional
optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
-
mergeNodeAffinity
NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. +optional
optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
-
clearNodeAffinity
NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. +optional
optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
-
getNodeAffinityBuilder
NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. +optional
optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
-
getNodeAffinityOrBuilder
NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. +optional
optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
- Specified by:
getNodeAffinityOrBuilder
in interfaceV1.PersistentVolumeSpecOrBuilder
-
setUnknownFields
public final V1.PersistentVolumeSpec.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.PersistentVolumeSpec.Builder>
-
mergeUnknownFields
public final V1.PersistentVolumeSpec.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.PersistentVolumeSpec.Builder>
-