public static final class V1.PersistentVolumeClaimSpec extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
V1.PersistentVolumeClaimSpec.Builder
PersistentVolumeClaimSpec describes the common attributes of storage devices
and allows a Source for provider-specific attributes
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ACCESSMODES_FIELD_NUMBER |
static int |
DATASOURCE_FIELD_NUMBER |
static com.google.protobuf.Parser<V1.PersistentVolumeClaimSpec> |
PARSER
Deprecated.
|
static int |
RESOURCES_FIELD_NUMBER |
static int |
SELECTOR_FIELD_NUMBER |
static int |
STORAGECLASSNAME_FIELD_NUMBER |
static int |
VOLUMEMODE_FIELD_NUMBER |
static int |
VOLUMENAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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 requires the VolumeSnapshotDataSource alpha feature gate to be
enabled and currently VolumeSnapshot is the only supported data source.
|
V1.TypedLocalObjectReferenceOrBuilder |
getDataSourceOrBuilder()
This field requires the VolumeSnapshotDataSource alpha feature gate to be
enabled and currently VolumeSnapshot is the only supported data source.
|
static V1.PersistentVolumeClaimSpec |
getDefaultInstance() |
V1.PersistentVolumeClaimSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<V1.PersistentVolumeClaimSpec> |
getParserForType() |
V1.ResourceRequirements |
getResources()
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.LabelSelectorOrBuilder |
getSelectorOrBuilder()
A label query over volumes to consider for binding.
|
int |
getSerializedSize() |
String |
getStorageClassName()
Name of the StorageClass required by the claim.
|
com.google.protobuf.ByteString |
getStorageClassNameBytes()
Name of the StorageClass required by the claim.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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 requires the VolumeSnapshotDataSource alpha feature gate to be
enabled and currently VolumeSnapshot is the only supported data source.
|
int |
hashCode() |
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() |
static V1.PersistentVolumeClaimSpec.Builder |
newBuilder() |
static V1.PersistentVolumeClaimSpec.Builder |
newBuilder(V1.PersistentVolumeClaimSpec prototype) |
V1.PersistentVolumeClaimSpec.Builder |
newBuilderForType() |
protected V1.PersistentVolumeClaimSpec.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static V1.PersistentVolumeClaimSpec |
parseDelimitedFrom(InputStream input) |
static V1.PersistentVolumeClaimSpec |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.PersistentVolumeClaimSpec |
parseFrom(byte[] data) |
static V1.PersistentVolumeClaimSpec |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.PersistentVolumeClaimSpec |
parseFrom(ByteBuffer data) |
static V1.PersistentVolumeClaimSpec |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.PersistentVolumeClaimSpec |
parseFrom(com.google.protobuf.ByteString data) |
static V1.PersistentVolumeClaimSpec |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.PersistentVolumeClaimSpec |
parseFrom(com.google.protobuf.CodedInputStream input) |
static V1.PersistentVolumeClaimSpec |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.PersistentVolumeClaimSpec |
parseFrom(InputStream input) |
static V1.PersistentVolumeClaimSpec |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<V1.PersistentVolumeClaimSpec> |
parser() |
V1.PersistentVolumeClaimSpec.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ACCESSMODES_FIELD_NUMBER
public static final int SELECTOR_FIELD_NUMBER
public static final int RESOURCES_FIELD_NUMBER
public static final int VOLUMENAME_FIELD_NUMBER
public static final int STORAGECLASSNAME_FIELD_NUMBER
public static final int VOLUMEMODE_FIELD_NUMBER
public static final int DATASOURCE_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<V1.PersistentVolumeClaimSpec> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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.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 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 boolean hasVolumeMode()
volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. +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. This is a beta feature. +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. This is a beta feature. +optional
optional string volumeMode = 6;getVolumeModeBytes in interface V1.PersistentVolumeClaimSpecOrBuilderpublic boolean hasDataSource()
This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7;hasDataSource in interface V1.PersistentVolumeClaimSpecOrBuilderpublic V1.TypedLocalObjectReference getDataSource()
This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7;getDataSource in interface V1.PersistentVolumeClaimSpecOrBuilderpublic V1.TypedLocalObjectReferenceOrBuilder getDataSourceOrBuilder()
This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7;getDataSourceOrBuilder in interface V1.PersistentVolumeClaimSpecOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static V1.PersistentVolumeClaimSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.PersistentVolumeClaimSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.PersistentVolumeClaimSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.PersistentVolumeClaimSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.PersistentVolumeClaimSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.PersistentVolumeClaimSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.PersistentVolumeClaimSpec parseFrom(InputStream input) throws IOException
IOExceptionpublic static V1.PersistentVolumeClaimSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V1.PersistentVolumeClaimSpec parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static V1.PersistentVolumeClaimSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V1.PersistentVolumeClaimSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static V1.PersistentVolumeClaimSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic V1.PersistentVolumeClaimSpec.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static V1.PersistentVolumeClaimSpec.Builder newBuilder()
public static V1.PersistentVolumeClaimSpec.Builder newBuilder(V1.PersistentVolumeClaimSpec prototype)
public V1.PersistentVolumeClaimSpec.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected V1.PersistentVolumeClaimSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static V1.PersistentVolumeClaimSpec getDefaultInstance()
public static com.google.protobuf.Parser<V1.PersistentVolumeClaimSpec> parser()
public com.google.protobuf.Parser<V1.PersistentVolumeClaimSpec> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public V1.PersistentVolumeClaimSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019. All rights reserved.