Package io.kubernetes.client.proto
Class V1.CSIVolumeSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>
io.kubernetes.client.proto.V1.CSIVolumeSource.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1.CSIVolumeSourceOrBuilder,Cloneable
- Enclosing class:
- V1.CSIVolumeSource
public static final class V1.CSIVolumeSource.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>
implements V1.CSIVolumeSourceOrBuilder
Represents a source location of a volume to mount, managed by an external CSI driverProtobuf type
k8s.io.api.core.v1.CSIVolumeSource-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Driver is the name of the CSI driver that handles this volume.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Filesystem type to mount.NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Specifies a read-only configuration for the volume.clone()booleanVolumeAttributes stores driver-specific properties that are passed to the CSI driver.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDriver is the name of the CSI driver that handles this volume.com.google.protobuf.ByteStringDriver is the name of the CSI driver that handles this volume.Filesystem type to mount.com.google.protobuf.ByteStringFilesystem type to mount.Deprecated.NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls.NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls.NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls.booleanSpecifies a read-only configuration for the volume.Deprecated.intVolumeAttributes stores driver-specific properties that are passed to the CSI driver.VolumeAttributes stores driver-specific properties that are passed to the CSI driver.getVolumeAttributesOrDefault(String key, String defaultValue) VolumeAttributes stores driver-specific properties that are passed to the CSI driver.VolumeAttributes stores driver-specific properties that are passed to the CSI driver.booleanDriver is the name of the CSI driver that handles this volume.booleanFilesystem type to mount.booleanNodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls.booleanSpecifies a read-only configuration for the volume.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(V1.CSIVolumeSource other) NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllVolumeAttributes(Map<String, String> values) VolumeAttributes stores driver-specific properties that are passed to the CSI driver.putVolumeAttributes(String key, String value) VolumeAttributes stores driver-specific properties that are passed to the CSI driver.VolumeAttributes stores driver-specific properties that are passed to the CSI driver.Driver is the name of the CSI driver that handles this volume.setDriverBytes(com.google.protobuf.ByteString value) Driver is the name of the CSI driver that handles this volume.Filesystem type to mount.setFsTypeBytes(com.google.protobuf.ByteString value) Filesystem type to mount.NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls.setNodePublishSecretRef(V1.LocalObjectReference.Builder builderForValue) NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls.setReadOnly(boolean value) Specifies a read-only configuration for the volume.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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, 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() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.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.CSIVolumeSource.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.CSIVolumeSource.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.CSIVolumeSource.Builder>
-
setField
public V1.CSIVolumeSource.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.CSIVolumeSource.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>
-
setRepeatedField
public V1.CSIVolumeSource.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.CSIVolumeSource.Builder>
-
addRepeatedField
public V1.CSIVolumeSource.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.CSIVolumeSource.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1.CSIVolumeSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>
-
mergeFrom
public V1.CSIVolumeSource.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.CSIVolumeSource.Builder>- Throws:
IOException
-
hasDriver
public boolean hasDriver()Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.
optional string driver = 1;- Specified by:
hasDriverin interfaceV1.CSIVolumeSourceOrBuilder
-
getDriver
Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.
optional string driver = 1;- Specified by:
getDriverin interfaceV1.CSIVolumeSourceOrBuilder
-
getDriverBytes
public com.google.protobuf.ByteString getDriverBytes()Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.
optional string driver = 1;- Specified by:
getDriverBytesin interfaceV1.CSIVolumeSourceOrBuilder
-
setDriver
Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.
optional string driver = 1; -
clearDriver
Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.
optional string driver = 1; -
setDriverBytes
Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.
optional string driver = 1; -
hasReadOnly
public boolean hasReadOnly()Specifies a read-only configuration for the volume. Defaults to false (read/write). +optional
optional bool readOnly = 2;- Specified by:
hasReadOnlyin interfaceV1.CSIVolumeSourceOrBuilder
-
getReadOnly
public boolean getReadOnly()Specifies a read-only configuration for the volume. Defaults to false (read/write). +optional
optional bool readOnly = 2;- Specified by:
getReadOnlyin interfaceV1.CSIVolumeSourceOrBuilder
-
setReadOnly
Specifies a read-only configuration for the volume. Defaults to false (read/write). +optional
optional bool readOnly = 2; -
clearReadOnly
Specifies a read-only configuration for the volume. Defaults to false (read/write). +optional
optional bool readOnly = 2; -
hasFsType
public boolean hasFsType()Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. +optional
optional string fsType = 3;- Specified by:
hasFsTypein interfaceV1.CSIVolumeSourceOrBuilder
-
getFsType
Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. +optional
optional string fsType = 3;- Specified by:
getFsTypein interfaceV1.CSIVolumeSourceOrBuilder
-
getFsTypeBytes
public com.google.protobuf.ByteString getFsTypeBytes()Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. +optional
optional string fsType = 3;- Specified by:
getFsTypeBytesin interfaceV1.CSIVolumeSourceOrBuilder
-
setFsType
Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. +optional
optional string fsType = 3; -
clearFsType
Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. +optional
optional string fsType = 3; -
setFsTypeBytes
Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. +optional
optional string fsType = 3; -
getVolumeAttributesCount
public int getVolumeAttributesCount()Description copied from interface:V1.CSIVolumeSourceOrBuilderVolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. +optional
map<string, string> volumeAttributes = 4;- Specified by:
getVolumeAttributesCountin interfaceV1.CSIVolumeSourceOrBuilder
-
containsVolumeAttributes
VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. +optional
map<string, string> volumeAttributes = 4;- Specified by:
containsVolumeAttributesin interfaceV1.CSIVolumeSourceOrBuilder
-
getVolumeAttributes
Deprecated.UsegetVolumeAttributesMap()instead.- Specified by:
getVolumeAttributesin interfaceV1.CSIVolumeSourceOrBuilder
-
getVolumeAttributesMap
VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. +optional
map<string, string> volumeAttributes = 4;- Specified by:
getVolumeAttributesMapin interfaceV1.CSIVolumeSourceOrBuilder
-
getVolumeAttributesOrDefault
VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. +optional
map<string, string> volumeAttributes = 4;- Specified by:
getVolumeAttributesOrDefaultin interfaceV1.CSIVolumeSourceOrBuilder
-
getVolumeAttributesOrThrow
VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. +optional
map<string, string> volumeAttributes = 4;- Specified by:
getVolumeAttributesOrThrowin interfaceV1.CSIVolumeSourceOrBuilder
-
clearVolumeAttributes
-
removeVolumeAttributes
VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. +optional
map<string, string> volumeAttributes = 4; -
getMutableVolumeAttributes
Deprecated.Use alternate mutation accessors instead. -
putVolumeAttributes
VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. +optional
map<string, string> volumeAttributes = 4; -
putAllVolumeAttributes
VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. +optional
map<string, string> volumeAttributes = 4; -
hasNodePublishSecretRef
public boolean hasNodePublishSecretRef()NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. +optional
optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5;- Specified by:
hasNodePublishSecretRefin interfaceV1.CSIVolumeSourceOrBuilder
-
getNodePublishSecretRef
NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. +optional
optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5;- Specified by:
getNodePublishSecretRefin interfaceV1.CSIVolumeSourceOrBuilder
-
setNodePublishSecretRef
NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. +optional
optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; -
setNodePublishSecretRef
public V1.CSIVolumeSource.Builder setNodePublishSecretRef(V1.LocalObjectReference.Builder builderForValue) NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. +optional
optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; -
mergeNodePublishSecretRef
NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. +optional
optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; -
clearNodePublishSecretRef
NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. +optional
optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; -
getNodePublishSecretRefBuilder
NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. +optional
optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; -
getNodePublishSecretRefOrBuilder
NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. +optional
optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5;- Specified by:
getNodePublishSecretRefOrBuilderin interfaceV1.CSIVolumeSourceOrBuilder
-
setUnknownFields
public final V1.CSIVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>
-
mergeUnknownFields
public final V1.CSIVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>
-