Class Generated.RBDPersistentVolumeSource

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Generated.RBDPersistentVolumeSourceOrBuilder
    Enclosing class:
    Generated

    public static final class Generated.RBDPersistentVolumeSource
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.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
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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 Generated.RBDPersistentVolumeSource parseFrom​(ByteBuffer data,
                                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.RBDPersistentVolumeSource parseFrom​(com.google.protobuf.ByteString data)
                                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.RBDPersistentVolumeSource parseFrom​(com.google.protobuf.ByteString data,
                                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.RBDPersistentVolumeSource parseFrom​(byte[] data)
                                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.RBDPersistentVolumeSource parseFrom​(byte[] data,
                                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

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

        protected Generated.RBDPersistentVolumeSource.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

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