Package io.kubernetes.client.proto
Class V1.VolumeMount.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Path within the container at which the volume should be mounted.mountPropagation determines how mounts are propagated from the host to container and the other way around.This must match the Name of a Volume.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Mounted read-only if true, read-write otherwise (false or unspecified).Path within the volume from which the container's volume should be mounted.Expanded path within the volume from which the container's volume should be mounted.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorPath within the container at which the volume should be mounted.com.google.protobuf.ByteStringPath within the container at which the volume should be mounted.mountPropagation determines how mounts are propagated from the host to container and the other way around.com.google.protobuf.ByteStringmountPropagation determines how mounts are propagated from the host to container and the other way around.getName()This must match the Name of a Volume.com.google.protobuf.ByteStringThis must match the Name of a Volume.booleanMounted read-only if true, read-write otherwise (false or unspecified).Path within the volume from which the container's volume should be mounted.com.google.protobuf.ByteStringPath within the volume from which the container's volume should be mounted.Expanded path within the volume from which the container's volume should be mounted.com.google.protobuf.ByteStringExpanded path within the volume from which the container's volume should be mounted.booleanPath within the container at which the volume should be mounted.booleanmountPropagation determines how mounts are propagated from the host to container and the other way around.booleanhasName()This must match the Name of a Volume.booleanMounted read-only if true, read-write otherwise (false or unspecified).booleanPath within the volume from which the container's volume should be mounted.booleanExpanded path within the volume from which the container's volume should be mounted.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(V1.VolumeMount other) final V1.VolumeMount.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setMountPath(String value) Path within the container at which the volume should be mounted.setMountPathBytes(com.google.protobuf.ByteString value) Path within the container at which the volume should be mounted.setMountPropagation(String value) mountPropagation determines how mounts are propagated from the host to container and the other way around.setMountPropagationBytes(com.google.protobuf.ByteString value) mountPropagation determines how mounts are propagated from the host to container and the other way around.This must match the Name of a Volume.setNameBytes(com.google.protobuf.ByteString value) This must match the Name of a Volume.setReadOnly(boolean value) Mounted read-only if true, read-write otherwise (false or unspecified).setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSubPath(String value) Path within the volume from which the container's volume should be mounted.setSubPathBytes(com.google.protobuf.ByteString value) Path within the volume from which the container's volume should be mounted.setSubPathExpr(String value) Expanded path within the volume from which the container's volume should be mounted.setSubPathExprBytes(com.google.protobuf.ByteString value) Expanded path within the volume from which the container's volume should be mounted.final V1.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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<V1.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<V1.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<V1.VolumeMount.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<V1.VolumeMount.Builder>
-
setField
public V1.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<V1.VolumeMount.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.VolumeMount.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.VolumeMount.Builder>
-
addRepeatedField
public V1.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<V1.VolumeMount.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1.VolumeMount.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasNamein interfaceV1.VolumeMountOrBuilder
-
getName
This must match the Name of a Volume.
optional string name = 1;- Specified by:
getNamein interfaceV1.VolumeMountOrBuilder
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()This must match the Name of a Volume.
optional string name = 1;- Specified by:
getNameBytesin interfaceV1.VolumeMountOrBuilder
-
setName
This must match the Name of a Volume.
optional string name = 1; -
clearName
This must match the Name of a Volume.
optional string name = 1; -
setNameBytes
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:
hasReadOnlyin interfaceV1.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:
getReadOnlyin interfaceV1.VolumeMountOrBuilder
-
setReadOnly
Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. +optional
optional bool readOnly = 2; -
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:
hasMountPathin interfaceV1.VolumeMountOrBuilder
-
getMountPath
Path within the container at which the volume should be mounted. Must not contain ':'.
optional string mountPath = 3;- Specified by:
getMountPathin interfaceV1.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:
getMountPathBytesin interfaceV1.VolumeMountOrBuilder
-
setMountPath
Path within the container at which the volume should be mounted. Must not contain ':'.
optional string mountPath = 3; -
clearMountPath
Path within the container at which the volume should be mounted. Must not contain ':'.
optional string mountPath = 3; -
setMountPathBytes
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:
hasSubPathin interfaceV1.VolumeMountOrBuilder
-
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 interfaceV1.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:
getSubPathBytesin interfaceV1.VolumeMountOrBuilder
-
setSubPath
Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). +optional
optional string subPath = 4; -
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
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:
hasMountPropagationin interfaceV1.VolumeMountOrBuilder
-
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:
getMountPropagationin interfaceV1.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:
getMountPropagationBytesin interfaceV1.VolumeMountOrBuilder
-
setMountPropagation
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
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
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:
hasSubPathExprin interfaceV1.VolumeMountOrBuilder
-
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 interfaceV1.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:
getSubPathExprBytesin interfaceV1.VolumeMountOrBuilder
-
setSubPathExpr
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
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.VolumeMount.Builder>
-
mergeUnknownFields
public final V1.VolumeMount.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.VolumeMount.Builder>
-