Class V1.RBDPersistentVolumeSource.Builder

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

public static final class V1.RBDPersistentVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.RBDPersistentVolumeSource.Builder> implements V1.RBDPersistentVolumeSourceOrBuilder
 Represents a Rados Block Device mount that lasts the lifetime of a pod.
 RBD volumes support ownership management and SELinux relabeling.
 
Protobuf type k8s.io.api.core.v1.RBDPersistentVolumeSource
  • 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.RBDPersistentVolumeSource.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.RBDPersistentVolumeSource.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.RBDPersistentVolumeSource.Builder>
    • getDefaultInstanceForType

      public V1.RBDPersistentVolumeSource 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.RBDPersistentVolumeSource 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.RBDPersistentVolumeSource.Builder>
    • setField

      public V1.RBDPersistentVolumeSource.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.RBDPersistentVolumeSource.Builder>
    • clearField

      public V1.RBDPersistentVolumeSource.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.RBDPersistentVolumeSource.Builder>
    • clearOneof

      public V1.RBDPersistentVolumeSource.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.RBDPersistentVolumeSource.Builder>
    • setRepeatedField

      public V1.RBDPersistentVolumeSource.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.RBDPersistentVolumeSource.Builder>
    • addRepeatedField

      public V1.RBDPersistentVolumeSource.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.RBDPersistentVolumeSource.Builder>
    • mergeFrom

      public V1.RBDPersistentVolumeSource.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.RBDPersistentVolumeSource.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.RBDPersistentVolumeSource.Builder>
    • mergeFrom

      public V1.RBDPersistentVolumeSource.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.RBDPersistentVolumeSource.Builder>
      Throws:
      IOException
    • getMonitorsList

      public com.google.protobuf.ProtocolStringList getMonitorsList()
       A collection of Ceph monitors.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       
      repeated string monitors = 1;
      Specified by:
      getMonitorsList in interface V1.RBDPersistentVolumeSourceOrBuilder
    • getMonitorsCount

      public int getMonitorsCount()
       A collection of Ceph monitors.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       
      repeated string monitors = 1;
      Specified by:
      getMonitorsCount in interface V1.RBDPersistentVolumeSourceOrBuilder
    • getMonitors

      public String getMonitors(int index)
       A collection of Ceph monitors.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       
      repeated string monitors = 1;
      Specified by:
      getMonitors in interface V1.RBDPersistentVolumeSourceOrBuilder
    • getMonitorsBytes

      public com.google.protobuf.ByteString getMonitorsBytes(int index)
       A collection of Ceph monitors.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       
      repeated string monitors = 1;
      Specified by:
      getMonitorsBytes in interface V1.RBDPersistentVolumeSourceOrBuilder
    • setMonitors

      public V1.RBDPersistentVolumeSource.Builder setMonitors(int index, String value)
       A collection of Ceph monitors.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       
      repeated string monitors = 1;
    • addMonitors

      public V1.RBDPersistentVolumeSource.Builder addMonitors(String value)
       A collection of Ceph monitors.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       
      repeated string monitors = 1;
    • addAllMonitors

      public V1.RBDPersistentVolumeSource.Builder addAllMonitors(Iterable<String> values)
       A collection of Ceph monitors.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       
      repeated string monitors = 1;
    • clearMonitors

      public V1.RBDPersistentVolumeSource.Builder clearMonitors()
       A collection of Ceph monitors.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       
      repeated string monitors = 1;
    • addMonitorsBytes

      public V1.RBDPersistentVolumeSource.Builder addMonitorsBytes(com.google.protobuf.ByteString value)
       A collection of Ceph monitors.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       
      repeated string monitors = 1;
    • hasImage

      public boolean hasImage()
       The rados image name.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       
      optional string image = 2;
      Specified by:
      hasImage in interface V1.RBDPersistentVolumeSourceOrBuilder
    • getImage

      public String getImage()
       The rados image name.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       
      optional string image = 2;
      Specified by:
      getImage in interface V1.RBDPersistentVolumeSourceOrBuilder
    • getImageBytes

      public com.google.protobuf.ByteString getImageBytes()
       The rados image name.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       
      optional string image = 2;
      Specified by:
      getImageBytes in interface V1.RBDPersistentVolumeSourceOrBuilder
    • setImage

       The rados image name.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       
      optional string image = 2;
    • clearImage

       The rados image name.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       
      optional string image = 2;
    • setImageBytes

      public V1.RBDPersistentVolumeSource.Builder setImageBytes(com.google.protobuf.ByteString value)
       The rados image name.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       
      optional string image = 2;
    • hasFsType

      public boolean hasFsType()
       Filesystem type of the volume that you want to mount.
       Tip: Ensure that the filesystem type is supported by the host operating system.
       Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       TODO: how do we prevent errors in the filesystem from compromising the machine
       +optional
       
      optional string fsType = 3;
      Specified by:
      hasFsType in interface V1.RBDPersistentVolumeSourceOrBuilder
    • getFsType

      public String getFsType()
       Filesystem type of the volume that you want to mount.
       Tip: Ensure that the filesystem type is supported by the host operating system.
       Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       TODO: how do we prevent errors in the filesystem from compromising the machine
       +optional
       
      optional string fsType = 3;
      Specified by:
      getFsType in interface V1.RBDPersistentVolumeSourceOrBuilder
    • getFsTypeBytes

      public com.google.protobuf.ByteString getFsTypeBytes()
       Filesystem type of the volume that you want to mount.
       Tip: Ensure that the filesystem type is supported by the host operating system.
       Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       TODO: how do we prevent errors in the filesystem from compromising the machine
       +optional
       
      optional string fsType = 3;
      Specified by:
      getFsTypeBytes in interface V1.RBDPersistentVolumeSourceOrBuilder
    • setFsType

      public V1.RBDPersistentVolumeSource.Builder setFsType(String value)
       Filesystem type of the volume that you want to mount.
       Tip: Ensure that the filesystem type is supported by the host operating system.
       Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       TODO: how do we prevent errors in the filesystem from compromising the machine
       +optional
       
      optional string fsType = 3;
    • clearFsType

       Filesystem type of the volume that you want to mount.
       Tip: Ensure that the filesystem type is supported by the host operating system.
       Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       TODO: how do we prevent errors in the filesystem from compromising the machine
       +optional
       
      optional string fsType = 3;
    • setFsTypeBytes

      public V1.RBDPersistentVolumeSource.Builder setFsTypeBytes(com.google.protobuf.ByteString value)
       Filesystem type of the volume that you want to mount.
       Tip: Ensure that the filesystem type is supported by the host operating system.
       Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       TODO: how do we prevent errors in the filesystem from compromising the machine
       +optional
       
      optional string fsType = 3;
    • hasPool

      public boolean hasPool()
       The rados pool name.
       Default is rbd.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string pool = 4;
      Specified by:
      hasPool in interface V1.RBDPersistentVolumeSourceOrBuilder
    • getPool

      public String getPool()
       The rados pool name.
       Default is rbd.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string pool = 4;
      Specified by:
      getPool in interface V1.RBDPersistentVolumeSourceOrBuilder
    • getPoolBytes

      public com.google.protobuf.ByteString getPoolBytes()
       The rados pool name.
       Default is rbd.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string pool = 4;
      Specified by:
      getPoolBytes in interface V1.RBDPersistentVolumeSourceOrBuilder
    • setPool

       The rados pool name.
       Default is rbd.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string pool = 4;
    • clearPool

       The rados pool name.
       Default is rbd.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string pool = 4;
    • setPoolBytes

      public V1.RBDPersistentVolumeSource.Builder setPoolBytes(com.google.protobuf.ByteString value)
       The rados pool name.
       Default is rbd.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string pool = 4;
    • hasUser

      public boolean hasUser()
       The rados user name.
       Default is admin.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string user = 5;
      Specified by:
      hasUser in interface V1.RBDPersistentVolumeSourceOrBuilder
    • getUser

      public String getUser()
       The rados user name.
       Default is admin.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string user = 5;
      Specified by:
      getUser in interface V1.RBDPersistentVolumeSourceOrBuilder
    • getUserBytes

      public com.google.protobuf.ByteString getUserBytes()
       The rados user name.
       Default is admin.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string user = 5;
      Specified by:
      getUserBytes in interface V1.RBDPersistentVolumeSourceOrBuilder
    • setUser

       The rados user name.
       Default is admin.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string user = 5;
    • clearUser

       The rados user name.
       Default is admin.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string user = 5;
    • setUserBytes

      public V1.RBDPersistentVolumeSource.Builder setUserBytes(com.google.protobuf.ByteString value)
       The rados user name.
       Default is admin.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string user = 5;
    • hasKeyring

      public boolean hasKeyring()
       Keyring is the path to key ring for RBDUser.
       Default is /etc/ceph/keyring.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string keyring = 6;
      Specified by:
      hasKeyring in interface V1.RBDPersistentVolumeSourceOrBuilder
    • getKeyring

      public String getKeyring()
       Keyring is the path to key ring for RBDUser.
       Default is /etc/ceph/keyring.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string keyring = 6;
      Specified by:
      getKeyring in interface V1.RBDPersistentVolumeSourceOrBuilder
    • getKeyringBytes

      public com.google.protobuf.ByteString getKeyringBytes()
       Keyring is the path to key ring for RBDUser.
       Default is /etc/ceph/keyring.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string keyring = 6;
      Specified by:
      getKeyringBytes in interface V1.RBDPersistentVolumeSourceOrBuilder
    • setKeyring

      public V1.RBDPersistentVolumeSource.Builder setKeyring(String value)
       Keyring is the path to key ring for RBDUser.
       Default is /etc/ceph/keyring.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string keyring = 6;
    • clearKeyring

      public V1.RBDPersistentVolumeSource.Builder clearKeyring()
       Keyring is the path to key ring for RBDUser.
       Default is /etc/ceph/keyring.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string keyring = 6;
    • setKeyringBytes

      public V1.RBDPersistentVolumeSource.Builder setKeyringBytes(com.google.protobuf.ByteString value)
       Keyring is the path to key ring for RBDUser.
       Default is /etc/ceph/keyring.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional string keyring = 6;
    • hasSecretRef

      public boolean hasSecretRef()
       SecretRef is name of the authentication secret for RBDUser. If provided
       overrides keyring.
       Default is nil.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 7;
      Specified by:
      hasSecretRef in interface V1.RBDPersistentVolumeSourceOrBuilder
    • getSecretRef

      public V1.SecretReference getSecretRef()
       SecretRef is name of the authentication secret for RBDUser. If provided
       overrides keyring.
       Default is nil.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 7;
      Specified by:
      getSecretRef in interface V1.RBDPersistentVolumeSourceOrBuilder
    • setSecretRef

       SecretRef is name of the authentication secret for RBDUser. If provided
       overrides keyring.
       Default is nil.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 7;
    • setSecretRef

       SecretRef is name of the authentication secret for RBDUser. If provided
       overrides keyring.
       Default is nil.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 7;
    • mergeSecretRef

       SecretRef is name of the authentication secret for RBDUser. If provided
       overrides keyring.
       Default is nil.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 7;
    • clearSecretRef

      public V1.RBDPersistentVolumeSource.Builder clearSecretRef()
       SecretRef is name of the authentication secret for RBDUser. If provided
       overrides keyring.
       Default is nil.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 7;
    • getSecretRefBuilder

      public V1.SecretReference.Builder getSecretRefBuilder()
       SecretRef is name of the authentication secret for RBDUser. If provided
       overrides keyring.
       Default is nil.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 7;
    • getSecretRefOrBuilder

      public V1.SecretReferenceOrBuilder getSecretRefOrBuilder()
       SecretRef is name of the authentication secret for RBDUser. If provided
       overrides keyring.
       Default is nil.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 7;
      Specified by:
      getSecretRefOrBuilder in interface V1.RBDPersistentVolumeSourceOrBuilder
    • hasReadOnly

      public boolean hasReadOnly()
       ReadOnly here will force the ReadOnly setting in VolumeMounts.
       Defaults to false.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional bool readOnly = 8;
      Specified by:
      hasReadOnly in interface V1.RBDPersistentVolumeSourceOrBuilder
    • getReadOnly

      public boolean getReadOnly()
       ReadOnly here will force the ReadOnly setting in VolumeMounts.
       Defaults to false.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional bool readOnly = 8;
      Specified by:
      getReadOnly in interface V1.RBDPersistentVolumeSourceOrBuilder
    • setReadOnly

      public V1.RBDPersistentVolumeSource.Builder setReadOnly(boolean value)
       ReadOnly here will force the ReadOnly setting in VolumeMounts.
       Defaults to false.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional bool readOnly = 8;
    • clearReadOnly

      public V1.RBDPersistentVolumeSource.Builder clearReadOnly()
       ReadOnly here will force the ReadOnly setting in VolumeMounts.
       Defaults to false.
       More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       +optional
       
      optional bool readOnly = 8;
    • setUnknownFields

      public final V1.RBDPersistentVolumeSource.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.RBDPersistentVolumeSource.Builder>
    • mergeUnknownFields

      public final V1.RBDPersistentVolumeSource.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.RBDPersistentVolumeSource.Builder>