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| Modifier and Type | Method and Description |
|---|---|
V1.CSIVolumeSource.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.CSIVolumeSource |
build() |
V1.CSIVolumeSource |
buildPartial() |
V1.CSIVolumeSource.Builder |
clear() |
V1.CSIVolumeSource.Builder |
clearDriver()
Driver is the name of the CSI driver that handles this volume.
|
V1.CSIVolumeSource.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1.CSIVolumeSource.Builder |
clearFsType()
Filesystem type to mount.
|
V1.CSIVolumeSource.Builder |
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.
|
V1.CSIVolumeSource.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1.CSIVolumeSource.Builder |
clearReadOnly()
Specifies a read-only configuration for the volume.
|
V1.CSIVolumeSource.Builder |
clearVolumeAttributes() |
V1.CSIVolumeSource.Builder |
clone() |
boolean |
containsVolumeAttributes(String key)
VolumeAttributes stores driver-specific properties that are passed to the CSI
driver.
|
V1.CSIVolumeSource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDriver()
Driver is the name of the CSI driver that handles this volume.
|
com.google.protobuf.ByteString |
getDriverBytes()
Driver is the name of the CSI driver that handles this volume.
|
String |
getFsType()
Filesystem type to mount.
|
com.google.protobuf.ByteString |
getFsTypeBytes()
Filesystem type to mount.
|
Map<String,String> |
getMutableVolumeAttributes()
Deprecated.
|
V1.LocalObjectReference |
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.
|
V1.LocalObjectReference.Builder |
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.
|
V1.LocalObjectReferenceOrBuilder |
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.
|
boolean |
getReadOnly()
Specifies a read-only configuration for the volume.
|
Map<String,String> |
getVolumeAttributes()
Deprecated.
|
int |
getVolumeAttributesCount()
VolumeAttributes stores driver-specific properties that are passed to the CSI
driver.
|
Map<String,String> |
getVolumeAttributesMap()
VolumeAttributes stores driver-specific properties that are passed to the CSI
driver.
|
String |
getVolumeAttributesOrDefault(String key,
String defaultValue)
VolumeAttributes stores driver-specific properties that are passed to the CSI
driver.
|
String |
getVolumeAttributesOrThrow(String key)
VolumeAttributes stores driver-specific properties that are passed to the CSI
driver.
|
boolean |
hasDriver()
Driver is the name of the CSI driver that handles this volume.
|
boolean |
hasFsType()
Filesystem type to mount.
|
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.
|
boolean |
hasReadOnly()
Specifies a read-only configuration for the volume.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
V1.CSIVolumeSource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1.CSIVolumeSource.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1.CSIVolumeSource.Builder |
mergeFrom(V1.CSIVolumeSource other) |
V1.CSIVolumeSource.Builder |
mergeNodePublishSecretRef(V1.LocalObjectReference value)
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.
|
V1.CSIVolumeSource.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.CSIVolumeSource.Builder |
putAllVolumeAttributes(Map<String,String> values)
VolumeAttributes stores driver-specific properties that are passed to the CSI
driver.
|
V1.CSIVolumeSource.Builder |
putVolumeAttributes(String key,
String value)
VolumeAttributes stores driver-specific properties that are passed to the CSI
driver.
|
V1.CSIVolumeSource.Builder |
removeVolumeAttributes(String key)
VolumeAttributes stores driver-specific properties that are passed to the CSI
driver.
|
V1.CSIVolumeSource.Builder |
setDriver(String value)
Driver is the name of the CSI driver that handles this volume.
|
V1.CSIVolumeSource.Builder |
setDriverBytes(com.google.protobuf.ByteString value)
Driver is the name of the CSI driver that handles this volume.
|
V1.CSIVolumeSource.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.CSIVolumeSource.Builder |
setFsType(String value)
Filesystem type to mount.
|
V1.CSIVolumeSource.Builder |
setFsTypeBytes(com.google.protobuf.ByteString value)
Filesystem type to mount.
|
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.
|
V1.CSIVolumeSource.Builder |
setNodePublishSecretRef(V1.LocalObjectReference value)
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.
|
V1.CSIVolumeSource.Builder |
setReadOnly(boolean value)
Specifies a read-only configuration for the volume.
|
V1.CSIVolumeSource.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1.CSIVolumeSource.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>public V1.CSIVolumeSource.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>public V1.CSIVolumeSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1.CSIVolumeSource build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1.CSIVolumeSource buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1.CSIVolumeSource.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>public V1.CSIVolumeSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>public V1.CSIVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>public V1.CSIVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>public V1.CSIVolumeSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>public V1.CSIVolumeSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>public V1.CSIVolumeSource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.CSIVolumeSource.Builder>public V1.CSIVolumeSource.Builder mergeFrom(V1.CSIVolumeSource other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>public V1.CSIVolumeSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.CSIVolumeSource.Builder>IOExceptionpublic 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;hasDriver in interface V1.CSIVolumeSourceOrBuilderpublic String 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;getDriver in interface V1.CSIVolumeSourceOrBuilderpublic 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;getDriverBytes in interface V1.CSIVolumeSourceOrBuilderpublic V1.CSIVolumeSource.Builder setDriver(String value)
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;public V1.CSIVolumeSource.Builder 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;public V1.CSIVolumeSource.Builder setDriverBytes(com.google.protobuf.ByteString value)
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;public boolean hasReadOnly()
Specifies a read-only configuration for the volume. Defaults to false (read/write). +optional
optional bool readOnly = 2;hasReadOnly in interface V1.CSIVolumeSourceOrBuilderpublic boolean getReadOnly()
Specifies a read-only configuration for the volume. Defaults to false (read/write). +optional
optional bool readOnly = 2;getReadOnly in interface V1.CSIVolumeSourceOrBuilderpublic V1.CSIVolumeSource.Builder setReadOnly(boolean value)
Specifies a read-only configuration for the volume. Defaults to false (read/write). +optional
optional bool readOnly = 2;public V1.CSIVolumeSource.Builder clearReadOnly()
Specifies a read-only configuration for the volume. Defaults to false (read/write). +optional
optional bool readOnly = 2;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;hasFsType in interface V1.CSIVolumeSourceOrBuilderpublic String 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;getFsType in interface V1.CSIVolumeSourceOrBuilderpublic 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;getFsTypeBytes in interface V1.CSIVolumeSourceOrBuilderpublic V1.CSIVolumeSource.Builder setFsType(String value)
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;public V1.CSIVolumeSource.Builder 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;public V1.CSIVolumeSource.Builder setFsTypeBytes(com.google.protobuf.ByteString value)
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;public int getVolumeAttributesCount()
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;getVolumeAttributesCount in interface V1.CSIVolumeSourceOrBuilderpublic boolean containsVolumeAttributes(String key)
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;containsVolumeAttributes in interface V1.CSIVolumeSourceOrBuilder@Deprecated public Map<String,String> getVolumeAttributes()
getVolumeAttributesMap() instead.getVolumeAttributes in interface V1.CSIVolumeSourceOrBuilderpublic Map<String,String> 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;getVolumeAttributesMap in interface V1.CSIVolumeSourceOrBuilderpublic String getVolumeAttributesOrDefault(String key, String defaultValue)
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;getVolumeAttributesOrDefault in interface V1.CSIVolumeSourceOrBuilderpublic String getVolumeAttributesOrThrow(String key)
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;getVolumeAttributesOrThrow in interface V1.CSIVolumeSourceOrBuilderpublic V1.CSIVolumeSource.Builder clearVolumeAttributes()
public V1.CSIVolumeSource.Builder removeVolumeAttributes(String key)
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;@Deprecated public Map<String,String> getMutableVolumeAttributes()
public V1.CSIVolumeSource.Builder putVolumeAttributes(String key, String value)
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;public V1.CSIVolumeSource.Builder putAllVolumeAttributes(Map<String,String> values)
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;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;hasNodePublishSecretRef in interface V1.CSIVolumeSourceOrBuilderpublic V1.LocalObjectReference 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;getNodePublishSecretRef in interface V1.CSIVolumeSourceOrBuilderpublic V1.CSIVolumeSource.Builder setNodePublishSecretRef(V1.LocalObjectReference value)
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;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;public V1.CSIVolumeSource.Builder mergeNodePublishSecretRef(V1.LocalObjectReference value)
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;public V1.CSIVolumeSource.Builder 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;public V1.LocalObjectReference.Builder 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;public V1.LocalObjectReferenceOrBuilder 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;getNodePublishSecretRefOrBuilder in interface V1.CSIVolumeSourceOrBuilderpublic final V1.CSIVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>public final V1.CSIVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>Copyright © 2023. All rights reserved.