public static final class FlexVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FlexVolumeSource.Builder> implements FlexVolumeSourceOrBuilder
FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.Protobuf type
appscode.kubernetes.v1beta2.FlexVolumeSource| Modifier and Type | Method and Description |
|---|---|
FlexVolumeSource.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
FlexVolumeSource |
build() |
FlexVolumeSource |
buildPartial() |
FlexVolumeSource.Builder |
clear() |
FlexVolumeSource.Builder |
clearDriver()
Driver is the name of the driver to use for this volume.
|
FlexVolumeSource.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
FlexVolumeSource.Builder |
clearFsType()
Filesystem type to mount.
|
FlexVolumeSource.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
FlexVolumeSource.Builder |
clearOptions() |
FlexVolumeSource.Builder |
clearReadOnly()
Optional: Defaults to false (read/write).
|
FlexVolumeSource.Builder |
clearSecretRef()
Optional: SecretRef is reference to the secret object containing
sensitive information to pass to the plugin scripts.
|
FlexVolumeSource.Builder |
clone() |
boolean |
containsOptions(java.lang.String key)
Optional: Extra command options if any.
|
FlexVolumeSource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getDriver()
Driver is the name of the driver to use for this volume.
|
com.google.protobuf.ByteString |
getDriverBytes()
Driver is the name of the driver to use for this volume.
|
java.lang.String |
getFsType()
Filesystem type to mount.
|
com.google.protobuf.ByteString |
getFsTypeBytes()
Filesystem type to mount.
|
java.util.Map<java.lang.String,java.lang.String> |
getMutableOptions()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.String> |
getOptions()
Deprecated.
|
int |
getOptionsCount()
Optional: Extra command options if any.
|
java.util.Map<java.lang.String,java.lang.String> |
getOptionsMap()
Optional: Extra command options if any.
|
java.lang.String |
getOptionsOrDefault(java.lang.String key,
java.lang.String defaultValue)
Optional: Extra command options if any.
|
java.lang.String |
getOptionsOrThrow(java.lang.String key)
Optional: Extra command options if any.
|
boolean |
getReadOnly()
Optional: Defaults to false (read/write).
|
ObjectReference |
getSecretRef()
Optional: SecretRef is reference to the secret object containing
sensitive information to pass to the plugin scripts.
|
ObjectReference.Builder |
getSecretRefBuilder()
Optional: SecretRef is reference to the secret object containing
sensitive information to pass to the plugin scripts.
|
ObjectReferenceOrBuilder |
getSecretRefOrBuilder()
Optional: SecretRef is reference to the secret object containing
sensitive information to pass to the plugin scripts.
|
boolean |
hasSecretRef()
Optional: SecretRef is reference to the secret object containing
sensitive information to pass to the plugin scripts.
|
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() |
FlexVolumeSource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
FlexVolumeSource.Builder |
mergeFrom(FlexVolumeSource other) |
FlexVolumeSource.Builder |
mergeFrom(com.google.protobuf.Message other) |
FlexVolumeSource.Builder |
mergeSecretRef(ObjectReference value)
Optional: SecretRef is reference to the secret object containing
sensitive information to pass to the plugin scripts.
|
FlexVolumeSource.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
FlexVolumeSource.Builder |
putAllOptions(java.util.Map<java.lang.String,java.lang.String> values)
Optional: Extra command options if any.
|
FlexVolumeSource.Builder |
putOptions(java.lang.String key,
java.lang.String value)
Optional: Extra command options if any.
|
FlexVolumeSource.Builder |
removeOptions(java.lang.String key)
Optional: Extra command options if any.
|
FlexVolumeSource.Builder |
setDriver(java.lang.String value)
Driver is the name of the driver to use for this volume.
|
FlexVolumeSource.Builder |
setDriverBytes(com.google.protobuf.ByteString value)
Driver is the name of the driver to use for this volume.
|
FlexVolumeSource.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
FlexVolumeSource.Builder |
setFsType(java.lang.String value)
Filesystem type to mount.
|
FlexVolumeSource.Builder |
setFsTypeBytes(com.google.protobuf.ByteString value)
Filesystem type to mount.
|
FlexVolumeSource.Builder |
setReadOnly(boolean value)
Optional: Defaults to false (read/write).
|
FlexVolumeSource.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
FlexVolumeSource.Builder |
setSecretRef(ObjectReference.Builder builderForValue)
Optional: SecretRef is reference to the secret object containing
sensitive information to pass to the plugin scripts.
|
FlexVolumeSource.Builder |
setSecretRef(ObjectReference value)
Optional: SecretRef is reference to the secret object containing
sensitive information to pass to the plugin scripts.
|
FlexVolumeSource.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<FlexVolumeSource.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<FlexVolumeSource.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<FlexVolumeSource.Builder>public FlexVolumeSource.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<FlexVolumeSource.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<FlexVolumeSource.Builder>public FlexVolumeSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FlexVolumeSource build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FlexVolumeSource buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FlexVolumeSource.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<FlexVolumeSource.Builder>public FlexVolumeSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<FlexVolumeSource.Builder>public FlexVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<FlexVolumeSource.Builder>public FlexVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FlexVolumeSource.Builder>public FlexVolumeSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FlexVolumeSource.Builder>public FlexVolumeSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FlexVolumeSource.Builder>public FlexVolumeSource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FlexVolumeSource.Builder>public FlexVolumeSource.Builder mergeFrom(FlexVolumeSource other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<FlexVolumeSource.Builder>public FlexVolumeSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FlexVolumeSource.Builder>java.io.IOExceptionpublic java.lang.String getDriver()
Driver is the name of the driver to use for this volume.
optional string driver = 1;getDriver in interface FlexVolumeSourceOrBuilderpublic com.google.protobuf.ByteString getDriverBytes()
Driver is the name of the driver to use for this volume.
optional string driver = 1;getDriverBytes in interface FlexVolumeSourceOrBuilderpublic FlexVolumeSource.Builder setDriver(java.lang.String value)
Driver is the name of the driver to use for this volume.
optional string driver = 1;public FlexVolumeSource.Builder clearDriver()
Driver is the name of the driver to use for this volume.
optional string driver = 1;public FlexVolumeSource.Builder setDriverBytes(com.google.protobuf.ByteString value)
Driver is the name of the driver to use for this volume.
optional string driver = 1;public java.lang.String 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 string fsType = 2;getFsType in interface FlexVolumeSourceOrBuilderpublic 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 string fsType = 2;getFsTypeBytes in interface FlexVolumeSourceOrBuilderpublic FlexVolumeSource.Builder setFsType(java.lang.String value)
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 string fsType = 2;public FlexVolumeSource.Builder 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 string fsType = 2;public FlexVolumeSource.Builder setFsTypeBytes(com.google.protobuf.ByteString value)
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 string fsType = 2;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 .appscode.kubernetes.v1beta2.ObjectReference secretRef = 3;hasSecretRef in interface FlexVolumeSourceOrBuilderpublic ObjectReference 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 .appscode.kubernetes.v1beta2.ObjectReference secretRef = 3;getSecretRef in interface FlexVolumeSourceOrBuilderpublic FlexVolumeSource.Builder setSecretRef(ObjectReference value)
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 .appscode.kubernetes.v1beta2.ObjectReference secretRef = 3;public FlexVolumeSource.Builder setSecretRef(ObjectReference.Builder builderForValue)
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 .appscode.kubernetes.v1beta2.ObjectReference secretRef = 3;public FlexVolumeSource.Builder mergeSecretRef(ObjectReference value)
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 .appscode.kubernetes.v1beta2.ObjectReference secretRef = 3;public FlexVolumeSource.Builder 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 .appscode.kubernetes.v1beta2.ObjectReference secretRef = 3;public ObjectReference.Builder 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 .appscode.kubernetes.v1beta2.ObjectReference secretRef = 3;public ObjectReferenceOrBuilder 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 .appscode.kubernetes.v1beta2.ObjectReference secretRef = 3;getSecretRefOrBuilder in interface FlexVolumeSourceOrBuilderpublic boolean getReadOnly()
Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
optional bool readOnly = 4;getReadOnly in interface FlexVolumeSourceOrBuilderpublic FlexVolumeSource.Builder setReadOnly(boolean value)
Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
optional bool readOnly = 4;public FlexVolumeSource.Builder clearReadOnly()
Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
optional bool readOnly = 4;public int getOptionsCount()
FlexVolumeSourceOrBuilderOptional: Extra command options if any.
map<string, string> options = 5;getOptionsCount in interface FlexVolumeSourceOrBuilderpublic boolean containsOptions(java.lang.String key)
Optional: Extra command options if any.
map<string, string> options = 5;containsOptions in interface FlexVolumeSourceOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getOptions()
getOptionsMap() instead.getOptions in interface FlexVolumeSourceOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getOptionsMap()
Optional: Extra command options if any.
map<string, string> options = 5;getOptionsMap in interface FlexVolumeSourceOrBuilderpublic java.lang.String getOptionsOrDefault(java.lang.String key,
java.lang.String defaultValue)
Optional: Extra command options if any.
map<string, string> options = 5;getOptionsOrDefault in interface FlexVolumeSourceOrBuilderpublic java.lang.String getOptionsOrThrow(java.lang.String key)
Optional: Extra command options if any.
map<string, string> options = 5;getOptionsOrThrow in interface FlexVolumeSourceOrBuilderpublic FlexVolumeSource.Builder clearOptions()
public FlexVolumeSource.Builder removeOptions(java.lang.String key)
Optional: Extra command options if any.
map<string, string> options = 5;@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableOptions()
public FlexVolumeSource.Builder putOptions(java.lang.String key, java.lang.String value)
Optional: Extra command options if any.
map<string, string> options = 5;public FlexVolumeSource.Builder putAllOptions(java.util.Map<java.lang.String,java.lang.String> values)
Optional: Extra command options if any.
map<string, string> options = 5;public final FlexVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FlexVolumeSource.Builder>public final FlexVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FlexVolumeSource.Builder>