public static final class GCEPersistentDiskVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GCEPersistentDiskVolumeSource.Builder> implements 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
appscode.kubernetes.v1beta2.GCEPersistentDiskVolumeSource| Modifier and Type | Method and Description |
|---|---|
GCEPersistentDiskVolumeSource.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
GCEPersistentDiskVolumeSource |
build() |
GCEPersistentDiskVolumeSource |
buildPartial() |
GCEPersistentDiskVolumeSource.Builder |
clear() |
GCEPersistentDiskVolumeSource.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GCEPersistentDiskVolumeSource.Builder |
clearFsType()
Filesystem type of the volume that you want to mount.
|
GCEPersistentDiskVolumeSource.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GCEPersistentDiskVolumeSource.Builder |
clearPartition()
The partition in the volume that you want to mount.
|
GCEPersistentDiskVolumeSource.Builder |
clearPdName()
Unique name of the PD resource in GCE.
|
GCEPersistentDiskVolumeSource.Builder |
clearReadOnly()
ReadOnly here will force the ReadOnly setting in VolumeMounts.
|
GCEPersistentDiskVolumeSource.Builder |
clone() |
GCEPersistentDiskVolumeSource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.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.
|
java.lang.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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GCEPersistentDiskVolumeSource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GCEPersistentDiskVolumeSource.Builder |
mergeFrom(GCEPersistentDiskVolumeSource other) |
GCEPersistentDiskVolumeSource.Builder |
mergeFrom(com.google.protobuf.Message other) |
GCEPersistentDiskVolumeSource.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GCEPersistentDiskVolumeSource.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
GCEPersistentDiskVolumeSource.Builder |
setFsType(java.lang.String value)
Filesystem type of the volume that you want to mount.
|
GCEPersistentDiskVolumeSource.Builder |
setFsTypeBytes(com.google.protobuf.ByteString value)
Filesystem type of the volume that you want to mount.
|
GCEPersistentDiskVolumeSource.Builder |
setPartition(int value)
The partition in the volume that you want to mount.
|
GCEPersistentDiskVolumeSource.Builder |
setPdName(java.lang.String value)
Unique name of the PD resource in GCE.
|
GCEPersistentDiskVolumeSource.Builder |
setPdNameBytes(com.google.protobuf.ByteString value)
Unique name of the PD resource in GCE.
|
GCEPersistentDiskVolumeSource.Builder |
setReadOnly(boolean value)
ReadOnly here will force the ReadOnly setting in VolumeMounts.
|
GCEPersistentDiskVolumeSource.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
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, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GCEPersistentDiskVolumeSource.Builder>public 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<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<GCEPersistentDiskVolumeSource.Builder>public GCEPersistentDiskVolumeSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GCEPersistentDiskVolumeSource build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GCEPersistentDiskVolumeSource buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic 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<GCEPersistentDiskVolumeSource.Builder>public GCEPersistentDiskVolumeSource.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<GCEPersistentDiskVolumeSource.Builder>public GCEPersistentDiskVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GCEPersistentDiskVolumeSource.Builder>public GCEPersistentDiskVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GCEPersistentDiskVolumeSource.Builder>public GCEPersistentDiskVolumeSource.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<GCEPersistentDiskVolumeSource.Builder>public GCEPersistentDiskVolumeSource.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<GCEPersistentDiskVolumeSource.Builder>public GCEPersistentDiskVolumeSource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GCEPersistentDiskVolumeSource.Builder>public GCEPersistentDiskVolumeSource.Builder mergeFrom(GCEPersistentDiskVolumeSource other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GCEPersistentDiskVolumeSource.Builder>public GCEPersistentDiskVolumeSource.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<GCEPersistentDiskVolumeSource.Builder>java.io.IOExceptionpublic java.lang.String getPdName()
Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/release-1.4/docs/user-guide/volumes.md#gcepersistentdisk
optional string pdName = 1;getPdName in interface GCEPersistentDiskVolumeSourceOrBuilderpublic com.google.protobuf.ByteString getPdNameBytes()
Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/release-1.4/docs/user-guide/volumes.md#gcepersistentdisk
optional string pdName = 1;getPdNameBytes in interface GCEPersistentDiskVolumeSourceOrBuilderpublic GCEPersistentDiskVolumeSource.Builder setPdName(java.lang.String value)
Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/release-1.4/docs/user-guide/volumes.md#gcepersistentdisk
optional string pdName = 1;public GCEPersistentDiskVolumeSource.Builder clearPdName()
Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/release-1.4/docs/user-guide/volumes.md#gcepersistentdisk
optional string pdName = 1;public 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: http://releases.k8s.io/release-1.4/docs/user-guide/volumes.md#gcepersistentdisk
optional string pdName = 1;public java.lang.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: http://releases.k8s.io/release-1.4/docs/user-guide/volumes.md#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine
optional string fsType = 2;getFsType in interface 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: http://releases.k8s.io/release-1.4/docs/user-guide/volumes.md#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine
optional string fsType = 2;getFsTypeBytes in interface GCEPersistentDiskVolumeSourceOrBuilderpublic GCEPersistentDiskVolumeSource.Builder setFsType(java.lang.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: http://releases.k8s.io/release-1.4/docs/user-guide/volumes.md#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine
optional string fsType = 2;public 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: http://releases.k8s.io/release-1.4/docs/user-guide/volumes.md#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine
optional string fsType = 2;public 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: http://releases.k8s.io/release-1.4/docs/user-guide/volumes.md#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine
optional string fsType = 2;public 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: http://releases.k8s.io/release-1.4/docs/user-guide/volumes.md#gcepersistentdisk
optional int32 partition = 3;getPartition in interface GCEPersistentDiskVolumeSourceOrBuilderpublic 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: http://releases.k8s.io/release-1.4/docs/user-guide/volumes.md#gcepersistentdisk
optional int32 partition = 3;public 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: http://releases.k8s.io/release-1.4/docs/user-guide/volumes.md#gcepersistentdisk
optional int32 partition = 3;public boolean getReadOnly()
ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.4/docs/user-guide/volumes.md#gcepersistentdisk
optional bool readOnly = 4;getReadOnly in interface GCEPersistentDiskVolumeSourceOrBuilderpublic GCEPersistentDiskVolumeSource.Builder setReadOnly(boolean value)
ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.4/docs/user-guide/volumes.md#gcepersistentdisk
optional bool readOnly = 4;public GCEPersistentDiskVolumeSource.Builder clearReadOnly()
ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.4/docs/user-guide/volumes.md#gcepersistentdisk
optional bool readOnly = 4;public final GCEPersistentDiskVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GCEPersistentDiskVolumeSource.Builder>public final GCEPersistentDiskVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GCEPersistentDiskVolumeSource.Builder>