Class V1beta1Storage.StorageClass

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

public static final class V1beta1Storage.StorageClass extends com.google.protobuf.GeneratedMessageV3 implements V1beta1Storage.StorageClassOrBuilder
 StorageClass describes the parameters for a class of storage for
 which PersistentVolumes can be dynamically provisioned.
 StorageClasses are non-namespaced; the name of the storage class
 according to etcd is in ObjectMeta.Name.
 
Protobuf type k8s.io.api.storage.v1beta1.StorageClass
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()
    • internalGetMapField

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasMetadata

      public boolean hasMetadata()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      Specified by:
      hasMetadata in interface V1beta1Storage.StorageClassOrBuilder
    • getMetadata

      public Meta.ObjectMeta getMetadata()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      Specified by:
      getMetadata in interface V1beta1Storage.StorageClassOrBuilder
    • getMetadataOrBuilder

      public Meta.ObjectMetaOrBuilder getMetadataOrBuilder()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      Specified by:
      getMetadataOrBuilder in interface V1beta1Storage.StorageClassOrBuilder
    • hasProvisioner

      public boolean hasProvisioner()
       Provisioner indicates the type of the provisioner.
       
      optional string provisioner = 2;
      Specified by:
      hasProvisioner in interface V1beta1Storage.StorageClassOrBuilder
    • getProvisioner

      public String getProvisioner()
       Provisioner indicates the type of the provisioner.
       
      optional string provisioner = 2;
      Specified by:
      getProvisioner in interface V1beta1Storage.StorageClassOrBuilder
    • getProvisionerBytes

      public com.google.protobuf.ByteString getProvisionerBytes()
       Provisioner indicates the type of the provisioner.
       
      optional string provisioner = 2;
      Specified by:
      getProvisionerBytes in interface V1beta1Storage.StorageClassOrBuilder
    • getParametersCount

      public int getParametersCount()
      Description copied from interface: V1beta1Storage.StorageClassOrBuilder
       Parameters holds the parameters for the provisioner that should
       create volumes of this storage class.
       +optional
       
      map<string, string> parameters = 3;
      Specified by:
      getParametersCount in interface V1beta1Storage.StorageClassOrBuilder
    • containsParameters

      public boolean containsParameters(String key)
       Parameters holds the parameters for the provisioner that should
       create volumes of this storage class.
       +optional
       
      map<string, string> parameters = 3;
      Specified by:
      containsParameters in interface V1beta1Storage.StorageClassOrBuilder
    • getParameters

      @Deprecated public Map<String,String> getParameters()
      Deprecated.
      Use getParametersMap() instead.
      Specified by:
      getParameters in interface V1beta1Storage.StorageClassOrBuilder
    • getParametersMap

      public Map<String,String> getParametersMap()
       Parameters holds the parameters for the provisioner that should
       create volumes of this storage class.
       +optional
       
      map<string, string> parameters = 3;
      Specified by:
      getParametersMap in interface V1beta1Storage.StorageClassOrBuilder
    • getParametersOrDefault

      public String getParametersOrDefault(String key, String defaultValue)
       Parameters holds the parameters for the provisioner that should
       create volumes of this storage class.
       +optional
       
      map<string, string> parameters = 3;
      Specified by:
      getParametersOrDefault in interface V1beta1Storage.StorageClassOrBuilder
    • getParametersOrThrow

      public String getParametersOrThrow(String key)
       Parameters holds the parameters for the provisioner that should
       create volumes of this storage class.
       +optional
       
      map<string, string> parameters = 3;
      Specified by:
      getParametersOrThrow in interface V1beta1Storage.StorageClassOrBuilder
    • hasReclaimPolicy

      public boolean hasReclaimPolicy()
       Dynamically provisioned PersistentVolumes of this storage class are
       created with this reclaimPolicy. Defaults to Delete.
       +optional
       
      optional string reclaimPolicy = 4;
      Specified by:
      hasReclaimPolicy in interface V1beta1Storage.StorageClassOrBuilder
    • getReclaimPolicy

      public String getReclaimPolicy()
       Dynamically provisioned PersistentVolumes of this storage class are
       created with this reclaimPolicy. Defaults to Delete.
       +optional
       
      optional string reclaimPolicy = 4;
      Specified by:
      getReclaimPolicy in interface V1beta1Storage.StorageClassOrBuilder
    • getReclaimPolicyBytes

      public com.google.protobuf.ByteString getReclaimPolicyBytes()
       Dynamically provisioned PersistentVolumes of this storage class are
       created with this reclaimPolicy. Defaults to Delete.
       +optional
       
      optional string reclaimPolicy = 4;
      Specified by:
      getReclaimPolicyBytes in interface V1beta1Storage.StorageClassOrBuilder
    • getMountOptionsList

      public com.google.protobuf.ProtocolStringList getMountOptionsList()
       Dynamically provisioned PersistentVolumes of this storage class are
       created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
       mount of the PVs will simply fail if one is invalid.
       +optional
       
      repeated string mountOptions = 5;
      Specified by:
      getMountOptionsList in interface V1beta1Storage.StorageClassOrBuilder
    • getMountOptionsCount

      public int getMountOptionsCount()
       Dynamically provisioned PersistentVolumes of this storage class are
       created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
       mount of the PVs will simply fail if one is invalid.
       +optional
       
      repeated string mountOptions = 5;
      Specified by:
      getMountOptionsCount in interface V1beta1Storage.StorageClassOrBuilder
    • getMountOptions

      public String getMountOptions(int index)
       Dynamically provisioned PersistentVolumes of this storage class are
       created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
       mount of the PVs will simply fail if one is invalid.
       +optional
       
      repeated string mountOptions = 5;
      Specified by:
      getMountOptions in interface V1beta1Storage.StorageClassOrBuilder
    • getMountOptionsBytes

      public com.google.protobuf.ByteString getMountOptionsBytes(int index)
       Dynamically provisioned PersistentVolumes of this storage class are
       created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
       mount of the PVs will simply fail if one is invalid.
       +optional
       
      repeated string mountOptions = 5;
      Specified by:
      getMountOptionsBytes in interface V1beta1Storage.StorageClassOrBuilder
    • hasAllowVolumeExpansion

      public boolean hasAllowVolumeExpansion()
       AllowVolumeExpansion shows whether the storage class allow volume expand
       +optional
       
      optional bool allowVolumeExpansion = 6;
      Specified by:
      hasAllowVolumeExpansion in interface V1beta1Storage.StorageClassOrBuilder
    • getAllowVolumeExpansion

      public boolean getAllowVolumeExpansion()
       AllowVolumeExpansion shows whether the storage class allow volume expand
       +optional
       
      optional bool allowVolumeExpansion = 6;
      Specified by:
      getAllowVolumeExpansion in interface V1beta1Storage.StorageClassOrBuilder
    • hasVolumeBindingMode

      public boolean hasVolumeBindingMode()
       VolumeBindingMode indicates how PersistentVolumeClaims should be
       provisioned and bound.  When unset, VolumeBindingImmediate is used.
       This field is only honored by servers that enable the VolumeScheduling feature.
       +optional
       
      optional string volumeBindingMode = 7;
      Specified by:
      hasVolumeBindingMode in interface V1beta1Storage.StorageClassOrBuilder
    • getVolumeBindingMode

      public String getVolumeBindingMode()
       VolumeBindingMode indicates how PersistentVolumeClaims should be
       provisioned and bound.  When unset, VolumeBindingImmediate is used.
       This field is only honored by servers that enable the VolumeScheduling feature.
       +optional
       
      optional string volumeBindingMode = 7;
      Specified by:
      getVolumeBindingMode in interface V1beta1Storage.StorageClassOrBuilder
    • getVolumeBindingModeBytes

      public com.google.protobuf.ByteString getVolumeBindingModeBytes()
       VolumeBindingMode indicates how PersistentVolumeClaims should be
       provisioned and bound.  When unset, VolumeBindingImmediate is used.
       This field is only honored by servers that enable the VolumeScheduling feature.
       +optional
       
      optional string volumeBindingMode = 7;
      Specified by:
      getVolumeBindingModeBytes in interface V1beta1Storage.StorageClassOrBuilder
    • getAllowedTopologiesList

      public List<V1.TopologySelectorTerm> getAllowedTopologiesList()
       Restrict the node topologies where volumes can be dynamically provisioned.
       Each volume plugin defines its own supported topology specifications.
       An empty TopologySelectorTerm list means there is no topology restriction.
       This field is only honored by servers that enable the VolumeScheduling feature.
       +optional
       +listType=atomic
       
      repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;
      Specified by:
      getAllowedTopologiesList in interface V1beta1Storage.StorageClassOrBuilder
    • getAllowedTopologiesOrBuilderList

      public List<? extends V1.TopologySelectorTermOrBuilder> getAllowedTopologiesOrBuilderList()
       Restrict the node topologies where volumes can be dynamically provisioned.
       Each volume plugin defines its own supported topology specifications.
       An empty TopologySelectorTerm list means there is no topology restriction.
       This field is only honored by servers that enable the VolumeScheduling feature.
       +optional
       +listType=atomic
       
      repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;
      Specified by:
      getAllowedTopologiesOrBuilderList in interface V1beta1Storage.StorageClassOrBuilder
    • getAllowedTopologiesCount

      public int getAllowedTopologiesCount()
       Restrict the node topologies where volumes can be dynamically provisioned.
       Each volume plugin defines its own supported topology specifications.
       An empty TopologySelectorTerm list means there is no topology restriction.
       This field is only honored by servers that enable the VolumeScheduling feature.
       +optional
       +listType=atomic
       
      repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;
      Specified by:
      getAllowedTopologiesCount in interface V1beta1Storage.StorageClassOrBuilder
    • getAllowedTopologies

      public V1.TopologySelectorTerm getAllowedTopologies(int index)
       Restrict the node topologies where volumes can be dynamically provisioned.
       Each volume plugin defines its own supported topology specifications.
       An empty TopologySelectorTerm list means there is no topology restriction.
       This field is only honored by servers that enable the VolumeScheduling feature.
       +optional
       +listType=atomic
       
      repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;
      Specified by:
      getAllowedTopologies in interface V1beta1Storage.StorageClassOrBuilder
    • getAllowedTopologiesOrBuilder

      public V1.TopologySelectorTermOrBuilder getAllowedTopologiesOrBuilder(int index)
       Restrict the node topologies where volumes can be dynamically provisioned.
       Each volume plugin defines its own supported topology specifications.
       An empty TopologySelectorTerm list means there is no topology restriction.
       This field is only honored by servers that enable the VolumeScheduling feature.
       +optional
       +listType=atomic
       
      repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;
      Specified by:
      getAllowedTopologiesOrBuilder in interface V1beta1Storage.StorageClassOrBuilder
    • 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 V1beta1Storage.StorageClass parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static V1beta1Storage.StorageClass parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static V1beta1Storage.StorageClass parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static V1beta1Storage.StorageClass.Builder newBuilder()
    • newBuilder

    • toBuilder

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

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

      public static V1beta1Storage.StorageClass getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1beta1Storage.StorageClass> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1beta1Storage.StorageClass> 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 V1beta1Storage.StorageClass getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder