Package k8s.io.api.core.v1
Class Generated.VolumeMount.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
-
- k8s.io.api.core.v1.Generated.VolumeMount.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.VolumeMountOrBuilder
- Enclosing class:
- Generated.VolumeMount
public static final class Generated.VolumeMount.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder> implements Generated.VolumeMountOrBuilder
VolumeMount describes a mounting of a Volume within a container.
Protobuf typek8s.io.api.core.v1.VolumeMount
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.VolumeMount.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.VolumeMountbuild()Generated.VolumeMountbuildPartial()Generated.VolumeMount.Builderclear()Generated.VolumeMount.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.VolumeMount.BuilderclearMountPath()Path within the container at which the volume should be mounted.Generated.VolumeMount.BuilderclearMountPropagation()mountPropagation determines how mounts are propagated from the host to container and the other way around.Generated.VolumeMount.BuilderclearName()This must match the Name of a Volume.Generated.VolumeMount.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.VolumeMount.BuilderclearReadOnly()Mounted read-only if true, read-write otherwise (false or unspecified).Generated.VolumeMount.BuilderclearRecursiveReadOnly()RecursiveReadOnly specifies whether read-only mounts should be handled recursively.Generated.VolumeMount.BuilderclearSubPath()Path within the volume from which the container's volume should be mounted.Generated.VolumeMount.BuilderclearSubPathExpr()Expanded path within the volume from which the container's volume should be mounted.Generated.VolumeMount.Builderclone()Generated.VolumeMountgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetMountPath()Path within the container at which the volume should be mounted.com.google.protobuf.ByteStringgetMountPathBytes()Path within the container at which the volume should be mounted.StringgetMountPropagation()mountPropagation determines how mounts are propagated from the host to container and the other way around.com.google.protobuf.ByteStringgetMountPropagationBytes()mountPropagation determines how mounts are propagated from the host to container and the other way around.StringgetName()This must match the Name of a Volume.com.google.protobuf.ByteStringgetNameBytes()This must match the Name of a Volume.booleangetReadOnly()Mounted read-only if true, read-write otherwise (false or unspecified).StringgetRecursiveReadOnly()RecursiveReadOnly specifies whether read-only mounts should be handled recursively.com.google.protobuf.ByteStringgetRecursiveReadOnlyBytes()RecursiveReadOnly specifies whether read-only mounts should be handled recursively.StringgetSubPath()Path within the volume from which the container's volume should be mounted.com.google.protobuf.ByteStringgetSubPathBytes()Path within the volume from which the container's volume should be mounted.StringgetSubPathExpr()Expanded path within the volume from which the container's volume should be mounted.com.google.protobuf.ByteStringgetSubPathExprBytes()Expanded path within the volume from which the container's volume should be mounted.booleanhasMountPath()Path within the container at which the volume should be mounted.booleanhasMountPropagation()mountPropagation determines how mounts are propagated from the host to container and the other way around.booleanhasName()This must match the Name of a Volume.booleanhasReadOnly()Mounted read-only if true, read-write otherwise (false or unspecified).booleanhasRecursiveReadOnly()RecursiveReadOnly specifies whether read-only mounts should be handled recursively.booleanhasSubPath()Path within the volume from which the container's volume should be mounted.booleanhasSubPathExpr()Expanded path within the volume from which the container's volume should be mounted.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.VolumeMount.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.VolumeMount.BuildermergeFrom(com.google.protobuf.Message other)Generated.VolumeMount.BuildermergeFrom(Generated.VolumeMount other)Generated.VolumeMount.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.VolumeMount.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.VolumeMount.BuildersetMountPath(String value)Path within the container at which the volume should be mounted.Generated.VolumeMount.BuildersetMountPathBytes(com.google.protobuf.ByteString value)Path within the container at which the volume should be mounted.Generated.VolumeMount.BuildersetMountPropagation(String value)mountPropagation determines how mounts are propagated from the host to container and the other way around.Generated.VolumeMount.BuildersetMountPropagationBytes(com.google.protobuf.ByteString value)mountPropagation determines how mounts are propagated from the host to container and the other way around.Generated.VolumeMount.BuildersetName(String value)This must match the Name of a Volume.Generated.VolumeMount.BuildersetNameBytes(com.google.protobuf.ByteString value)This must match the Name of a Volume.Generated.VolumeMount.BuildersetReadOnly(boolean value)Mounted read-only if true, read-write otherwise (false or unspecified).Generated.VolumeMount.BuildersetRecursiveReadOnly(String value)RecursiveReadOnly specifies whether read-only mounts should be handled recursively.Generated.VolumeMount.BuildersetRecursiveReadOnlyBytes(com.google.protobuf.ByteString value)RecursiveReadOnly specifies whether read-only mounts should be handled recursively.Generated.VolumeMount.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.VolumeMount.BuildersetSubPath(String value)Path within the volume from which the container's volume should be mounted.Generated.VolumeMount.BuildersetSubPathBytes(com.google.protobuf.ByteString value)Path within the volume from which the container's volume should be mounted.Generated.VolumeMount.BuildersetSubPathExpr(String value)Expanded path within the volume from which the container's volume should be mounted.Generated.VolumeMount.BuildersetSubPathExprBytes(com.google.protobuf.ByteString value)Expanded path within the volume from which the container's volume should be mounted.Generated.VolumeMount.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
-
clear
public Generated.VolumeMount.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
-
getDefaultInstanceForType
public Generated.VolumeMount getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.VolumeMount build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.VolumeMount buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.VolumeMount.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
-
setField
public Generated.VolumeMount.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
-
clearField
public Generated.VolumeMount.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
-
clearOneof
public Generated.VolumeMount.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
-
setRepeatedField
public Generated.VolumeMount.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
-
addRepeatedField
public Generated.VolumeMount.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
-
mergeFrom
public Generated.VolumeMount.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.VolumeMount.Builder>
-
mergeFrom
public Generated.VolumeMount.Builder mergeFrom(Generated.VolumeMount other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
-
mergeFrom
public Generated.VolumeMount.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.VolumeMount.Builder>- Throws:
IOException
-
hasName
public boolean hasName()
This must match the Name of a Volume.
optional string name = 1;- Specified by:
hasNamein interfaceGenerated.VolumeMountOrBuilder- Returns:
- Whether the name field is set.
-
getName
public String getName()
This must match the Name of a Volume.
optional string name = 1;- Specified by:
getNamein interfaceGenerated.VolumeMountOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
This must match the Name of a Volume.
optional string name = 1;- Specified by:
getNameBytesin interfaceGenerated.VolumeMountOrBuilder- Returns:
- The bytes for name.
-
setName
public Generated.VolumeMount.Builder setName(String value)
This must match the Name of a Volume.
optional string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Generated.VolumeMount.Builder clearName()
This must match the Name of a Volume.
optional string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Generated.VolumeMount.Builder setNameBytes(com.google.protobuf.ByteString value)
This must match the Name of a Volume.
optional string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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:
hasReadOnlyin interfaceGenerated.VolumeMountOrBuilder- Returns:
- Whether the readOnly field is set.
-
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:
getReadOnlyin interfaceGenerated.VolumeMountOrBuilder- Returns:
- The readOnly.
-
setReadOnly
public Generated.VolumeMount.Builder setReadOnly(boolean value)
Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. +optional
optional bool readOnly = 2;- Parameters:
value- The readOnly to set.- Returns:
- This builder for chaining.
-
clearReadOnly
public Generated.VolumeMount.Builder clearReadOnly()
Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. +optional
optional bool readOnly = 2;- Returns:
- This builder for chaining.
-
hasRecursiveReadOnly
public boolean hasRecursiveReadOnly()
RecursiveReadOnly specifies whether read-only mounts should be handled recursively. If ReadOnly is false, this field has no meaning and must be unspecified. If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). If this field is not specified, it is treated as an equivalent of Disabled. +featureGate=RecursiveReadOnlyMounts +optional
optional string recursiveReadOnly = 7;- Specified by:
hasRecursiveReadOnlyin interfaceGenerated.VolumeMountOrBuilder- Returns:
- Whether the recursiveReadOnly field is set.
-
getRecursiveReadOnly
public String getRecursiveReadOnly()
RecursiveReadOnly specifies whether read-only mounts should be handled recursively. If ReadOnly is false, this field has no meaning and must be unspecified. If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). If this field is not specified, it is treated as an equivalent of Disabled. +featureGate=RecursiveReadOnlyMounts +optional
optional string recursiveReadOnly = 7;- Specified by:
getRecursiveReadOnlyin interfaceGenerated.VolumeMountOrBuilder- Returns:
- The recursiveReadOnly.
-
getRecursiveReadOnlyBytes
public com.google.protobuf.ByteString getRecursiveReadOnlyBytes()
RecursiveReadOnly specifies whether read-only mounts should be handled recursively. If ReadOnly is false, this field has no meaning and must be unspecified. If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). If this field is not specified, it is treated as an equivalent of Disabled. +featureGate=RecursiveReadOnlyMounts +optional
optional string recursiveReadOnly = 7;- Specified by:
getRecursiveReadOnlyBytesin interfaceGenerated.VolumeMountOrBuilder- Returns:
- The bytes for recursiveReadOnly.
-
setRecursiveReadOnly
public Generated.VolumeMount.Builder setRecursiveReadOnly(String value)
RecursiveReadOnly specifies whether read-only mounts should be handled recursively. If ReadOnly is false, this field has no meaning and must be unspecified. If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). If this field is not specified, it is treated as an equivalent of Disabled. +featureGate=RecursiveReadOnlyMounts +optional
optional string recursiveReadOnly = 7;- Parameters:
value- The recursiveReadOnly to set.- Returns:
- This builder for chaining.
-
clearRecursiveReadOnly
public Generated.VolumeMount.Builder clearRecursiveReadOnly()
RecursiveReadOnly specifies whether read-only mounts should be handled recursively. If ReadOnly is false, this field has no meaning and must be unspecified. If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). If this field is not specified, it is treated as an equivalent of Disabled. +featureGate=RecursiveReadOnlyMounts +optional
optional string recursiveReadOnly = 7;- Returns:
- This builder for chaining.
-
setRecursiveReadOnlyBytes
public Generated.VolumeMount.Builder setRecursiveReadOnlyBytes(com.google.protobuf.ByteString value)
RecursiveReadOnly specifies whether read-only mounts should be handled recursively. If ReadOnly is false, this field has no meaning and must be unspecified. If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). If this field is not specified, it is treated as an equivalent of Disabled. +featureGate=RecursiveReadOnlyMounts +optional
optional string recursiveReadOnly = 7;- Parameters:
value- The bytes for recursiveReadOnly to set.- Returns:
- This builder for chaining.
-
hasMountPath
public boolean hasMountPath()
Path within the container at which the volume should be mounted. Must not contain ':'.
optional string mountPath = 3;- Specified by:
hasMountPathin interfaceGenerated.VolumeMountOrBuilder- Returns:
- Whether the mountPath field is set.
-
getMountPath
public String getMountPath()
Path within the container at which the volume should be mounted. Must not contain ':'.
optional string mountPath = 3;- Specified by:
getMountPathin interfaceGenerated.VolumeMountOrBuilder- Returns:
- The mountPath.
-
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:
getMountPathBytesin interfaceGenerated.VolumeMountOrBuilder- Returns:
- The bytes for mountPath.
-
setMountPath
public Generated.VolumeMount.Builder setMountPath(String value)
Path within the container at which the volume should be mounted. Must not contain ':'.
optional string mountPath = 3;- Parameters:
value- The mountPath to set.- Returns:
- This builder for chaining.
-
clearMountPath
public Generated.VolumeMount.Builder clearMountPath()
Path within the container at which the volume should be mounted. Must not contain ':'.
optional string mountPath = 3;- Returns:
- This builder for chaining.
-
setMountPathBytes
public Generated.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;- Parameters:
value- The bytes for mountPath to set.- Returns:
- This builder for chaining.
-
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:
hasSubPathin interfaceGenerated.VolumeMountOrBuilder- Returns:
- Whether the subPath field is set.
-
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:
getSubPathin interfaceGenerated.VolumeMountOrBuilder- Returns:
- The subPath.
-
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:
getSubPathBytesin interfaceGenerated.VolumeMountOrBuilder- Returns:
- The bytes for subPath.
-
setSubPath
public Generated.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;- Parameters:
value- The subPath to set.- Returns:
- This builder for chaining.
-
clearSubPath
public Generated.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;- Returns:
- This builder for chaining.
-
setSubPathBytes
public Generated.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;- Parameters:
value- The bytes for subPath to set.- Returns:
- This builder for chaining.
-
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. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). +optional
optional string mountPropagation = 5;- Specified by:
hasMountPropagationin interfaceGenerated.VolumeMountOrBuilder- Returns:
- Whether the mountPropagation field is set.
-
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. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). +optional
optional string mountPropagation = 5;- Specified by:
getMountPropagationin interfaceGenerated.VolumeMountOrBuilder- Returns:
- The mountPropagation.
-
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. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). +optional
optional string mountPropagation = 5;- Specified by:
getMountPropagationBytesin interfaceGenerated.VolumeMountOrBuilder- Returns:
- The bytes for mountPropagation.
-
setMountPropagation
public Generated.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. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). +optional
optional string mountPropagation = 5;- Parameters:
value- The mountPropagation to set.- Returns:
- This builder for chaining.
-
clearMountPropagation
public Generated.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. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). +optional
optional string mountPropagation = 5;- Returns:
- This builder for chaining.
-
setMountPropagationBytes
public Generated.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. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). +optional
optional string mountPropagation = 5;- Parameters:
value- The bytes for mountPropagation to set.- Returns:
- This builder for chaining.
-
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:
hasSubPathExprin interfaceGenerated.VolumeMountOrBuilder- Returns:
- Whether the subPathExpr field is set.
-
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:
getSubPathExprin interfaceGenerated.VolumeMountOrBuilder- Returns:
- The subPathExpr.
-
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:
getSubPathExprBytesin interfaceGenerated.VolumeMountOrBuilder- Returns:
- The bytes for subPathExpr.
-
setSubPathExpr
public Generated.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;- Parameters:
value- The subPathExpr to set.- Returns:
- This builder for chaining.
-
clearSubPathExpr
public Generated.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;- Returns:
- This builder for chaining.
-
setSubPathExprBytes
public Generated.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;- Parameters:
value- The bytes for subPathExpr to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.VolumeMount.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
-
mergeUnknownFields
public final Generated.VolumeMount.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
-
-