Class V1.CephFSPersistentVolumeSource.Builder

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

public static final class V1.CephFSPersistentVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.CephFSPersistentVolumeSource.Builder> implements V1.CephFSPersistentVolumeSourceOrBuilder
 Represents a Ceph Filesystem mount that lasts the lifetime of a pod
 Cephfs volumes do not support ownership management or SELinux relabeling.
 
Protobuf type k8s.io.api.core.v1.CephFSPersistentVolumeSource
  • 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.CephFSPersistentVolumeSource.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.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<V1.CephFSPersistentVolumeSource.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

       Required: Monitors is a collection of Ceph monitors
       More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       
      repeated string monitors = 1;
    • addMonitorsBytes

      public V1.CephFSPersistentVolumeSource.Builder addMonitorsBytes(com.google.protobuf.ByteString value)
       Required: Monitors is a collection of Ceph monitors
       More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       
      repeated string monitors = 1;
    • hasPath

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

      public String getPath()
       Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       +optional
       
      optional string path = 2;
      Specified by:
      getPath in interface V1.CephFSPersistentVolumeSourceOrBuilder
    • getPathBytes

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

       Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       +optional
       
      optional string path = 2;
    • clearPath

       Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       +optional
       
      optional string path = 2;
    • setPathBytes

      public V1.CephFSPersistentVolumeSource.Builder setPathBytes(com.google.protobuf.ByteString value)
       Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       +optional
       
      optional string path = 2;
    • hasUser

      public boolean hasUser()
       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 V1.CephFSPersistentVolumeSourceOrBuilder
    • getUser

      public String getUser()
       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 V1.CephFSPersistentVolumeSourceOrBuilder
    • getUserBytes

      public com.google.protobuf.ByteString getUserBytes()
       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 V1.CephFSPersistentVolumeSourceOrBuilder
    • setUser

       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;
    • clearUser

       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;
    • setUserBytes

      public V1.CephFSPersistentVolumeSource.Builder setUserBytes(com.google.protobuf.ByteString value)
       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;
    • hasSecretFile

      public boolean hasSecretFile()
       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 V1.CephFSPersistentVolumeSourceOrBuilder
    • getSecretFile

      public String getSecretFile()
       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 V1.CephFSPersistentVolumeSourceOrBuilder
    • getSecretFileBytes

      public com.google.protobuf.ByteString getSecretFileBytes()
       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 V1.CephFSPersistentVolumeSourceOrBuilder
    • setSecretFile

      public V1.CephFSPersistentVolumeSource.Builder setSecretFile(String value)
       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;
    • clearSecretFile

      public V1.CephFSPersistentVolumeSource.Builder clearSecretFile()
       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;
    • setSecretFileBytes

      public V1.CephFSPersistentVolumeSource.Builder setSecretFileBytes(com.google.protobuf.ByteString value)
       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;
    • hasSecretRef

      public boolean hasSecretRef()
       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 V1.CephFSPersistentVolumeSourceOrBuilder
    • getSecretRef

      public V1.SecretReference getSecretRef()
       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 V1.CephFSPersistentVolumeSourceOrBuilder
    • setSecretRef

       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;
    • setSecretRef

       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

       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 V1.CephFSPersistentVolumeSource.Builder clearSecretRef()
       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 V1.SecretReference.Builder getSecretRefBuilder()
       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;
    • getSecretRefOrBuilder

      public V1.SecretReferenceOrBuilder getSecretRefOrBuilder()
       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:
      getSecretRefOrBuilder in interface V1.CephFSPersistentVolumeSourceOrBuilder
    • 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/volumes/cephfs/README.md#how-to-use-it
       +optional
       
      optional bool readOnly = 6;
      Specified by:
      hasReadOnly in interface V1.CephFSPersistentVolumeSourceOrBuilder
    • 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/volumes/cephfs/README.md#how-to-use-it
       +optional
       
      optional bool readOnly = 6;
      Specified by:
      getReadOnly in interface V1.CephFSPersistentVolumeSourceOrBuilder
    • setReadOnly

      public V1.CephFSPersistentVolumeSource.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/volumes/cephfs/README.md#how-to-use-it
       +optional
       
      optional bool readOnly = 6;
    • clearReadOnly

       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;
    • setUnknownFields

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

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