Package io.kubernetes.client.proto
Class V1.FlexVolumeSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.FlexVolumeSource.Builder>
io.kubernetes.client.proto.V1.FlexVolumeSource.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1.FlexVolumeSourceOrBuilder,Cloneable
- Enclosing class:
- V1.FlexVolumeSource
public static final class V1.FlexVolumeSource.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1.FlexVolumeSource.Builder>
implements V1.FlexVolumeSourceOrBuilder
FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.Protobuf type
k8s.io.api.core.v1.FlexVolumeSource-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Driver is the name of the driver to use for this volume.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Filesystem type to mount.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Optional: Defaults to false (read/write).Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts.clone()booleancontainsOptions(String key) Optional: Extra command options if any.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDriver is the name of the driver to use for this volume.com.google.protobuf.ByteStringDriver is the name of the driver to use for this volume.Filesystem type to mount.com.google.protobuf.ByteStringFilesystem type to mount.Deprecated.Deprecated.intOptional: Extra command options if any.Optional: Extra command options if any.getOptionsOrDefault(String key, String defaultValue) Optional: Extra command options if any.getOptionsOrThrow(String key) Optional: Extra command options if any.booleanOptional: Defaults to false (read/write).Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts.Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts.Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts.booleanDriver is the name of the driver to use for this volume.booleanFilesystem type to mount.booleanOptional: Defaults to false (read/write).booleanOptional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts.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.FlexVolumeSource other) Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllOptions(Map<String, String> values) Optional: Extra command options if any.putOptions(String key, String value) Optional: Extra command options if any.removeOptions(String key) Optional: Extra command options if any.Driver is the name of the driver to use for this volume.setDriverBytes(com.google.protobuf.ByteString value) Driver is the name of the driver to use for this volume.Filesystem type to mount.setFsTypeBytes(com.google.protobuf.ByteString value) Filesystem type to mount.setReadOnly(boolean value) Optional: Defaults to false (read/write).setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts.setSecretRef(V1.LocalObjectReference.Builder builderForValue) Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts.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.FlexVolumeSource.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.FlexVolumeSource.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1.FlexVolumeSource.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.FlexVolumeSource.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.FlexVolumeSource.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.FlexVolumeSource.Builder>
-
setField
public V1.FlexVolumeSource.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.FlexVolumeSource.Builder>
-
clearField
public V1.FlexVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.FlexVolumeSource.Builder>
-
clearOneof
public V1.FlexVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.FlexVolumeSource.Builder>
-
setRepeatedField
public V1.FlexVolumeSource.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.FlexVolumeSource.Builder>
-
addRepeatedField
public V1.FlexVolumeSource.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.FlexVolumeSource.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1.FlexVolumeSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.FlexVolumeSource.Builder>
-
mergeFrom
public V1.FlexVolumeSource.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.FlexVolumeSource.Builder>- Throws:
IOException
-
hasDriver
public boolean hasDriver()Driver is the name of the driver to use for this volume.
optional string driver = 1;- Specified by:
hasDriverin interfaceV1.FlexVolumeSourceOrBuilder
-
getDriver
Driver is the name of the driver to use for this volume.
optional string driver = 1;- Specified by:
getDriverin interfaceV1.FlexVolumeSourceOrBuilder
-
getDriverBytes
public com.google.protobuf.ByteString getDriverBytes()Driver is the name of the driver to use for this volume.
optional string driver = 1;- Specified by:
getDriverBytesin interfaceV1.FlexVolumeSourceOrBuilder
-
setDriver
Driver is the name of the driver to use for this volume.
optional string driver = 1; -
clearDriver
Driver is the name of the driver to use for this volume.
optional string driver = 1; -
setDriverBytes
Driver is the name of the driver to use for this volume.
optional string driver = 1; -
hasFsType
public boolean hasFsType()Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. +optional
optional string fsType = 2;- Specified by:
hasFsTypein interfaceV1.FlexVolumeSourceOrBuilder
-
getFsType
Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. +optional
optional string fsType = 2;- Specified by:
getFsTypein interfaceV1.FlexVolumeSourceOrBuilder
-
getFsTypeBytes
public com.google.protobuf.ByteString getFsTypeBytes()Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. +optional
optional string fsType = 2;- Specified by:
getFsTypeBytesin interfaceV1.FlexVolumeSourceOrBuilder
-
setFsType
Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. +optional
optional string fsType = 2; -
clearFsType
Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. +optional
optional string fsType = 2; -
setFsTypeBytes
Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. +optional
optional string fsType = 2; -
hasSecretRef
public boolean hasSecretRef()Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. +optional
optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3;- Specified by:
hasSecretRefin interfaceV1.FlexVolumeSourceOrBuilder
-
getSecretRef
Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. +optional
optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3;- Specified by:
getSecretRefin interfaceV1.FlexVolumeSourceOrBuilder
-
setSecretRef
Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. +optional
optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; -
setSecretRef
Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. +optional
optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; -
mergeSecretRef
Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. +optional
optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; -
clearSecretRef
Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. +optional
optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; -
getSecretRefBuilder
Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. +optional
optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; -
getSecretRefOrBuilder
Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. +optional
optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3;- Specified by:
getSecretRefOrBuilderin interfaceV1.FlexVolumeSourceOrBuilder
-
hasReadOnly
public boolean hasReadOnly()Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional
optional bool readOnly = 4;- Specified by:
hasReadOnlyin interfaceV1.FlexVolumeSourceOrBuilder
-
getReadOnly
public boolean getReadOnly()Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional
optional bool readOnly = 4;- Specified by:
getReadOnlyin interfaceV1.FlexVolumeSourceOrBuilder
-
setReadOnly
Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional
optional bool readOnly = 4; -
clearReadOnly
Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional
optional bool readOnly = 4; -
getOptionsCount
public int getOptionsCount()Description copied from interface:V1.FlexVolumeSourceOrBuilderOptional: Extra command options if any. +optional
map<string, string> options = 5;- Specified by:
getOptionsCountin interfaceV1.FlexVolumeSourceOrBuilder
-
containsOptions
Optional: Extra command options if any. +optional
map<string, string> options = 5;- Specified by:
containsOptionsin interfaceV1.FlexVolumeSourceOrBuilder
-
getOptions
Deprecated.UsegetOptionsMap()instead.- Specified by:
getOptionsin interfaceV1.FlexVolumeSourceOrBuilder
-
getOptionsMap
Optional: Extra command options if any. +optional
map<string, string> options = 5;- Specified by:
getOptionsMapin interfaceV1.FlexVolumeSourceOrBuilder
-
getOptionsOrDefault
Optional: Extra command options if any. +optional
map<string, string> options = 5;- Specified by:
getOptionsOrDefaultin interfaceV1.FlexVolumeSourceOrBuilder
-
getOptionsOrThrow
Optional: Extra command options if any. +optional
map<string, string> options = 5;- Specified by:
getOptionsOrThrowin interfaceV1.FlexVolumeSourceOrBuilder
-
clearOptions
-
removeOptions
Optional: Extra command options if any. +optional
map<string, string> options = 5; -
getMutableOptions
Deprecated.Use alternate mutation accessors instead. -
putOptions
Optional: Extra command options if any. +optional
map<string, string> options = 5; -
putAllOptions
Optional: Extra command options if any. +optional
map<string, string> options = 5; -
setUnknownFields
public final V1.FlexVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.FlexVolumeSource.Builder>
-
mergeUnknownFields
public final V1.FlexVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.FlexVolumeSource.Builder>
-