Package k8s.io.api.core.v1
Class Generated.CinderPersistentVolumeSource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.CinderPersistentVolumeSource.Builder>
-
- k8s.io.api.core.v1.Generated.CinderPersistentVolumeSource.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.CinderPersistentVolumeSourceOrBuilder
- Enclosing class:
- Generated.CinderPersistentVolumeSource
public static final class Generated.CinderPersistentVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.CinderPersistentVolumeSource.Builder> implements Generated.CinderPersistentVolumeSourceOrBuilder
Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.
Protobuf typek8s.io.api.core.v1.CinderPersistentVolumeSource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.CinderPersistentVolumeSource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.CinderPersistentVolumeSourcebuild()Generated.CinderPersistentVolumeSourcebuildPartial()Generated.CinderPersistentVolumeSource.Builderclear()Generated.CinderPersistentVolumeSource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.CinderPersistentVolumeSource.BuilderclearFsType()fsType Filesystem type to mount.Generated.CinderPersistentVolumeSource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.CinderPersistentVolumeSource.BuilderclearReadOnly()readOnly is Optional: Defaults to false (read/write).Generated.CinderPersistentVolumeSource.BuilderclearSecretRef()secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.Generated.CinderPersistentVolumeSource.BuilderclearVolumeID()volumeID used to identify the volume in cinder.Generated.CinderPersistentVolumeSource.Builderclone()Generated.CinderPersistentVolumeSourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFsType()fsType Filesystem type to mount.com.google.protobuf.ByteStringgetFsTypeBytes()fsType Filesystem type to mount.booleangetReadOnly()readOnly is Optional: Defaults to false (read/write).Generated.SecretReferencegetSecretRef()secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.Generated.SecretReference.BuildergetSecretRefBuilder()secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.Generated.SecretReferenceOrBuildergetSecretRefOrBuilder()secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.StringgetVolumeID()volumeID used to identify the volume in cinder.com.google.protobuf.ByteStringgetVolumeIDBytes()volumeID used to identify the volume in cinder.booleanhasFsType()fsType Filesystem type to mount.booleanhasReadOnly()readOnly is Optional: Defaults to false (read/write).booleanhasSecretRef()secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.booleanhasVolumeID()volumeID used to identify the volume in cinder.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.CinderPersistentVolumeSource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.CinderPersistentVolumeSource.BuildermergeFrom(com.google.protobuf.Message other)Generated.CinderPersistentVolumeSource.BuildermergeFrom(Generated.CinderPersistentVolumeSource other)Generated.CinderPersistentVolumeSource.BuildermergeSecretRef(Generated.SecretReference value)secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.Generated.CinderPersistentVolumeSource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.CinderPersistentVolumeSource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.CinderPersistentVolumeSource.BuildersetFsType(String value)fsType Filesystem type to mount.Generated.CinderPersistentVolumeSource.BuildersetFsTypeBytes(com.google.protobuf.ByteString value)fsType Filesystem type to mount.Generated.CinderPersistentVolumeSource.BuildersetReadOnly(boolean value)readOnly is Optional: Defaults to false (read/write).Generated.CinderPersistentVolumeSource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.CinderPersistentVolumeSource.BuildersetSecretRef(Generated.SecretReference value)secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.Generated.CinderPersistentVolumeSource.BuildersetSecretRef(Generated.SecretReference.Builder builderForValue)secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.Generated.CinderPersistentVolumeSource.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.CinderPersistentVolumeSource.BuildersetVolumeID(String value)volumeID used to identify the volume in cinder.Generated.CinderPersistentVolumeSource.BuildersetVolumeIDBytes(com.google.protobuf.ByteString value)volumeID used to identify the volume in cinder.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.CinderPersistentVolumeSource.Builder>
-
clear
public Generated.CinderPersistentVolumeSource.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<Generated.CinderPersistentVolumeSource.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<Generated.CinderPersistentVolumeSource.Builder>
-
getDefaultInstanceForType
public Generated.CinderPersistentVolumeSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.CinderPersistentVolumeSource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.CinderPersistentVolumeSource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.CinderPersistentVolumeSource.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<Generated.CinderPersistentVolumeSource.Builder>
-
setField
public Generated.CinderPersistentVolumeSource.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<Generated.CinderPersistentVolumeSource.Builder>
-
clearField
public Generated.CinderPersistentVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.CinderPersistentVolumeSource.Builder>
-
clearOneof
public Generated.CinderPersistentVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.CinderPersistentVolumeSource.Builder>
-
setRepeatedField
public Generated.CinderPersistentVolumeSource.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<Generated.CinderPersistentVolumeSource.Builder>
-
addRepeatedField
public Generated.CinderPersistentVolumeSource.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<Generated.CinderPersistentVolumeSource.Builder>
-
mergeFrom
public Generated.CinderPersistentVolumeSource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.CinderPersistentVolumeSource.Builder>
-
mergeFrom
public Generated.CinderPersistentVolumeSource.Builder mergeFrom(Generated.CinderPersistentVolumeSource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.CinderPersistentVolumeSource.Builder>
-
mergeFrom
public Generated.CinderPersistentVolumeSource.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<Generated.CinderPersistentVolumeSource.Builder>- Throws:
IOException
-
hasVolumeID
public boolean hasVolumeID()
volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
optional string volumeID = 1;- Specified by:
hasVolumeIDin interfaceGenerated.CinderPersistentVolumeSourceOrBuilder- Returns:
- Whether the volumeID field is set.
-
getVolumeID
public String getVolumeID()
volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
optional string volumeID = 1;- Specified by:
getVolumeIDin interfaceGenerated.CinderPersistentVolumeSourceOrBuilder- Returns:
- The volumeID.
-
getVolumeIDBytes
public com.google.protobuf.ByteString getVolumeIDBytes()
volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
optional string volumeID = 1;- Specified by:
getVolumeIDBytesin interfaceGenerated.CinderPersistentVolumeSourceOrBuilder- Returns:
- The bytes for volumeID.
-
setVolumeID
public Generated.CinderPersistentVolumeSource.Builder setVolumeID(String value)
volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
optional string volumeID = 1;- Parameters:
value- The volumeID to set.- Returns:
- This builder for chaining.
-
clearVolumeID
public Generated.CinderPersistentVolumeSource.Builder clearVolumeID()
volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
optional string volumeID = 1;- Returns:
- This builder for chaining.
-
setVolumeIDBytes
public Generated.CinderPersistentVolumeSource.Builder setVolumeIDBytes(com.google.protobuf.ByteString value)
volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
optional string volumeID = 1;- Parameters:
value- The bytes for volumeID to set.- Returns:
- This builder for chaining.
-
hasFsType
public boolean hasFsType()
fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional
optional string fsType = 2;- Specified by:
hasFsTypein interfaceGenerated.CinderPersistentVolumeSourceOrBuilder- Returns:
- Whether the fsType field is set.
-
getFsType
public String getFsType()
fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional
optional string fsType = 2;- Specified by:
getFsTypein interfaceGenerated.CinderPersistentVolumeSourceOrBuilder- Returns:
- The fsType.
-
getFsTypeBytes
public com.google.protobuf.ByteString getFsTypeBytes()
fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional
optional string fsType = 2;- Specified by:
getFsTypeBytesin interfaceGenerated.CinderPersistentVolumeSourceOrBuilder- Returns:
- The bytes for fsType.
-
setFsType
public Generated.CinderPersistentVolumeSource.Builder setFsType(String value)
fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional
optional string fsType = 2;- Parameters:
value- The fsType to set.- Returns:
- This builder for chaining.
-
clearFsType
public Generated.CinderPersistentVolumeSource.Builder clearFsType()
fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional
optional string fsType = 2;- Returns:
- This builder for chaining.
-
setFsTypeBytes
public Generated.CinderPersistentVolumeSource.Builder setFsTypeBytes(com.google.protobuf.ByteString value)
fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional
optional string fsType = 2;- Parameters:
value- The bytes for fsType to set.- Returns:
- This builder for chaining.
-
hasReadOnly
public boolean hasReadOnly()
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional
optional bool readOnly = 3;- Specified by:
hasReadOnlyin interfaceGenerated.CinderPersistentVolumeSourceOrBuilder- Returns:
- Whether the readOnly field is set.
-
getReadOnly
public boolean getReadOnly()
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional
optional bool readOnly = 3;- Specified by:
getReadOnlyin interfaceGenerated.CinderPersistentVolumeSourceOrBuilder- Returns:
- The readOnly.
-
setReadOnly
public Generated.CinderPersistentVolumeSource.Builder setReadOnly(boolean value)
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional
optional bool readOnly = 3;- Parameters:
value- The readOnly to set.- Returns:
- This builder for chaining.
-
clearReadOnly
public Generated.CinderPersistentVolumeSource.Builder clearReadOnly()
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional
optional bool readOnly = 3;- Returns:
- This builder for chaining.
-
hasSecretRef
public boolean hasSecretRef()
secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack. +optional
optional .k8s.io.api.core.v1.SecretReference secretRef = 4;- Specified by:
hasSecretRefin interfaceGenerated.CinderPersistentVolumeSourceOrBuilder- Returns:
- Whether the secretRef field is set.
-
getSecretRef
public Generated.SecretReference getSecretRef()
secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack. +optional
optional .k8s.io.api.core.v1.SecretReference secretRef = 4;- Specified by:
getSecretRefin interfaceGenerated.CinderPersistentVolumeSourceOrBuilder- Returns:
- The secretRef.
-
setSecretRef
public Generated.CinderPersistentVolumeSource.Builder setSecretRef(Generated.SecretReference value)
secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack. +optional
optional .k8s.io.api.core.v1.SecretReference secretRef = 4;
-
setSecretRef
public Generated.CinderPersistentVolumeSource.Builder setSecretRef(Generated.SecretReference.Builder builderForValue)
secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack. +optional
optional .k8s.io.api.core.v1.SecretReference secretRef = 4;
-
mergeSecretRef
public Generated.CinderPersistentVolumeSource.Builder mergeSecretRef(Generated.SecretReference value)
secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack. +optional
optional .k8s.io.api.core.v1.SecretReference secretRef = 4;
-
clearSecretRef
public Generated.CinderPersistentVolumeSource.Builder clearSecretRef()
secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack. +optional
optional .k8s.io.api.core.v1.SecretReference secretRef = 4;
-
getSecretRefBuilder
public Generated.SecretReference.Builder getSecretRefBuilder()
secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack. +optional
optional .k8s.io.api.core.v1.SecretReference secretRef = 4;
-
getSecretRefOrBuilder
public Generated.SecretReferenceOrBuilder getSecretRefOrBuilder()
secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack. +optional
optional .k8s.io.api.core.v1.SecretReference secretRef = 4;- Specified by:
getSecretRefOrBuilderin interfaceGenerated.CinderPersistentVolumeSourceOrBuilder
-
setUnknownFields
public final Generated.CinderPersistentVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.CinderPersistentVolumeSource.Builder>
-
mergeUnknownFields
public final Generated.CinderPersistentVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.CinderPersistentVolumeSource.Builder>
-
-