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

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

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

        public Generated.CephFSPersistentVolumeSource 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.CephFSPersistentVolumeSource.Builder>
      • getMonitorsList

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

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

        public String getMonitors​(int index)
         monitors is Required: Monitors is a collection of Ceph monitors
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +listType=atomic
         
        repeated string monitors = 1;
        Specified by:
        getMonitors in interface Generated.CephFSPersistentVolumeSourceOrBuilder
        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 Required: Monitors is a collection of Ceph monitors
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +listType=atomic
         
        repeated string monitors = 1;
        Specified by:
        getMonitorsBytes in interface Generated.CephFSPersistentVolumeSourceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the monitors at the given index.
      • setMonitors

        public Generated.CephFSPersistentVolumeSource.Builder setMonitors​(int index,
                                                                          String value)
         monitors is Required: Monitors is a collection of Ceph monitors
         More info: https://examples.k8s.io/volumes/cephfs/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.CephFSPersistentVolumeSource.Builder addMonitors​(String value)
         monitors is Required: Monitors is a collection of Ceph monitors
         More info: https://examples.k8s.io/volumes/cephfs/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.CephFSPersistentVolumeSource.Builder addAllMonitors​(Iterable<String> values)
         monitors is Required: Monitors is a collection of Ceph monitors
         More info: https://examples.k8s.io/volumes/cephfs/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.CephFSPersistentVolumeSource.Builder clearMonitors()
         monitors is Required: Monitors is a collection of Ceph monitors
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +listType=atomic
         
        repeated string monitors = 1;
        Returns:
        This builder for chaining.
      • addMonitorsBytes

        public Generated.CephFSPersistentVolumeSource.Builder addMonitorsBytes​(com.google.protobuf.ByteString value)
         monitors is Required: Monitors is a collection of Ceph monitors
         More info: https://examples.k8s.io/volumes/cephfs/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.
      • hasPath

        public boolean hasPath()
         path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
         +optional
         
        optional string path = 2;
        Specified by:
        hasPath in interface Generated.CephFSPersistentVolumeSourceOrBuilder
        Returns:
        Whether the path field is set.
      • getPathBytes

        public com.google.protobuf.ByteString getPathBytes()
         path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
         +optional
         
        optional string path = 2;
        Specified by:
        getPathBytes in interface Generated.CephFSPersistentVolumeSourceOrBuilder
        Returns:
        The bytes for path.
      • setPath

        public Generated.CephFSPersistentVolumeSource.Builder setPath​(String value)
         path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
         +optional
         
        optional string path = 2;
        Parameters:
        value - The path to set.
        Returns:
        This builder for chaining.
      • clearPath

        public Generated.CephFSPersistentVolumeSource.Builder clearPath()
         path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
         +optional
         
        optional string path = 2;
        Returns:
        This builder for chaining.
      • setPathBytes

        public Generated.CephFSPersistentVolumeSource.Builder setPathBytes​(com.google.protobuf.ByteString value)
         path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
         +optional
         
        optional string path = 2;
        Parameters:
        value - The bytes for path to set.
        Returns:
        This builder for chaining.
      • hasUser

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

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

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

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

        public Generated.CephFSPersistentVolumeSource.Builder clearUser()
         user is Optional: User is the rados user name, default is admin
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional string user = 3;
        Returns:
        This builder for chaining.
      • setUserBytes

        public Generated.CephFSPersistentVolumeSource.Builder setUserBytes​(com.google.protobuf.ByteString value)
         user is Optional: User is the rados user name, default is admin
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional string user = 3;
        Parameters:
        value - The bytes for user to set.
        Returns:
        This builder for chaining.
      • hasSecretFile

        public boolean hasSecretFile()
         secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional string secretFile = 4;
        Specified by:
        hasSecretFile in interface Generated.CephFSPersistentVolumeSourceOrBuilder
        Returns:
        Whether the secretFile field is set.
      • getSecretFile

        public String getSecretFile()
         secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional string secretFile = 4;
        Specified by:
        getSecretFile in interface Generated.CephFSPersistentVolumeSourceOrBuilder
        Returns:
        The secretFile.
      • getSecretFileBytes

        public com.google.protobuf.ByteString getSecretFileBytes()
         secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional string secretFile = 4;
        Specified by:
        getSecretFileBytes in interface Generated.CephFSPersistentVolumeSourceOrBuilder
        Returns:
        The bytes for secretFile.
      • setSecretFile

        public Generated.CephFSPersistentVolumeSource.Builder setSecretFile​(String value)
         secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional string secretFile = 4;
        Parameters:
        value - The secretFile to set.
        Returns:
        This builder for chaining.
      • clearSecretFile

        public Generated.CephFSPersistentVolumeSource.Builder clearSecretFile()
         secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional string secretFile = 4;
        Returns:
        This builder for chaining.
      • setSecretFileBytes

        public Generated.CephFSPersistentVolumeSource.Builder setSecretFileBytes​(com.google.protobuf.ByteString value)
         secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional string secretFile = 4;
        Parameters:
        value - The bytes for secretFile to set.
        Returns:
        This builder for chaining.
      • hasSecretRef

        public boolean hasSecretRef()
         secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional .k8s.io.api.core.v1.SecretReference secretRef = 5;
        Specified by:
        hasSecretRef in interface Generated.CephFSPersistentVolumeSourceOrBuilder
        Returns:
        Whether the secretRef field is set.
      • getSecretRef

        public Generated.SecretReference getSecretRef()
         secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional .k8s.io.api.core.v1.SecretReference secretRef = 5;
        Specified by:
        getSecretRef in interface Generated.CephFSPersistentVolumeSourceOrBuilder
        Returns:
        The secretRef.
      • setSecretRef

        public Generated.CephFSPersistentVolumeSource.Builder setSecretRef​(Generated.SecretReference value)
         secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional .k8s.io.api.core.v1.SecretReference secretRef = 5;
      • mergeSecretRef

        public Generated.CephFSPersistentVolumeSource.Builder mergeSecretRef​(Generated.SecretReference value)
         secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional .k8s.io.api.core.v1.SecretReference secretRef = 5;
      • clearSecretRef

        public Generated.CephFSPersistentVolumeSource.Builder clearSecretRef()
         secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional .k8s.io.api.core.v1.SecretReference secretRef = 5;
      • getSecretRefBuilder

        public Generated.SecretReference.Builder getSecretRefBuilder()
         secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional .k8s.io.api.core.v1.SecretReference secretRef = 5;
      • hasReadOnly

        public boolean hasReadOnly()
         readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
         the ReadOnly setting in VolumeMounts.
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional bool readOnly = 6;
        Specified by:
        hasReadOnly in interface Generated.CephFSPersistentVolumeSourceOrBuilder
        Returns:
        Whether the readOnly field is set.
      • getReadOnly

        public boolean getReadOnly()
         readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
         the ReadOnly setting in VolumeMounts.
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional bool readOnly = 6;
        Specified by:
        getReadOnly in interface Generated.CephFSPersistentVolumeSourceOrBuilder
        Returns:
        The readOnly.
      • setReadOnly

        public Generated.CephFSPersistentVolumeSource.Builder setReadOnly​(boolean value)
         readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
         the ReadOnly setting in VolumeMounts.
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional bool readOnly = 6;
        Parameters:
        value - The readOnly to set.
        Returns:
        This builder for chaining.
      • clearReadOnly

        public Generated.CephFSPersistentVolumeSource.Builder clearReadOnly()
         readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
         the ReadOnly setting in VolumeMounts.
         More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
         +optional
         
        optional bool readOnly = 6;
        Returns:
        This builder for chaining.