Class Generated.GCEPersistentDiskVolumeSource.Builder

    • Method Detail

      • 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<Generated.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<Generated.GCEPersistentDiskVolumeSource.Builder>
      • getDefaultInstanceForType

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.GCEPersistentDiskVolumeSource.Builder>
      • 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:
        hasPdName in interface Generated.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:
        getPdName in interface Generated.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:
        getPdNameBytes in interface Generated.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:
        hasFsType in interface Generated.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:
        getFsType in interface Generated.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:
        getFsTypeBytes in interface Generated.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:
        hasPartition in interface Generated.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:
        getPartition in interface Generated.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:
        hasReadOnly in interface Generated.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:
        getReadOnly in interface Generated.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.