Class Generated.RBDPersistentVolumeSource.Builder

    • Method Detail

      • 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<Generated.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<Generated.RBDPersistentVolumeSource.Builder>
      • getDefaultInstanceForType

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

        public Generated.RBDPersistentVolumeSource build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Generated.RBDPersistentVolumeSource buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.RBDPersistentVolumeSource.Builder>
      • getMonitorsList

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

        public int getMonitorsCount()
         monitors is a collection of Ceph monitors.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         +listType=atomic
         
        repeated string monitors = 1;
        Specified by:
        getMonitorsCount in interface Generated.RBDPersistentVolumeSourceOrBuilder
        Returns:
        The count of monitors.
      • getMonitors

        public String getMonitors​(int index)
         monitors is a collection of Ceph monitors.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         +listType=atomic
         
        repeated string monitors = 1;
        Specified by:
        getMonitors in interface Generated.RBDPersistentVolumeSourceOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The monitors at the given index.
      • getMonitorsBytes

        public com.google.protobuf.ByteString getMonitorsBytes​(int index)
         monitors is a collection of Ceph monitors.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         +listType=atomic
         
        repeated string monitors = 1;
        Specified by:
        getMonitorsBytes in interface Generated.RBDPersistentVolumeSourceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the monitors at the given index.
      • setMonitors

        public Generated.RBDPersistentVolumeSource.Builder setMonitors​(int index,
                                                                       String value)
         monitors is a collection of Ceph monitors.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         +listType=atomic
         
        repeated string monitors = 1;
        Parameters:
        index - The index to set the value at.
        value - The monitors to set.
        Returns:
        This builder for chaining.
      • addMonitors

        public Generated.RBDPersistentVolumeSource.Builder addMonitors​(String value)
         monitors is a collection of Ceph monitors.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         +listType=atomic
         
        repeated string monitors = 1;
        Parameters:
        value - The monitors to add.
        Returns:
        This builder for chaining.
      • addAllMonitors

        public Generated.RBDPersistentVolumeSource.Builder addAllMonitors​(Iterable<String> values)
         monitors is a collection of Ceph monitors.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         +listType=atomic
         
        repeated string monitors = 1;
        Parameters:
        values - The monitors to add.
        Returns:
        This builder for chaining.
      • clearMonitors

        public Generated.RBDPersistentVolumeSource.Builder clearMonitors()
         monitors is a collection of Ceph monitors.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         +listType=atomic
         
        repeated string monitors = 1;
        Returns:
        This builder for chaining.
      • addMonitorsBytes

        public Generated.RBDPersistentVolumeSource.Builder addMonitorsBytes​(com.google.protobuf.ByteString value)
         monitors is a collection of Ceph monitors.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         +listType=atomic
         
        repeated string monitors = 1;
        Parameters:
        value - The bytes of the monitors to add.
        Returns:
        This builder for chaining.
      • hasImage

        public boolean hasImage()
         image is 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 Generated.RBDPersistentVolumeSourceOrBuilder
        Returns:
        Whether the image field is set.
      • getImageBytes

        public com.google.protobuf.ByteString getImageBytes()
         image is 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 Generated.RBDPersistentVolumeSourceOrBuilder
        Returns:
        The bytes for image.
      • setImage

        public Generated.RBDPersistentVolumeSource.Builder setImage​(String value)
         image is the rados image name.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         
        optional string image = 2;
        Parameters:
        value - The image to set.
        Returns:
        This builder for chaining.
      • clearImage

        public Generated.RBDPersistentVolumeSource.Builder clearImage()
         image is the rados image name.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         
        optional string image = 2;
        Returns:
        This builder for chaining.
      • setImageBytes

        public Generated.RBDPersistentVolumeSource.Builder setImageBytes​(com.google.protobuf.ByteString value)
         image is the rados image name.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         
        optional string image = 2;
        Parameters:
        value - The bytes for image to set.
        Returns:
        This builder for chaining.
      • hasFsType

        public boolean hasFsType()
         fsType is the 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 Generated.RBDPersistentVolumeSourceOrBuilder
        Returns:
        Whether the fsType field is set.
      • getFsType

        public String getFsType()
         fsType is the 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 Generated.RBDPersistentVolumeSourceOrBuilder
        Returns:
        The fsType.
      • getFsTypeBytes

        public com.google.protobuf.ByteString getFsTypeBytes()
         fsType is the 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 Generated.RBDPersistentVolumeSourceOrBuilder
        Returns:
        The bytes for fsType.
      • setFsType

        public Generated.RBDPersistentVolumeSource.Builder setFsType​(String value)
         fsType is the 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;
        Parameters:
        value - The fsType to set.
        Returns:
        This builder for chaining.
      • clearFsType

        public Generated.RBDPersistentVolumeSource.Builder clearFsType()
         fsType is the 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;
        Returns:
        This builder for chaining.
      • setFsTypeBytes

        public Generated.RBDPersistentVolumeSource.Builder setFsTypeBytes​(com.google.protobuf.ByteString value)
         fsType is the 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;
        Parameters:
        value - The bytes for fsType to set.
        Returns:
        This builder for chaining.
      • hasPool

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

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

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

        public Generated.RBDPersistentVolumeSource.Builder setPool​(String value)
         pool is the rados pool name.
         Default is rbd.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         +optional
         +default="rbd"
         
        optional string pool = 4;
        Parameters:
        value - The pool to set.
        Returns:
        This builder for chaining.
      • clearPool

        public Generated.RBDPersistentVolumeSource.Builder clearPool()
         pool is the rados pool name.
         Default is rbd.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         +optional
         +default="rbd"
         
        optional string pool = 4;
        Returns:
        This builder for chaining.
      • setPoolBytes

        public Generated.RBDPersistentVolumeSource.Builder setPoolBytes​(com.google.protobuf.ByteString value)
         pool is the rados pool name.
         Default is rbd.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         +optional
         +default="rbd"
         
        optional string pool = 4;
        Parameters:
        value - The bytes for pool to set.
        Returns:
        This builder for chaining.
      • hasUser

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

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

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

        public Generated.RBDPersistentVolumeSource.Builder setUser​(String value)
         user is the rados user name.
         Default is admin.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         +optional
         +default="admin"
         
        optional string user = 5;
        Parameters:
        value - The user to set.
        Returns:
        This builder for chaining.
      • clearUser

        public Generated.RBDPersistentVolumeSource.Builder clearUser()
         user is the rados user name.
         Default is admin.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         +optional
         +default="admin"
         
        optional string user = 5;
        Returns:
        This builder for chaining.
      • setUserBytes

        public Generated.RBDPersistentVolumeSource.Builder setUserBytes​(com.google.protobuf.ByteString value)
         user is the rados user name.
         Default is admin.
         More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
         +optional
         +default="admin"
         
        optional string user = 5;
        Parameters:
        value - The bytes for user to set.
        Returns:
        This builder for chaining.
      • 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
         +default="/etc/ceph/keyring"
         
        optional string keyring = 6;
        Specified by:
        hasKeyring in interface Generated.RBDPersistentVolumeSourceOrBuilder
        Returns:
        Whether the keyring field is set.
      • 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
         +default="/etc/ceph/keyring"
         
        optional string keyring = 6;
        Specified by:
        getKeyring in interface Generated.RBDPersistentVolumeSourceOrBuilder
        Returns:
        The keyring.
      • 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
         +default="/etc/ceph/keyring"
         
        optional string keyring = 6;
        Specified by:
        getKeyringBytes in interface Generated.RBDPersistentVolumeSourceOrBuilder
        Returns:
        The bytes for keyring.
      • setKeyring

        public Generated.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
         +default="/etc/ceph/keyring"
         
        optional string keyring = 6;
        Parameters:
        value - The keyring to set.
        Returns:
        This builder for chaining.
      • clearKeyring

        public Generated.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
         +default="/etc/ceph/keyring"
         
        optional string keyring = 6;
        Returns:
        This builder for chaining.
      • setKeyringBytes

        public Generated.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
         +default="/etc/ceph/keyring"
         
        optional string keyring = 6;
        Parameters:
        value - The bytes for keyring to set.
        Returns:
        This builder for chaining.
      • 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 Generated.RBDPersistentVolumeSourceOrBuilder
        Returns:
        Whether the secretRef field is set.
      • getSecretRef

        public Generated.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 Generated.RBDPersistentVolumeSourceOrBuilder
        Returns:
        The secretRef.
      • setSecretRef

        public Generated.RBDPersistentVolumeSource.Builder setSecretRef​(Generated.SecretReference value)
         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

        public Generated.RBDPersistentVolumeSource.Builder setSecretRef​(Generated.SecretReference.Builder builderForValue)
         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

        public Generated.RBDPersistentVolumeSource.Builder mergeSecretRef​(Generated.SecretReference value)
         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 Generated.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 Generated.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;
      • 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 Generated.RBDPersistentVolumeSourceOrBuilder
        Returns:
        Whether the readOnly field is set.
      • 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 Generated.RBDPersistentVolumeSourceOrBuilder
        Returns:
        The readOnly.
      • setReadOnly

        public Generated.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;
        Parameters:
        value - The readOnly to set.
        Returns:
        This builder for chaining.
      • clearReadOnly

        public Generated.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;
        Returns:
        This builder for chaining.