Class V1.VolumeMount.Builder

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

public static final class V1.VolumeMount.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.VolumeMount.Builder> implements V1.VolumeMountOrBuilder
 VolumeMount describes a mounting of a Volume within a container.
 
Protobuf type k8s.io.api.core.v1.VolumeMount
  • 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.VolumeMount.Builder>
    • clear

      public V1.VolumeMount.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.VolumeMount.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.VolumeMount.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

      public V1.VolumeMount.Builder mergeFrom(V1.VolumeMount other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.VolumeMount.Builder>
    • mergeFrom

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

      public boolean hasName()
       This must match the Name of a Volume.
       
      optional string name = 1;
      Specified by:
      hasName in interface V1.VolumeMountOrBuilder
    • getName

      public String getName()
       This must match the Name of a Volume.
       
      optional string name = 1;
      Specified by:
      getName in interface V1.VolumeMountOrBuilder
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       This must match the Name of a Volume.
       
      optional string name = 1;
      Specified by:
      getNameBytes in interface V1.VolumeMountOrBuilder
    • setName

      public V1.VolumeMount.Builder setName(String value)
       This must match the Name of a Volume.
       
      optional string name = 1;
    • clearName

      public V1.VolumeMount.Builder clearName()
       This must match the Name of a Volume.
       
      optional string name = 1;
    • setNameBytes

      public V1.VolumeMount.Builder setNameBytes(com.google.protobuf.ByteString value)
       This must match the Name of a Volume.
       
      optional string name = 1;
    • hasReadOnly

      public boolean hasReadOnly()
       Mounted read-only if true, read-write otherwise (false or unspecified).
       Defaults to false.
       +optional
       
      optional bool readOnly = 2;
      Specified by:
      hasReadOnly in interface V1.VolumeMountOrBuilder
    • getReadOnly

      public boolean getReadOnly()
       Mounted read-only if true, read-write otherwise (false or unspecified).
       Defaults to false.
       +optional
       
      optional bool readOnly = 2;
      Specified by:
      getReadOnly in interface V1.VolumeMountOrBuilder
    • setReadOnly

      public V1.VolumeMount.Builder setReadOnly(boolean value)
       Mounted read-only if true, read-write otherwise (false or unspecified).
       Defaults to false.
       +optional
       
      optional bool readOnly = 2;
    • clearReadOnly

      public V1.VolumeMount.Builder clearReadOnly()
       Mounted read-only if true, read-write otherwise (false or unspecified).
       Defaults to false.
       +optional
       
      optional bool readOnly = 2;
    • hasMountPath

      public boolean hasMountPath()
       Path within the container at which the volume should be mounted.  Must
       not contain ':'.
       
      optional string mountPath = 3;
      Specified by:
      hasMountPath in interface V1.VolumeMountOrBuilder
    • getMountPath

      public String getMountPath()
       Path within the container at which the volume should be mounted.  Must
       not contain ':'.
       
      optional string mountPath = 3;
      Specified by:
      getMountPath in interface V1.VolumeMountOrBuilder
    • getMountPathBytes

      public com.google.protobuf.ByteString getMountPathBytes()
       Path within the container at which the volume should be mounted.  Must
       not contain ':'.
       
      optional string mountPath = 3;
      Specified by:
      getMountPathBytes in interface V1.VolumeMountOrBuilder
    • setMountPath

      public V1.VolumeMount.Builder setMountPath(String value)
       Path within the container at which the volume should be mounted.  Must
       not contain ':'.
       
      optional string mountPath = 3;
    • clearMountPath

      public V1.VolumeMount.Builder clearMountPath()
       Path within the container at which the volume should be mounted.  Must
       not contain ':'.
       
      optional string mountPath = 3;
    • setMountPathBytes

      public V1.VolumeMount.Builder setMountPathBytes(com.google.protobuf.ByteString value)
       Path within the container at which the volume should be mounted.  Must
       not contain ':'.
       
      optional string mountPath = 3;
    • hasSubPath

      public boolean hasSubPath()
       Path within the volume from which the container's volume should be mounted.
       Defaults to "" (volume's root).
       +optional
       
      optional string subPath = 4;
      Specified by:
      hasSubPath in interface V1.VolumeMountOrBuilder
    • getSubPath

      public String getSubPath()
       Path within the volume from which the container's volume should be mounted.
       Defaults to "" (volume's root).
       +optional
       
      optional string subPath = 4;
      Specified by:
      getSubPath in interface V1.VolumeMountOrBuilder
    • getSubPathBytes

      public com.google.protobuf.ByteString getSubPathBytes()
       Path within the volume from which the container's volume should be mounted.
       Defaults to "" (volume's root).
       +optional
       
      optional string subPath = 4;
      Specified by:
      getSubPathBytes in interface V1.VolumeMountOrBuilder
    • setSubPath

      public V1.VolumeMount.Builder setSubPath(String value)
       Path within the volume from which the container's volume should be mounted.
       Defaults to "" (volume's root).
       +optional
       
      optional string subPath = 4;
    • clearSubPath

      public V1.VolumeMount.Builder clearSubPath()
       Path within the volume from which the container's volume should be mounted.
       Defaults to "" (volume's root).
       +optional
       
      optional string subPath = 4;
    • setSubPathBytes

      public V1.VolumeMount.Builder setSubPathBytes(com.google.protobuf.ByteString value)
       Path within the volume from which the container's volume should be mounted.
       Defaults to "" (volume's root).
       +optional
       
      optional string subPath = 4;
    • hasMountPropagation

      public boolean hasMountPropagation()
       mountPropagation determines how mounts are propagated from the host
       to container and the other way around.
       When not set, MountPropagationNone is used.
       This field is beta in 1.10.
       +optional
       
      optional string mountPropagation = 5;
      Specified by:
      hasMountPropagation in interface V1.VolumeMountOrBuilder
    • getMountPropagation

      public String getMountPropagation()
       mountPropagation determines how mounts are propagated from the host
       to container and the other way around.
       When not set, MountPropagationNone is used.
       This field is beta in 1.10.
       +optional
       
      optional string mountPropagation = 5;
      Specified by:
      getMountPropagation in interface V1.VolumeMountOrBuilder
    • getMountPropagationBytes

      public com.google.protobuf.ByteString getMountPropagationBytes()
       mountPropagation determines how mounts are propagated from the host
       to container and the other way around.
       When not set, MountPropagationNone is used.
       This field is beta in 1.10.
       +optional
       
      optional string mountPropagation = 5;
      Specified by:
      getMountPropagationBytes in interface V1.VolumeMountOrBuilder
    • setMountPropagation

      public V1.VolumeMount.Builder setMountPropagation(String value)
       mountPropagation determines how mounts are propagated from the host
       to container and the other way around.
       When not set, MountPropagationNone is used.
       This field is beta in 1.10.
       +optional
       
      optional string mountPropagation = 5;
    • clearMountPropagation

      public V1.VolumeMount.Builder clearMountPropagation()
       mountPropagation determines how mounts are propagated from the host
       to container and the other way around.
       When not set, MountPropagationNone is used.
       This field is beta in 1.10.
       +optional
       
      optional string mountPropagation = 5;
    • setMountPropagationBytes

      public V1.VolumeMount.Builder setMountPropagationBytes(com.google.protobuf.ByteString value)
       mountPropagation determines how mounts are propagated from the host
       to container and the other way around.
       When not set, MountPropagationNone is used.
       This field is beta in 1.10.
       +optional
       
      optional string mountPropagation = 5;
    • hasSubPathExpr

      public boolean hasSubPathExpr()
       Expanded path within the volume from which the container's volume should be mounted.
       Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
       Defaults to "" (volume's root).
       SubPathExpr and SubPath are mutually exclusive.
       +optional
       
      optional string subPathExpr = 6;
      Specified by:
      hasSubPathExpr in interface V1.VolumeMountOrBuilder
    • getSubPathExpr

      public String getSubPathExpr()
       Expanded path within the volume from which the container's volume should be mounted.
       Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
       Defaults to "" (volume's root).
       SubPathExpr and SubPath are mutually exclusive.
       +optional
       
      optional string subPathExpr = 6;
      Specified by:
      getSubPathExpr in interface V1.VolumeMountOrBuilder
    • getSubPathExprBytes

      public com.google.protobuf.ByteString getSubPathExprBytes()
       Expanded path within the volume from which the container's volume should be mounted.
       Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
       Defaults to "" (volume's root).
       SubPathExpr and SubPath are mutually exclusive.
       +optional
       
      optional string subPathExpr = 6;
      Specified by:
      getSubPathExprBytes in interface V1.VolumeMountOrBuilder
    • setSubPathExpr

      public V1.VolumeMount.Builder setSubPathExpr(String value)
       Expanded path within the volume from which the container's volume should be mounted.
       Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
       Defaults to "" (volume's root).
       SubPathExpr and SubPath are mutually exclusive.
       +optional
       
      optional string subPathExpr = 6;
    • clearSubPathExpr

      public V1.VolumeMount.Builder clearSubPathExpr()
       Expanded path within the volume from which the container's volume should be mounted.
       Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
       Defaults to "" (volume's root).
       SubPathExpr and SubPath are mutually exclusive.
       +optional
       
      optional string subPathExpr = 6;
    • setSubPathExprBytes

      public V1.VolumeMount.Builder setSubPathExprBytes(com.google.protobuf.ByteString value)
       Expanded path within the volume from which the container's volume should be mounted.
       Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
       Defaults to "" (volume's root).
       SubPathExpr and SubPath are mutually exclusive.
       +optional
       
      optional string subPathExpr = 6;
    • setUnknownFields

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

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