Class V1.PersistentVolumeClaimSpec

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.PersistentVolumeClaimSpecOrBuilder, Serializable
Enclosing class:
V1

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 attributes
 
Protobuf type k8s.io.api.core.v1.PersistentVolumeClaimSpec
See Also:
  • Field Details

  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • 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 interface V1.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 interface V1.PersistentVolumeClaimSpecOrBuilder
    • getAccessModes

      public 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;
      Specified by:
      getAccessModes in interface V1.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 interface V1.PersistentVolumeClaimSpecOrBuilder
    • 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 interface V1.PersistentVolumeClaimSpecOrBuilder
    • getSelector

      public Meta.LabelSelector 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 interface V1.PersistentVolumeClaimSpecOrBuilder
    • getSelectorOrBuilder

      public Meta.LabelSelectorOrBuilder getSelectorOrBuilder()
       A label query over volumes to consider for binding.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;
      Specified by:
      getSelectorOrBuilder in interface V1.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 interface V1.PersistentVolumeClaimSpecOrBuilder
    • getResources

      public 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;
      Specified by:
      getResources in interface V1.PersistentVolumeClaimSpecOrBuilder
    • getResourcesOrBuilder

      public V1.ResourceRequirementsOrBuilder getResourcesOrBuilder()
       Resources represents the minimum resources the volume should have.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
       +optional
       
      optional .k8s.io.api.core.v1.ResourceRequirements resources = 2;
      Specified by:
      getResourcesOrBuilder in interface V1.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 interface V1.PersistentVolumeClaimSpecOrBuilder
    • getVolumeName

      public String getVolumeName()
       VolumeName is the binding reference to the PersistentVolume backing this claim.
       +optional
       
      optional string volumeName = 3;
      Specified by:
      getVolumeName in interface V1.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 interface V1.PersistentVolumeClaimSpecOrBuilder
    • 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 interface V1.PersistentVolumeClaimSpecOrBuilder
    • getStorageClassName

      public 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;
      Specified by:
      getStorageClassName in interface V1.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 interface V1.PersistentVolumeClaimSpecOrBuilder
    • 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 interface V1.PersistentVolumeClaimSpecOrBuilder
    • getVolumeMode

      public String getVolumeMode()
       volumeMode defines what type of volume is required by the claim.
       Value of Filesystem is implied when not included in claim spec.
       +optional
       
      optional string volumeMode = 6;
      Specified by:
      getVolumeMode in interface V1.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 interface V1.PersistentVolumeClaimSpecOrBuilder
    • 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 interface V1.PersistentVolumeClaimSpecOrBuilder
    • getDataSource

      public V1.TypedLocalObjectReference getDataSource()
       This field can be used to specify either:
       * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
       * An existing PVC (PersistentVolumeClaim)
       If the provisioner or an external controller can support the specified data source,
       it will create a new volume based on the contents of the specified data source.
       If the AnyVolumeDataSource feature gate is enabled, this field will always have
       the same contents as the DataSourceRef field.
       +optional
       
      optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7;
      Specified by:
      getDataSource in interface V1.PersistentVolumeClaimSpecOrBuilder
    • getDataSourceOrBuilder

      public V1.TypedLocalObjectReferenceOrBuilder getDataSourceOrBuilder()
       This field can be used to specify either:
       * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
       * An existing PVC (PersistentVolumeClaim)
       If the provisioner or an external controller can support the specified data source,
       it will create a new volume based on the contents of the specified data source.
       If the AnyVolumeDataSource feature gate is enabled, this field will always have
       the same contents as the DataSourceRef field.
       +optional
       
      optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7;
      Specified by:
      getDataSourceOrBuilder in interface V1.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 interface V1.PersistentVolumeClaimSpecOrBuilder
    • getDataSourceRef

      public V1.TypedLocalObjectReference getDataSourceRef()
       Specifies the object from which to populate the volume with data, if a non-empty
       volume is desired. This may be any local object from a non-empty API group (non
       core object) or a PersistentVolumeClaim object.
       When this field is specified, volume binding will only succeed if the type of
       the specified object matches some installed volume populator or dynamic
       provisioner.
       This field will replace the functionality of the DataSource field and as such
       if both fields are non-empty, they must have the same value. For backwards
       compatibility, both fields (DataSource and DataSourceRef) will be set to the same
       value automatically if one of them is empty and the other is non-empty.
       There are two important differences between DataSource and DataSourceRef:
       * While DataSource only allows two specific types of objects, DataSourceRef
         allows any non-core object, as well as PersistentVolumeClaim objects.
       * While DataSource ignores disallowed values (dropping them), DataSourceRef
         preserves all values, and generates an error if a disallowed value is
         specified.
       (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
       +optional
       
      optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8;
      Specified by:
      getDataSourceRef in interface V1.PersistentVolumeClaimSpecOrBuilder
    • getDataSourceRefOrBuilder

      public V1.TypedLocalObjectReferenceOrBuilder getDataSourceRefOrBuilder()
       Specifies the object from which to populate the volume with data, if a non-empty
       volume is desired. This may be any local object from a non-empty API group (non
       core object) or a PersistentVolumeClaim object.
       When this field is specified, volume binding will only succeed if the type of
       the specified object matches some installed volume populator or dynamic
       provisioner.
       This field will replace the functionality of the DataSource field and as such
       if both fields are non-empty, they must have the same value. For backwards
       compatibility, both fields (DataSource and DataSourceRef) will be set to the same
       value automatically if one of them is empty and the other is non-empty.
       There are two important differences between DataSource and DataSourceRef:
       * While DataSource only allows two specific types of objects, DataSourceRef
         allows any non-core object, as well as PersistentVolumeClaim objects.
       * While DataSource ignores disallowed values (dropping them), DataSourceRef
         preserves all values, and generates an error if a disallowed value is
         specified.
       (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
       +optional
       
      optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8;
      Specified by:
      getDataSourceRefOrBuilder in interface V1.PersistentVolumeClaimSpecOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static V1.PersistentVolumeClaimSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.PersistentVolumeClaimSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.PersistentVolumeClaimSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.PersistentVolumeClaimSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.PersistentVolumeClaimSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.PersistentVolumeClaimSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.PersistentVolumeClaimSpec parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.PersistentVolumeClaimSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1.PersistentVolumeClaimSpec parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1.PersistentVolumeClaimSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.PersistentVolumeClaimSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.PersistentVolumeClaimSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public V1.PersistentVolumeClaimSpec.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static V1.PersistentVolumeClaimSpec.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected V1.PersistentVolumeClaimSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1.PersistentVolumeClaimSpec getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1.PersistentVolumeClaimSpec> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1.PersistentVolumeClaimSpec> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public V1.PersistentVolumeClaimSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder