Class V1.CephFSVolumeSource.Builder

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

public static final class V1.CephFSVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.CephFSVolumeSource.Builder> implements V1.CephFSVolumeSourceOrBuilder
 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.CephFSVolumeSource
  • 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.CephFSVolumeSource.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.CephFSVolumeSource.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.CephFSVolumeSource.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public V1.CephFSVolumeSource.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.CephFSVolumeSource.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.CephFSVolumeSourceOrBuilder
    • 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.CephFSVolumeSourceOrBuilder
    • 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.CephFSVolumeSourceOrBuilder
    • 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.CephFSVolumeSourceOrBuilder
    • setMonitors

      public V1.CephFSVolumeSource.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.CephFSVolumeSource.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.CephFSVolumeSource.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

      public V1.CephFSVolumeSource.Builder 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.CephFSVolumeSource.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.CephFSVolumeSourceOrBuilder
    • 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.CephFSVolumeSourceOrBuilder
    • 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.CephFSVolumeSourceOrBuilder
    • setPath

      public V1.CephFSVolumeSource.Builder setPath(String value)
       Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       +optional
       
      optional string path = 2;
    • clearPath

      public V1.CephFSVolumeSource.Builder clearPath()
       Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       +optional
       
      optional string path = 2;
    • setPathBytes

      public V1.CephFSVolumeSource.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.CephFSVolumeSourceOrBuilder
    • 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.CephFSVolumeSourceOrBuilder
    • 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.CephFSVolumeSourceOrBuilder
    • setUser

      public V1.CephFSVolumeSource.Builder setUser(String 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;
    • clearUser

      public V1.CephFSVolumeSource.Builder 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.CephFSVolumeSource.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.CephFSVolumeSourceOrBuilder
    • 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.CephFSVolumeSourceOrBuilder
    • 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.CephFSVolumeSourceOrBuilder
    • setSecretFile

      public V1.CephFSVolumeSource.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.CephFSVolumeSource.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.CephFSVolumeSource.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.LocalObjectReference secretRef = 5;
      Specified by:
      hasSecretRef in interface V1.CephFSVolumeSourceOrBuilder
    • getSecretRef

      public V1.LocalObjectReference 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.LocalObjectReference secretRef = 5;
      Specified by:
      getSecretRef in interface V1.CephFSVolumeSourceOrBuilder
    • 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.LocalObjectReference secretRef = 5;
    • setSecretRef

      public V1.CephFSVolumeSource.Builder setSecretRef(V1.LocalObjectReference.Builder builderForValue)
       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.LocalObjectReference 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.LocalObjectReference secretRef = 5;
    • clearSecretRef

      public V1.CephFSVolumeSource.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.LocalObjectReference secretRef = 5;
    • getSecretRefBuilder

      public V1.LocalObjectReference.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.LocalObjectReference secretRef = 5;
    • getSecretRefOrBuilder

      public V1.LocalObjectReferenceOrBuilder 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.LocalObjectReference secretRef = 5;
      Specified by:
      getSecretRefOrBuilder in interface V1.CephFSVolumeSourceOrBuilder
    • 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.CephFSVolumeSourceOrBuilder
    • 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.CephFSVolumeSourceOrBuilder
    • setReadOnly

      public V1.CephFSVolumeSource.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

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

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