Class V1.CinderPersistentVolumeSource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1.CinderPersistentVolumeSource.Builder>
io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.CinderPersistentVolumeSourceOrBuilder, Cloneable
Enclosing class:
V1.CinderPersistentVolumeSource

public static final class V1.CinderPersistentVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.CinderPersistentVolumeSource.Builder> implements V1.CinderPersistentVolumeSourceOrBuilder
 Represents a cinder volume resource in Openstack.
 A Cinder volume must exist before mounting to a container.
 The volume must also be in the same region as the kubelet.
 Cinder volumes support ownership management and SELinux relabeling.
 
Protobuf type k8s.io.api.core.v1.CinderPersistentVolumeSource
  • Method Details

    • 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.Builder<V1.CinderPersistentVolumeSource.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CinderPersistentVolumeSource.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CinderPersistentVolumeSource.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V1.CinderPersistentVolumeSource buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CinderPersistentVolumeSource.Builder>
    • setField

      public V1.CinderPersistentVolumeSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CinderPersistentVolumeSource.Builder>
    • clearField

      public V1.CinderPersistentVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CinderPersistentVolumeSource.Builder>
    • clearOneof

      public V1.CinderPersistentVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CinderPersistentVolumeSource.Builder>
    • setRepeatedField

      public V1.CinderPersistentVolumeSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CinderPersistentVolumeSource.Builder>
    • addRepeatedField

      public V1.CinderPersistentVolumeSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CinderPersistentVolumeSource.Builder>
    • mergeFrom

      public V1.CinderPersistentVolumeSource.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.CinderPersistentVolumeSource.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CinderPersistentVolumeSource.Builder>
    • mergeFrom

      public V1.CinderPersistentVolumeSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.CinderPersistentVolumeSource.Builder>
      Throws:
      IOException
    • hasVolumeID

      public boolean hasVolumeID()
       volume id used to identify the volume in cinder.
       More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       
      optional string volumeID = 1;
      Specified by:
      hasVolumeID in interface V1.CinderPersistentVolumeSourceOrBuilder
    • getVolumeID

      public String getVolumeID()
       volume id used to identify the volume in cinder.
       More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       
      optional string volumeID = 1;
      Specified by:
      getVolumeID in interface V1.CinderPersistentVolumeSourceOrBuilder
    • getVolumeIDBytes

      public com.google.protobuf.ByteString getVolumeIDBytes()
       volume id used to identify the volume in cinder.
       More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       
      optional string volumeID = 1;
      Specified by:
      getVolumeIDBytes in interface V1.CinderPersistentVolumeSourceOrBuilder
    • setVolumeID

      public V1.CinderPersistentVolumeSource.Builder setVolumeID(String value)
       volume id used to identify the volume in cinder.
       More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       
      optional string volumeID = 1;
    • clearVolumeID

       volume id used to identify the volume in cinder.
       More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       
      optional string volumeID = 1;
    • setVolumeIDBytes

      public V1.CinderPersistentVolumeSource.Builder setVolumeIDBytes(com.google.protobuf.ByteString value)
       volume id used to identify the volume in cinder.
       More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       
      optional string volumeID = 1;
    • hasFsType

      public boolean hasFsType()
       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       +optional
       
      optional string fsType = 2;
      Specified by:
      hasFsType in interface V1.CinderPersistentVolumeSourceOrBuilder
    • getFsType

      public String getFsType()
       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       +optional
       
      optional string fsType = 2;
      Specified by:
      getFsType in interface V1.CinderPersistentVolumeSourceOrBuilder
    • getFsTypeBytes

      public com.google.protobuf.ByteString getFsTypeBytes()
       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       +optional
       
      optional string fsType = 2;
      Specified by:
      getFsTypeBytes in interface V1.CinderPersistentVolumeSourceOrBuilder
    • setFsType

       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       +optional
       
      optional string fsType = 2;
    • clearFsType

       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       +optional
       
      optional string fsType = 2;
    • setFsTypeBytes

      public V1.CinderPersistentVolumeSource.Builder setFsTypeBytes(com.google.protobuf.ByteString value)
       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       +optional
       
      optional string fsType = 2;
    • hasReadOnly

      public boolean hasReadOnly()
       Optional: Defaults to false (read/write). ReadOnly here will force
       the ReadOnly setting in VolumeMounts.
       More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       +optional
       
      optional bool readOnly = 3;
      Specified by:
      hasReadOnly in interface V1.CinderPersistentVolumeSourceOrBuilder
    • getReadOnly

      public boolean getReadOnly()
       Optional: Defaults to false (read/write). ReadOnly here will force
       the ReadOnly setting in VolumeMounts.
       More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       +optional
       
      optional bool readOnly = 3;
      Specified by:
      getReadOnly in interface V1.CinderPersistentVolumeSourceOrBuilder
    • setReadOnly

      public V1.CinderPersistentVolumeSource.Builder setReadOnly(boolean value)
       Optional: Defaults to false (read/write). ReadOnly here will force
       the ReadOnly setting in VolumeMounts.
       More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       +optional
       
      optional bool readOnly = 3;
    • clearReadOnly

       Optional: Defaults to false (read/write). ReadOnly here will force
       the ReadOnly setting in VolumeMounts.
       More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       +optional
       
      optional bool readOnly = 3;
    • hasSecretRef

      public boolean hasSecretRef()
       Optional: points to a secret object containing parameters used to connect
       to OpenStack.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 4;
      Specified by:
      hasSecretRef in interface V1.CinderPersistentVolumeSourceOrBuilder
    • getSecretRef

      public V1.SecretReference getSecretRef()
       Optional: points to a secret object containing parameters used to connect
       to OpenStack.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 4;
      Specified by:
      getSecretRef in interface V1.CinderPersistentVolumeSourceOrBuilder
    • setSecretRef

       Optional: points to a secret object containing parameters used to connect
       to OpenStack.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 4;
    • setSecretRef

       Optional: points to a secret object containing parameters used to connect
       to OpenStack.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 4;
    • mergeSecretRef

       Optional: points to a secret object containing parameters used to connect
       to OpenStack.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 4;
    • clearSecretRef

      public V1.CinderPersistentVolumeSource.Builder clearSecretRef()
       Optional: points to a secret object containing parameters used to connect
       to OpenStack.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 4;
    • getSecretRefBuilder

      public V1.SecretReference.Builder getSecretRefBuilder()
       Optional: points to a secret object containing parameters used to connect
       to OpenStack.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 4;
    • getSecretRefOrBuilder

      public V1.SecretReferenceOrBuilder getSecretRefOrBuilder()
       Optional: points to a secret object containing parameters used to connect
       to OpenStack.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 4;
      Specified by:
      getSecretRefOrBuilder in interface V1.CinderPersistentVolumeSourceOrBuilder
    • setUnknownFields

      public final V1.CinderPersistentVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CinderPersistentVolumeSource.Builder>
    • mergeUnknownFields

      public final V1.CinderPersistentVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CinderPersistentVolumeSource.Builder>