Package k8s.io.api.core.v1
Class Generated.PersistentVolumeClaimVolumeSource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeClaimVolumeSource.Builder>
-
- k8s.io.api.core.v1.Generated.PersistentVolumeClaimVolumeSource.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.PersistentVolumeClaimVolumeSourceOrBuilder
- Enclosing class:
- Generated.PersistentVolumeClaimVolumeSource
public static final class Generated.PersistentVolumeClaimVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeClaimVolumeSource.Builder> implements Generated.PersistentVolumeClaimVolumeSourceOrBuilder
PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).
Protobuf typek8s.io.api.core.v1.PersistentVolumeClaimVolumeSource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.PersistentVolumeClaimVolumeSource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.PersistentVolumeClaimVolumeSourcebuild()Generated.PersistentVolumeClaimVolumeSourcebuildPartial()Generated.PersistentVolumeClaimVolumeSource.Builderclear()Generated.PersistentVolumeClaimVolumeSource.BuilderclearClaimName()claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.Generated.PersistentVolumeClaimVolumeSource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.PersistentVolumeClaimVolumeSource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.PersistentVolumeClaimVolumeSource.BuilderclearReadOnly()readOnly Will force the ReadOnly setting in VolumeMounts.Generated.PersistentVolumeClaimVolumeSource.Builderclone()StringgetClaimName()claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.com.google.protobuf.ByteStringgetClaimNameBytes()claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.Generated.PersistentVolumeClaimVolumeSourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetReadOnly()readOnly Will force the ReadOnly setting in VolumeMounts.booleanhasClaimName()claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.booleanhasReadOnly()readOnly Will force the ReadOnly setting in VolumeMounts.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.PersistentVolumeClaimVolumeSource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.PersistentVolumeClaimVolumeSource.BuildermergeFrom(com.google.protobuf.Message other)Generated.PersistentVolumeClaimVolumeSource.BuildermergeFrom(Generated.PersistentVolumeClaimVolumeSource other)Generated.PersistentVolumeClaimVolumeSource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.PersistentVolumeClaimVolumeSource.BuildersetClaimName(String value)claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.Generated.PersistentVolumeClaimVolumeSource.BuildersetClaimNameBytes(com.google.protobuf.ByteString value)claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.Generated.PersistentVolumeClaimVolumeSource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.PersistentVolumeClaimVolumeSource.BuildersetReadOnly(boolean value)readOnly Will force the ReadOnly setting in VolumeMounts.Generated.PersistentVolumeClaimVolumeSource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.PersistentVolumeClaimVolumeSource.BuildersetUnknownFields(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, 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.PersistentVolumeClaimVolumeSource.Builder>
-
clear
public Generated.PersistentVolumeClaimVolumeSource.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.PersistentVolumeClaimVolumeSource.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.PersistentVolumeClaimVolumeSource.Builder>
-
getDefaultInstanceForType
public Generated.PersistentVolumeClaimVolumeSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.PersistentVolumeClaimVolumeSource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.PersistentVolumeClaimVolumeSource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.PersistentVolumeClaimVolumeSource.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.PersistentVolumeClaimVolumeSource.Builder>
-
setField
public Generated.PersistentVolumeClaimVolumeSource.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.PersistentVolumeClaimVolumeSource.Builder>
-
clearField
public Generated.PersistentVolumeClaimVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeClaimVolumeSource.Builder>
-
clearOneof
public Generated.PersistentVolumeClaimVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeClaimVolumeSource.Builder>
-
setRepeatedField
public Generated.PersistentVolumeClaimVolumeSource.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.PersistentVolumeClaimVolumeSource.Builder>
-
addRepeatedField
public Generated.PersistentVolumeClaimVolumeSource.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.PersistentVolumeClaimVolumeSource.Builder>
-
mergeFrom
public Generated.PersistentVolumeClaimVolumeSource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.PersistentVolumeClaimVolumeSource.Builder>
-
mergeFrom
public Generated.PersistentVolumeClaimVolumeSource.Builder mergeFrom(Generated.PersistentVolumeClaimVolumeSource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeClaimVolumeSource.Builder>
-
mergeFrom
public Generated.PersistentVolumeClaimVolumeSource.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.PersistentVolumeClaimVolumeSource.Builder>- Throws:
IOException
-
hasClaimName
public boolean hasClaimName()
claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
optional string claimName = 1;- Specified by:
hasClaimNamein interfaceGenerated.PersistentVolumeClaimVolumeSourceOrBuilder- Returns:
- Whether the claimName field is set.
-
getClaimName
public String getClaimName()
claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
optional string claimName = 1;- Specified by:
getClaimNamein interfaceGenerated.PersistentVolumeClaimVolumeSourceOrBuilder- Returns:
- The claimName.
-
getClaimNameBytes
public com.google.protobuf.ByteString getClaimNameBytes()
claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
optional string claimName = 1;- Specified by:
getClaimNameBytesin interfaceGenerated.PersistentVolumeClaimVolumeSourceOrBuilder- Returns:
- The bytes for claimName.
-
setClaimName
public Generated.PersistentVolumeClaimVolumeSource.Builder setClaimName(String value)
claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
optional string claimName = 1;- Parameters:
value- The claimName to set.- Returns:
- This builder for chaining.
-
clearClaimName
public Generated.PersistentVolumeClaimVolumeSource.Builder clearClaimName()
claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
optional string claimName = 1;- Returns:
- This builder for chaining.
-
setClaimNameBytes
public Generated.PersistentVolumeClaimVolumeSource.Builder setClaimNameBytes(com.google.protobuf.ByteString value)
claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
optional string claimName = 1;- Parameters:
value- The bytes for claimName to set.- Returns:
- This builder for chaining.
-
hasReadOnly
public boolean hasReadOnly()
readOnly Will force the ReadOnly setting in VolumeMounts. Default false. +optional
optional bool readOnly = 2;- Specified by:
hasReadOnlyin interfaceGenerated.PersistentVolumeClaimVolumeSourceOrBuilder- Returns:
- Whether the readOnly field is set.
-
getReadOnly
public boolean getReadOnly()
readOnly Will force the ReadOnly setting in VolumeMounts. Default false. +optional
optional bool readOnly = 2;- Specified by:
getReadOnlyin interfaceGenerated.PersistentVolumeClaimVolumeSourceOrBuilder- Returns:
- The readOnly.
-
setReadOnly
public Generated.PersistentVolumeClaimVolumeSource.Builder setReadOnly(boolean value)
readOnly Will force the ReadOnly setting in VolumeMounts. Default false. +optional
optional bool readOnly = 2;- Parameters:
value- The readOnly to set.- Returns:
- This builder for chaining.
-
clearReadOnly
public Generated.PersistentVolumeClaimVolumeSource.Builder clearReadOnly()
readOnly Will force the ReadOnly setting in VolumeMounts. Default false. +optional
optional bool readOnly = 2;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.PersistentVolumeClaimVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeClaimVolumeSource.Builder>
-
mergeUnknownFields
public final Generated.PersistentVolumeClaimVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolumeClaimVolumeSource.Builder>
-
-