Class V1.FlexPersistentVolumeSource.Builder

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

public static final class V1.FlexPersistentVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.FlexPersistentVolumeSource.Builder> implements V1.FlexPersistentVolumeSourceOrBuilder
 FlexPersistentVolumeSource represents a generic persistent volume resource that is
 provisioned/attached using an exec based plugin.
 
Protobuf type k8s.io.api.core.v1.FlexPersistentVolumeSource
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapField

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.FlexPersistentVolumeSource.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      Overrides:
      internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.FlexPersistentVolumeSource.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.FlexPersistentVolumeSource.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.FlexPersistentVolumeSource.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.FlexPersistentVolumeSource.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public boolean hasDriver()
       Driver is the name of the driver to use for this volume.
       
      optional string driver = 1;
      Specified by:
      hasDriver in interface V1.FlexPersistentVolumeSourceOrBuilder
    • getDriver

      public String getDriver()
       Driver is the name of the driver to use for this volume.
       
      optional string driver = 1;
      Specified by:
      getDriver in interface V1.FlexPersistentVolumeSourceOrBuilder
    • getDriverBytes

      public com.google.protobuf.ByteString getDriverBytes()
       Driver is the name of the driver to use for this volume.
       
      optional string driver = 1;
      Specified by:
      getDriverBytes in interface V1.FlexPersistentVolumeSourceOrBuilder
    • setDriver

       Driver is the name of the driver to use for this volume.
       
      optional string driver = 1;
    • clearDriver

       Driver is the name of the driver to use for this volume.
       
      optional string driver = 1;
    • setDriverBytes

      public V1.FlexPersistentVolumeSource.Builder setDriverBytes(com.google.protobuf.ByteString value)
       Driver is the name of the driver to use for this volume.
       
      optional string driver = 1;
    • hasFsType

      public boolean hasFsType()
       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
       +optional
       
      optional string fsType = 2;
      Specified by:
      hasFsType in interface V1.FlexPersistentVolumeSourceOrBuilder
    • getFsType

      public String getFsType()
       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
       +optional
       
      optional string fsType = 2;
      Specified by:
      getFsType in interface V1.FlexPersistentVolumeSourceOrBuilder
    • 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". The default filesystem depends on FlexVolume script.
       +optional
       
      optional string fsType = 2;
      Specified by:
      getFsTypeBytes in interface V1.FlexPersistentVolumeSourceOrBuilder
    • setFsType

       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
       +optional
       
      optional string fsType = 2;
    • clearFsType

       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
       +optional
       
      optional string fsType = 2;
    • setFsTypeBytes

      public V1.FlexPersistentVolumeSource.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". The default filesystem depends on FlexVolume script.
       +optional
       
      optional string fsType = 2;
    • hasSecretRef

      public boolean hasSecretRef()
       Optional: SecretRef is reference to the secret object containing
       sensitive information to pass to the plugin scripts. This may be
       empty if no secret object is specified. If the secret object
       contains more than one secret, all secrets are passed to the plugin
       scripts.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 3;
      Specified by:
      hasSecretRef in interface V1.FlexPersistentVolumeSourceOrBuilder
    • getSecretRef

      public V1.SecretReference getSecretRef()
       Optional: SecretRef is reference to the secret object containing
       sensitive information to pass to the plugin scripts. This may be
       empty if no secret object is specified. If the secret object
       contains more than one secret, all secrets are passed to the plugin
       scripts.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 3;
      Specified by:
      getSecretRef in interface V1.FlexPersistentVolumeSourceOrBuilder
    • setSecretRef

       Optional: SecretRef is reference to the secret object containing
       sensitive information to pass to the plugin scripts. This may be
       empty if no secret object is specified. If the secret object
       contains more than one secret, all secrets are passed to the plugin
       scripts.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 3;
    • setSecretRef

       Optional: SecretRef is reference to the secret object containing
       sensitive information to pass to the plugin scripts. This may be
       empty if no secret object is specified. If the secret object
       contains more than one secret, all secrets are passed to the plugin
       scripts.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 3;
    • mergeSecretRef

       Optional: SecretRef is reference to the secret object containing
       sensitive information to pass to the plugin scripts. This may be
       empty if no secret object is specified. If the secret object
       contains more than one secret, all secrets are passed to the plugin
       scripts.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 3;
    • clearSecretRef

      public V1.FlexPersistentVolumeSource.Builder clearSecretRef()
       Optional: SecretRef is reference to the secret object containing
       sensitive information to pass to the plugin scripts. This may be
       empty if no secret object is specified. If the secret object
       contains more than one secret, all secrets are passed to the plugin
       scripts.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 3;
    • getSecretRefBuilder

      public V1.SecretReference.Builder getSecretRefBuilder()
       Optional: SecretRef is reference to the secret object containing
       sensitive information to pass to the plugin scripts. This may be
       empty if no secret object is specified. If the secret object
       contains more than one secret, all secrets are passed to the plugin
       scripts.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 3;
    • getSecretRefOrBuilder

      public V1.SecretReferenceOrBuilder getSecretRefOrBuilder()
       Optional: SecretRef is reference to the secret object containing
       sensitive information to pass to the plugin scripts. This may be
       empty if no secret object is specified. If the secret object
       contains more than one secret, all secrets are passed to the plugin
       scripts.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference secretRef = 3;
      Specified by:
      getSecretRefOrBuilder in interface V1.FlexPersistentVolumeSourceOrBuilder
    • hasReadOnly

      public boolean hasReadOnly()
       Optional: 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.FlexPersistentVolumeSourceOrBuilder
    • getReadOnly

      public boolean getReadOnly()
       Optional: 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.FlexPersistentVolumeSourceOrBuilder
    • setReadOnly

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

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

      public int getOptionsCount()
      Description copied from interface: V1.FlexPersistentVolumeSourceOrBuilder
       Optional: Extra command options if any.
       +optional
       
      map<string, string> options = 5;
      Specified by:
      getOptionsCount in interface V1.FlexPersistentVolumeSourceOrBuilder
    • containsOptions

      public boolean containsOptions(String key)
       Optional: Extra command options if any.
       +optional
       
      map<string, string> options = 5;
      Specified by:
      containsOptions in interface V1.FlexPersistentVolumeSourceOrBuilder
    • getOptions

      @Deprecated public Map<String,String> getOptions()
      Deprecated.
      Use getOptionsMap() instead.
      Specified by:
      getOptions in interface V1.FlexPersistentVolumeSourceOrBuilder
    • getOptionsMap

      public Map<String,String> getOptionsMap()
       Optional: Extra command options if any.
       +optional
       
      map<string, string> options = 5;
      Specified by:
      getOptionsMap in interface V1.FlexPersistentVolumeSourceOrBuilder
    • getOptionsOrDefault

      public String getOptionsOrDefault(String key, String defaultValue)
       Optional: Extra command options if any.
       +optional
       
      map<string, string> options = 5;
      Specified by:
      getOptionsOrDefault in interface V1.FlexPersistentVolumeSourceOrBuilder
    • getOptionsOrThrow

      public String getOptionsOrThrow(String key)
       Optional: Extra command options if any.
       +optional
       
      map<string, string> options = 5;
      Specified by:
      getOptionsOrThrow in interface V1.FlexPersistentVolumeSourceOrBuilder
    • clearOptions

    • removeOptions

      public V1.FlexPersistentVolumeSource.Builder removeOptions(String key)
       Optional: Extra command options if any.
       +optional
       
      map<string, string> options = 5;
    • getMutableOptions

      @Deprecated public Map<String,String> getMutableOptions()
      Deprecated.
      Use alternate mutation accessors instead.
    • putOptions

      public V1.FlexPersistentVolumeSource.Builder putOptions(String key, String value)
       Optional: Extra command options if any.
       +optional
       
      map<string, string> options = 5;
    • putAllOptions

      public V1.FlexPersistentVolumeSource.Builder putAllOptions(Map<String,String> values)
       Optional: Extra command options if any.
       +optional
       
      map<string, string> options = 5;
    • setUnknownFields

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

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