Package io.kubernetes.client.proto
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 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.Descriptor
com.google.protobuf.Descriptors.Descriptor
Path within the container at which the volume should be mounted.com.google.protobuf.ByteString
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.com.google.protobuf.ByteString
mountPropagation 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.ByteString
This must match the Name of a Volume.boolean
Mounted 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.ByteString
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.com.google.protobuf.ByteString
Expanded path within the volume from which the container's volume should be mounted.boolean
Path within the container at which the volume should be mounted.boolean
mountPropagation determines how mounts are propagated from the host to container and the other way around.boolean
hasName()
This must match the Name of a Volume.boolean
Mounted read-only if true, read-write otherwise (false or unspecified).boolean
Path within the volume from which the container's volume should be mounted.boolean
Expanded path within the volume from which the container's volume should be mounted.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(V1.VolumeMount other) final V1.VolumeMount.Builder
mergeUnknownFields
(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.Builder
setUnknownFields
(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, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.VolumeMount.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.VolumeMount.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.VolumeMount.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.VolumeMount.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.VolumeMount.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.VolumeMount.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1.VolumeMount.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasName
in interfaceV1.VolumeMountOrBuilder
-
getName
This must match the Name of a Volume.
optional string name = 1;
- Specified by:
getName
in interfaceV1.VolumeMountOrBuilder
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()This must match the Name of a Volume.
optional string name = 1;
- Specified by:
getNameBytes
in 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:
hasReadOnly
in 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:
getReadOnly
in 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:
hasMountPath
in interfaceV1.VolumeMountOrBuilder
-
getMountPath
Path within the container at which the volume should be mounted. Must not contain ':'.
optional string mountPath = 3;
- Specified by:
getMountPath
in 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:
getMountPathBytes
in 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:
hasSubPath
in 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:
getSubPath
in 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:
getSubPathBytes
in 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:
hasMountPropagation
in 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:
getMountPropagation
in 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:
getMountPropagationBytes
in 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:
hasSubPathExpr
in 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:
getSubPathExpr
in 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:
getSubPathExprBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.VolumeMount.Builder>
-
mergeUnknownFields
public final V1.VolumeMount.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.VolumeMount.Builder>
-