Class V1.GCEPersistentDiskVolumeSource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>
io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.GCEPersistentDiskVolumeSourceOrBuilder, Cloneable
Enclosing class:
V1.GCEPersistentDiskVolumeSource

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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>
    • getDefaultInstanceForType

      public V1.GCEPersistentDiskVolumeSource getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V1.GCEPersistentDiskVolumeSource buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>
    • setField

      public V1.GCEPersistentDiskVolumeSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>
    • clearField

      public V1.GCEPersistentDiskVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>
    • clearOneof

      public V1.GCEPersistentDiskVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>
    • setRepeatedField

      public V1.GCEPersistentDiskVolumeSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>
    • addRepeatedField

      public V1.GCEPersistentDiskVolumeSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>
    • mergeFrom

      public V1.GCEPersistentDiskVolumeSource.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.GCEPersistentDiskVolumeSource.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>
    • mergeFrom

      public V1.GCEPersistentDiskVolumeSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.GCEPersistentDiskVolumeSource.Builder>
      Throws:
      IOException
    • hasPdName

      public 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;
      Specified by:
      hasPdName in interface V1.GCEPersistentDiskVolumeSourceOrBuilder
    • getPdName

      public 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;
      Specified by:
      getPdName in interface V1.GCEPersistentDiskVolumeSourceOrBuilder
    • getPdNameBytes

      public 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;
      Specified by:
      getPdNameBytes in interface V1.GCEPersistentDiskVolumeSourceOrBuilder
    • setPdName

       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;
    • 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;
    • setPdNameBytes

      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;
    • hasFsType

      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;
      Specified by:
      hasFsType in interface V1.GCEPersistentDiskVolumeSourceOrBuilder
    • getFsType

      public 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;
      Specified by:
      getFsType in interface V1.GCEPersistentDiskVolumeSourceOrBuilder
    • getFsTypeBytes

      public 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;
      Specified by:
      getFsTypeBytes in interface V1.GCEPersistentDiskVolumeSourceOrBuilder
    • setFsType

       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;
    • 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;
    • setFsTypeBytes

      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;
    • hasPartition

      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;
      Specified by:
      hasPartition in interface V1.GCEPersistentDiskVolumeSourceOrBuilder
    • getPartition

      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: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       +optional
       
      optional int32 partition = 3;
      Specified by:
      getPartition in interface V1.GCEPersistentDiskVolumeSourceOrBuilder
    • setPartition

      public 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;
    • 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;
    • 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:
      hasReadOnly in interface V1.GCEPersistentDiskVolumeSourceOrBuilder
    • 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:
      getReadOnly in interface V1.GCEPersistentDiskVolumeSourceOrBuilder
    • setReadOnly

      public 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;
    • 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;
    • setUnknownFields

      public final V1.GCEPersistentDiskVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>
    • mergeUnknownFields

      public final V1.GCEPersistentDiskVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GCEPersistentDiskVolumeSource.Builder>