Class V1.StorageOSVolumeSource.Builder

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

public static final class V1.StorageOSVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.StorageOSVolumeSource.Builder> implements V1.StorageOSVolumeSourceOrBuilder
 Represents a StorageOS persistent volume resource.
 
Protobuf type k8s.io.api.core.v1.StorageOSVolumeSource
  • 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.StorageOSVolumeSource.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.StorageOSVolumeSource.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.StorageOSVolumeSource.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

      public boolean hasVolumeName()
       VolumeName is the human-readable name of the StorageOS volume.  Volume
       names are only unique within a namespace.
       
      optional string volumeName = 1;
      Specified by:
      hasVolumeName in interface V1.StorageOSVolumeSourceOrBuilder
    • getVolumeName

      public String getVolumeName()
       VolumeName is the human-readable name of the StorageOS volume.  Volume
       names are only unique within a namespace.
       
      optional string volumeName = 1;
      Specified by:
      getVolumeName in interface V1.StorageOSVolumeSourceOrBuilder
    • getVolumeNameBytes

      public com.google.protobuf.ByteString getVolumeNameBytes()
       VolumeName is the human-readable name of the StorageOS volume.  Volume
       names are only unique within a namespace.
       
      optional string volumeName = 1;
      Specified by:
      getVolumeNameBytes in interface V1.StorageOSVolumeSourceOrBuilder
    • setVolumeName

      public V1.StorageOSVolumeSource.Builder setVolumeName(String value)
       VolumeName is the human-readable name of the StorageOS volume.  Volume
       names are only unique within a namespace.
       
      optional string volumeName = 1;
    • clearVolumeName

      public V1.StorageOSVolumeSource.Builder clearVolumeName()
       VolumeName is the human-readable name of the StorageOS volume.  Volume
       names are only unique within a namespace.
       
      optional string volumeName = 1;
    • setVolumeNameBytes

      public V1.StorageOSVolumeSource.Builder setVolumeNameBytes(com.google.protobuf.ByteString value)
       VolumeName is the human-readable name of the StorageOS volume.  Volume
       names are only unique within a namespace.
       
      optional string volumeName = 1;
    • hasVolumeNamespace

      public boolean hasVolumeNamespace()
       VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       namespace is specified then the Pod's namespace will be used.  This allows the
       Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       Set VolumeName to any name to override the default behaviour.
       Set to "default" if you are not using namespaces within StorageOS.
       Namespaces that do not pre-exist within StorageOS will be created.
       +optional
       
      optional string volumeNamespace = 2;
      Specified by:
      hasVolumeNamespace in interface V1.StorageOSVolumeSourceOrBuilder
    • getVolumeNamespace

      public String getVolumeNamespace()
       VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       namespace is specified then the Pod's namespace will be used.  This allows the
       Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       Set VolumeName to any name to override the default behaviour.
       Set to "default" if you are not using namespaces within StorageOS.
       Namespaces that do not pre-exist within StorageOS will be created.
       +optional
       
      optional string volumeNamespace = 2;
      Specified by:
      getVolumeNamespace in interface V1.StorageOSVolumeSourceOrBuilder
    • getVolumeNamespaceBytes

      public com.google.protobuf.ByteString getVolumeNamespaceBytes()
       VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       namespace is specified then the Pod's namespace will be used.  This allows the
       Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       Set VolumeName to any name to override the default behaviour.
       Set to "default" if you are not using namespaces within StorageOS.
       Namespaces that do not pre-exist within StorageOS will be created.
       +optional
       
      optional string volumeNamespace = 2;
      Specified by:
      getVolumeNamespaceBytes in interface V1.StorageOSVolumeSourceOrBuilder
    • setVolumeNamespace

      public V1.StorageOSVolumeSource.Builder setVolumeNamespace(String value)
       VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       namespace is specified then the Pod's namespace will be used.  This allows the
       Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       Set VolumeName to any name to override the default behaviour.
       Set to "default" if you are not using namespaces within StorageOS.
       Namespaces that do not pre-exist within StorageOS will be created.
       +optional
       
      optional string volumeNamespace = 2;
    • clearVolumeNamespace

      public V1.StorageOSVolumeSource.Builder clearVolumeNamespace()
       VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       namespace is specified then the Pod's namespace will be used.  This allows the
       Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       Set VolumeName to any name to override the default behaviour.
       Set to "default" if you are not using namespaces within StorageOS.
       Namespaces that do not pre-exist within StorageOS will be created.
       +optional
       
      optional string volumeNamespace = 2;
    • setVolumeNamespaceBytes

      public V1.StorageOSVolumeSource.Builder setVolumeNamespaceBytes(com.google.protobuf.ByteString value)
       VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       namespace is specified then the Pod's namespace will be used.  This allows the
       Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       Set VolumeName to any name to override the default behaviour.
       Set to "default" if you are not using namespaces within StorageOS.
       Namespaces that do not pre-exist within StorageOS will be created.
       +optional
       
      optional string volumeNamespace = 2;
    • hasFsType

      public boolean hasFsType()
       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       +optional
       
      optional string fsType = 3;
      Specified by:
      hasFsType in interface V1.StorageOSVolumeSourceOrBuilder
    • getFsType

      public String getFsType()
       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       +optional
       
      optional string fsType = 3;
      Specified by:
      getFsType in interface V1.StorageOSVolumeSourceOrBuilder
    • getFsTypeBytes

      public com.google.protobuf.ByteString getFsTypeBytes()
       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       +optional
       
      optional string fsType = 3;
      Specified by:
      getFsTypeBytes in interface V1.StorageOSVolumeSourceOrBuilder
    • setFsType

      public V1.StorageOSVolumeSource.Builder setFsType(String value)
       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       +optional
       
      optional string fsType = 3;
    • clearFsType

      public V1.StorageOSVolumeSource.Builder clearFsType()
       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       +optional
       
      optional string fsType = 3;
    • setFsTypeBytes

      public V1.StorageOSVolumeSource.Builder setFsTypeBytes(com.google.protobuf.ByteString value)
       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       +optional
       
      optional string fsType = 3;
    • hasReadOnly

      public boolean hasReadOnly()
       Defaults to false (read/write). ReadOnly here will force
       the ReadOnly setting in VolumeMounts.
       +optional
       
      optional bool readOnly = 4;
      Specified by:
      hasReadOnly in interface V1.StorageOSVolumeSourceOrBuilder
    • getReadOnly

      public boolean getReadOnly()
       Defaults to false (read/write). ReadOnly here will force
       the ReadOnly setting in VolumeMounts.
       +optional
       
      optional bool readOnly = 4;
      Specified by:
      getReadOnly in interface V1.StorageOSVolumeSourceOrBuilder
    • setReadOnly

      public V1.StorageOSVolumeSource.Builder setReadOnly(boolean value)
       Defaults to false (read/write). ReadOnly here will force
       the ReadOnly setting in VolumeMounts.
       +optional
       
      optional bool readOnly = 4;
    • clearReadOnly

      public V1.StorageOSVolumeSource.Builder clearReadOnly()
       Defaults to false (read/write). ReadOnly here will force
       the ReadOnly setting in VolumeMounts.
       +optional
       
      optional bool readOnly = 4;
    • hasSecretRef

      public boolean hasSecretRef()
       SecretRef specifies the secret to use for obtaining the StorageOS API
       credentials.  If not specified, default values will be attempted.
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
      Specified by:
      hasSecretRef in interface V1.StorageOSVolumeSourceOrBuilder
    • getSecretRef

      public V1.LocalObjectReference getSecretRef()
       SecretRef specifies the secret to use for obtaining the StorageOS API
       credentials.  If not specified, default values will be attempted.
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
      Specified by:
      getSecretRef in interface V1.StorageOSVolumeSourceOrBuilder
    • setSecretRef

       SecretRef specifies the secret to use for obtaining the StorageOS API
       credentials.  If not specified, default values will be attempted.
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
    • setSecretRef

       SecretRef specifies the secret to use for obtaining the StorageOS API
       credentials.  If not specified, default values will be attempted.
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
    • mergeSecretRef

       SecretRef specifies the secret to use for obtaining the StorageOS API
       credentials.  If not specified, default values will be attempted.
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
    • clearSecretRef

      public V1.StorageOSVolumeSource.Builder clearSecretRef()
       SecretRef specifies the secret to use for obtaining the StorageOS API
       credentials.  If not specified, default values will be attempted.
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
    • getSecretRefBuilder

      public V1.LocalObjectReference.Builder getSecretRefBuilder()
       SecretRef specifies the secret to use for obtaining the StorageOS API
       credentials.  If not specified, default values will be attempted.
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
    • getSecretRefOrBuilder

      public V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder()
       SecretRef specifies the secret to use for obtaining the StorageOS API
       credentials.  If not specified, default values will be attempted.
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
      Specified by:
      getSecretRefOrBuilder in interface V1.StorageOSVolumeSourceOrBuilder
    • setUnknownFields

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

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