Package k8s.io.api.core.v1
Class Generated.GCEPersistentDiskVolumeSource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.GCEPersistentDiskVolumeSource.Builder>
-
- k8s.io.api.core.v1.Generated.GCEPersistentDiskVolumeSource.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.GCEPersistentDiskVolumeSourceOrBuilder
- Enclosing class:
- Generated.GCEPersistentDiskVolumeSource
public static final class Generated.GCEPersistentDiskVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.GCEPersistentDiskVolumeSource.Builder> implements Generated.GCEPersistentDiskVolumeSourceOrBuilder
Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.
Protobuf typek8s.io.api.core.v1.GCEPersistentDiskVolumeSource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.GCEPersistentDiskVolumeSource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.GCEPersistentDiskVolumeSourcebuild()Generated.GCEPersistentDiskVolumeSourcebuildPartial()Generated.GCEPersistentDiskVolumeSource.Builderclear()Generated.GCEPersistentDiskVolumeSource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.GCEPersistentDiskVolumeSource.BuilderclearFsType()fsType is filesystem type of the volume that you want to mount.Generated.GCEPersistentDiskVolumeSource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.GCEPersistentDiskVolumeSource.BuilderclearPartition()partition is the partition in the volume that you want to mount.Generated.GCEPersistentDiskVolumeSource.BuilderclearPdName()pdName is unique name of the PD resource in GCE.Generated.GCEPersistentDiskVolumeSource.BuilderclearReadOnly()readOnly here will force the ReadOnly setting in VolumeMounts.Generated.GCEPersistentDiskVolumeSource.Builderclone()Generated.GCEPersistentDiskVolumeSourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFsType()fsType is filesystem type of the volume that you want to mount.com.google.protobuf.ByteStringgetFsTypeBytes()fsType is filesystem type of the volume that you want to mount.intgetPartition()partition is the partition in the volume that you want to mount.StringgetPdName()pdName is unique name of the PD resource in GCE.com.google.protobuf.ByteStringgetPdNameBytes()pdName is unique name of the PD resource in GCE.booleangetReadOnly()readOnly here will force the ReadOnly setting in VolumeMounts.booleanhasFsType()fsType is filesystem type of the volume that you want to mount.booleanhasPartition()partition is the partition in the volume that you want to mount.booleanhasPdName()pdName is unique name of the PD resource in GCE.booleanhasReadOnly()readOnly here will force the ReadOnly setting in VolumeMounts.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.GCEPersistentDiskVolumeSource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.GCEPersistentDiskVolumeSource.BuildermergeFrom(com.google.protobuf.Message other)Generated.GCEPersistentDiskVolumeSource.BuildermergeFrom(Generated.GCEPersistentDiskVolumeSource other)Generated.GCEPersistentDiskVolumeSource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.GCEPersistentDiskVolumeSource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.GCEPersistentDiskVolumeSource.BuildersetFsType(String value)fsType is filesystem type of the volume that you want to mount.Generated.GCEPersistentDiskVolumeSource.BuildersetFsTypeBytes(com.google.protobuf.ByteString value)fsType is filesystem type of the volume that you want to mount.Generated.GCEPersistentDiskVolumeSource.BuildersetPartition(int value)partition is the partition in the volume that you want to mount.Generated.GCEPersistentDiskVolumeSource.BuildersetPdName(String value)pdName is unique name of the PD resource in GCE.Generated.GCEPersistentDiskVolumeSource.BuildersetPdNameBytes(com.google.protobuf.ByteString value)pdName is unique name of the PD resource in GCE.Generated.GCEPersistentDiskVolumeSource.BuildersetReadOnly(boolean value)readOnly here will force the ReadOnly setting in VolumeMounts.Generated.GCEPersistentDiskVolumeSource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.GCEPersistentDiskVolumeSource.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.GCEPersistentDiskVolumeSource.Builder>
-
clear
public Generated.GCEPersistentDiskVolumeSource.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.GCEPersistentDiskVolumeSource.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.GCEPersistentDiskVolumeSource.Builder>
-
getDefaultInstanceForType
public Generated.GCEPersistentDiskVolumeSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.GCEPersistentDiskVolumeSource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.GCEPersistentDiskVolumeSource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.GCEPersistentDiskVolumeSource.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.GCEPersistentDiskVolumeSource.Builder>
-
setField
public Generated.GCEPersistentDiskVolumeSource.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.GCEPersistentDiskVolumeSource.Builder>
-
clearField
public Generated.GCEPersistentDiskVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.GCEPersistentDiskVolumeSource.Builder>
-
clearOneof
public Generated.GCEPersistentDiskVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.GCEPersistentDiskVolumeSource.Builder>
-
setRepeatedField
public Generated.GCEPersistentDiskVolumeSource.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.GCEPersistentDiskVolumeSource.Builder>
-
addRepeatedField
public Generated.GCEPersistentDiskVolumeSource.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.GCEPersistentDiskVolumeSource.Builder>
-
mergeFrom
public Generated.GCEPersistentDiskVolumeSource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.GCEPersistentDiskVolumeSource.Builder>
-
mergeFrom
public Generated.GCEPersistentDiskVolumeSource.Builder mergeFrom(Generated.GCEPersistentDiskVolumeSource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.GCEPersistentDiskVolumeSource.Builder>
-
mergeFrom
public Generated.GCEPersistentDiskVolumeSource.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.GCEPersistentDiskVolumeSource.Builder>- Throws:
IOException
-
hasPdName
public boolean hasPdName()
pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
optional string pdName = 1;- Specified by:
hasPdNamein interfaceGenerated.GCEPersistentDiskVolumeSourceOrBuilder- Returns:
- Whether the pdName field is set.
-
getPdName
public String getPdName()
pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
optional string pdName = 1;- Specified by:
getPdNamein interfaceGenerated.GCEPersistentDiskVolumeSourceOrBuilder- Returns:
- The pdName.
-
getPdNameBytes
public com.google.protobuf.ByteString getPdNameBytes()
pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
optional string pdName = 1;- Specified by:
getPdNameBytesin interfaceGenerated.GCEPersistentDiskVolumeSourceOrBuilder- Returns:
- The bytes for pdName.
-
setPdName
public Generated.GCEPersistentDiskVolumeSource.Builder setPdName(String value)
pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
optional string pdName = 1;- Parameters:
value- The pdName to set.- Returns:
- This builder for chaining.
-
clearPdName
public Generated.GCEPersistentDiskVolumeSource.Builder clearPdName()
pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
optional string pdName = 1;- Returns:
- This builder for chaining.
-
setPdNameBytes
public Generated.GCEPersistentDiskVolumeSource.Builder setPdNameBytes(com.google.protobuf.ByteString value)
pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
optional string pdName = 1;- Parameters:
value- The bytes for pdName to set.- Returns:
- This builder for chaining.
-
hasFsType
public boolean hasFsType()
fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine +optional
optional string fsType = 2;- Specified by:
hasFsTypein interfaceGenerated.GCEPersistentDiskVolumeSourceOrBuilder- Returns:
- Whether the fsType field is set.
-
getFsType
public String getFsType()
fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine +optional
optional string fsType = 2;- Specified by:
getFsTypein interfaceGenerated.GCEPersistentDiskVolumeSourceOrBuilder- Returns:
- The fsType.
-
getFsTypeBytes
public com.google.protobuf.ByteString getFsTypeBytes()
fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine +optional
optional string fsType = 2;- Specified by:
getFsTypeBytesin interfaceGenerated.GCEPersistentDiskVolumeSourceOrBuilder- Returns:
- The bytes for fsType.
-
setFsType
public Generated.GCEPersistentDiskVolumeSource.Builder setFsType(String value)
fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine +optional
optional string fsType = 2;- Parameters:
value- The fsType to set.- Returns:
- This builder for chaining.
-
clearFsType
public Generated.GCEPersistentDiskVolumeSource.Builder clearFsType()
fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine +optional
optional string fsType = 2;- Returns:
- This builder for chaining.
-
setFsTypeBytes
public Generated.GCEPersistentDiskVolumeSource.Builder setFsTypeBytes(com.google.protobuf.ByteString value)
fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine +optional
optional string fsType = 2;- Parameters:
value- The bytes for fsType to set.- Returns:
- This builder for chaining.
-
hasPartition
public boolean hasPartition()
partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional
optional int32 partition = 3;- Specified by:
hasPartitionin interfaceGenerated.GCEPersistentDiskVolumeSourceOrBuilder- Returns:
- Whether the partition field is set.
-
getPartition
public int getPartition()
partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional
optional int32 partition = 3;- Specified by:
getPartitionin interfaceGenerated.GCEPersistentDiskVolumeSourceOrBuilder- Returns:
- The partition.
-
setPartition
public Generated.GCEPersistentDiskVolumeSource.Builder setPartition(int value)
partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional
optional int32 partition = 3;- Parameters:
value- The partition to set.- Returns:
- This builder for chaining.
-
clearPartition
public Generated.GCEPersistentDiskVolumeSource.Builder clearPartition()
partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional
optional int32 partition = 3;- Returns:
- This builder for chaining.
-
hasReadOnly
public boolean hasReadOnly()
readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional
optional bool readOnly = 4;- Specified by:
hasReadOnlyin interfaceGenerated.GCEPersistentDiskVolumeSourceOrBuilder- Returns:
- Whether the readOnly field is set.
-
getReadOnly
public boolean getReadOnly()
readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional
optional bool readOnly = 4;- Specified by:
getReadOnlyin interfaceGenerated.GCEPersistentDiskVolumeSourceOrBuilder- Returns:
- The readOnly.
-
setReadOnly
public Generated.GCEPersistentDiskVolumeSource.Builder setReadOnly(boolean value)
readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional
optional bool readOnly = 4;- Parameters:
value- The readOnly to set.- Returns:
- This builder for chaining.
-
clearReadOnly
public Generated.GCEPersistentDiskVolumeSource.Builder clearReadOnly()
readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional
optional bool readOnly = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.GCEPersistentDiskVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.GCEPersistentDiskVolumeSource.Builder>
-
mergeUnknownFields
public final Generated.GCEPersistentDiskVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.GCEPersistentDiskVolumeSource.Builder>
-
-