public static final class V1.GCEPersistentDiskVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder> implements V1.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 type
k8s.io.api.core.v1.GCEPersistentDiskVolumeSource| Modifier and Type | Method and Description |
|---|---|
V1.GCEPersistentDiskVolumeSource.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.GCEPersistentDiskVolumeSource |
build() |
V1.GCEPersistentDiskVolumeSource |
buildPartial() |
V1.GCEPersistentDiskVolumeSource.Builder |
clear() |
V1.GCEPersistentDiskVolumeSource.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1.GCEPersistentDiskVolumeSource.Builder |
clearFsType()
Filesystem type of the volume that you want to mount.
|
V1.GCEPersistentDiskVolumeSource.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1.GCEPersistentDiskVolumeSource.Builder |
clearPartition()
The partition in the volume that you want to mount.
|
V1.GCEPersistentDiskVolumeSource.Builder |
clearPdName()
Unique name of the PD resource in GCE.
|
V1.GCEPersistentDiskVolumeSource.Builder |
clearReadOnly()
ReadOnly here will force the ReadOnly setting in VolumeMounts.
|
V1.GCEPersistentDiskVolumeSource.Builder |
clone() |
V1.GCEPersistentDiskVolumeSource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getFsType()
Filesystem type of the volume that you want to mount.
|
com.google.protobuf.ByteString |
getFsTypeBytes()
Filesystem type of the volume that you want to mount.
|
int |
getPartition()
The partition in the volume that you want to mount.
|
String |
getPdName()
Unique name of the PD resource in GCE.
|
com.google.protobuf.ByteString |
getPdNameBytes()
Unique name of the PD resource in GCE.
|
boolean |
getReadOnly()
ReadOnly here will force the ReadOnly setting in VolumeMounts.
|
boolean |
hasFsType()
Filesystem type of the volume that you want to mount.
|
boolean |
hasPartition()
The partition in the volume that you want to mount.
|
boolean |
hasPdName()
Unique name of the PD resource in GCE.
|
boolean |
hasReadOnly()
ReadOnly here will force the ReadOnly setting in VolumeMounts.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1.GCEPersistentDiskVolumeSource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1.GCEPersistentDiskVolumeSource.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1.GCEPersistentDiskVolumeSource.Builder |
mergeFrom(V1.GCEPersistentDiskVolumeSource other) |
V1.GCEPersistentDiskVolumeSource.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.GCEPersistentDiskVolumeSource.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.GCEPersistentDiskVolumeSource.Builder |
setFsType(String value)
Filesystem type of the volume that you want to mount.
|
V1.GCEPersistentDiskVolumeSource.Builder |
setFsTypeBytes(com.google.protobuf.ByteString value)
Filesystem type of the volume that you want to mount.
|
V1.GCEPersistentDiskVolumeSource.Builder |
setPartition(int value)
The partition in the volume that you want to mount.
|
V1.GCEPersistentDiskVolumeSource.Builder |
setPdName(String value)
Unique name of the PD resource in GCE.
|
V1.GCEPersistentDiskVolumeSource.Builder |
setPdNameBytes(com.google.protobuf.ByteString value)
Unique name of the PD resource in GCE.
|
V1.GCEPersistentDiskVolumeSource.Builder |
setReadOnly(boolean value)
ReadOnly here will force the ReadOnly setting in VolumeMounts.
|
V1.GCEPersistentDiskVolumeSource.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1.GCEPersistentDiskVolumeSource.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>public V1.GCEPersistentDiskVolumeSource.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.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<V1.GCEPersistentDiskVolumeSource.Builder>public V1.GCEPersistentDiskVolumeSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1.GCEPersistentDiskVolumeSource build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1.GCEPersistentDiskVolumeSource buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1.GCEPersistentDiskVolumeSource.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>public V1.GCEPersistentDiskVolumeSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>public V1.GCEPersistentDiskVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>public V1.GCEPersistentDiskVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>public V1.GCEPersistentDiskVolumeSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>public V1.GCEPersistentDiskVolumeSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>public V1.GCEPersistentDiskVolumeSource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.GCEPersistentDiskVolumeSource.Builder>public V1.GCEPersistentDiskVolumeSource.Builder mergeFrom(V1.GCEPersistentDiskVolumeSource other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>public V1.GCEPersistentDiskVolumeSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.GCEPersistentDiskVolumeSource.Builder>IOExceptionpublic boolean hasPdName()
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;hasPdName in interface V1.GCEPersistentDiskVolumeSourceOrBuilderpublic String getPdName()
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;getPdName in interface V1.GCEPersistentDiskVolumeSourceOrBuilderpublic com.google.protobuf.ByteString getPdNameBytes()
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;getPdNameBytes in interface V1.GCEPersistentDiskVolumeSourceOrBuilderpublic V1.GCEPersistentDiskVolumeSource.Builder setPdName(String value)
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;public V1.GCEPersistentDiskVolumeSource.Builder clearPdName()
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;public V1.GCEPersistentDiskVolumeSource.Builder setPdNameBytes(com.google.protobuf.ByteString value)
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;public boolean hasFsType()
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;hasFsType in interface V1.GCEPersistentDiskVolumeSourceOrBuilderpublic String getFsType()
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;getFsType in interface V1.GCEPersistentDiskVolumeSourceOrBuilderpublic com.google.protobuf.ByteString getFsTypeBytes()
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;getFsTypeBytes in interface V1.GCEPersistentDiskVolumeSourceOrBuilderpublic V1.GCEPersistentDiskVolumeSource.Builder setFsType(String value)
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;public V1.GCEPersistentDiskVolumeSource.Builder clearFsType()
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;public V1.GCEPersistentDiskVolumeSource.Builder setFsTypeBytes(com.google.protobuf.ByteString value)
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;public boolean hasPartition()
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;hasPartition in interface V1.GCEPersistentDiskVolumeSourceOrBuilderpublic int getPartition()
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;getPartition in interface V1.GCEPersistentDiskVolumeSourceOrBuilderpublic V1.GCEPersistentDiskVolumeSource.Builder setPartition(int value)
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;public V1.GCEPersistentDiskVolumeSource.Builder clearPartition()
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;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;hasReadOnly in interface V1.GCEPersistentDiskVolumeSourceOrBuilderpublic 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;getReadOnly in interface V1.GCEPersistentDiskVolumeSourceOrBuilderpublic V1.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;public V1.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;public final V1.GCEPersistentDiskVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>public final V1.GCEPersistentDiskVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>Copyright © 2019. All rights reserved.