Class DiskConfig.Builder

  • All Implemented Interfaces:
    DiskConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    DiskConfig

    public static final class DiskConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DiskConfig.Builder>
    implements DiskConfigOrBuilder
     Specifies the config of disk options for a group of VM instances.
     
    Protobuf type google.cloud.dataproc.v1.DiskConfig
    • 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<DiskConfig.Builder>
      • clear

        public DiskConfig.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<DiskConfig.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<DiskConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public DiskConfig.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<DiskConfig.Builder>
      • setField

        public DiskConfig.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<DiskConfig.Builder>
      • clearField

        public DiskConfig.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<DiskConfig.Builder>
      • clearOneof

        public DiskConfig.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<DiskConfig.Builder>
      • setRepeatedField

        public DiskConfig.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<DiskConfig.Builder>
      • addRepeatedField

        public DiskConfig.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<DiskConfig.Builder>
      • mergeFrom

        public DiskConfig.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<DiskConfig.Builder>
      • isInitialized

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

        public DiskConfig.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<DiskConfig.Builder>
        Throws:
        IOException
      • getBootDiskType

        public String getBootDiskType()
         Optional. Type of the boot disk (default is "pd-standard").
         Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
         "pd-ssd" (Persistent Disk Solid State Drive),
         or "pd-standard" (Persistent Disk Hard Disk Drive).
         See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
         
        string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getBootDiskType in interface DiskConfigOrBuilder
        Returns:
        The bootDiskType.
      • getBootDiskTypeBytes

        public com.google.protobuf.ByteString getBootDiskTypeBytes()
         Optional. Type of the boot disk (default is "pd-standard").
         Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
         "pd-ssd" (Persistent Disk Solid State Drive),
         or "pd-standard" (Persistent Disk Hard Disk Drive).
         See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
         
        string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getBootDiskTypeBytes in interface DiskConfigOrBuilder
        Returns:
        The bytes for bootDiskType.
      • setBootDiskType

        public DiskConfig.Builder setBootDiskType​(String value)
         Optional. Type of the boot disk (default is "pd-standard").
         Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
         "pd-ssd" (Persistent Disk Solid State Drive),
         or "pd-standard" (Persistent Disk Hard Disk Drive).
         See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
         
        string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bootDiskType to set.
        Returns:
        This builder for chaining.
      • clearBootDiskType

        public DiskConfig.Builder clearBootDiskType()
         Optional. Type of the boot disk (default is "pd-standard").
         Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
         "pd-ssd" (Persistent Disk Solid State Drive),
         or "pd-standard" (Persistent Disk Hard Disk Drive).
         See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
         
        string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setBootDiskTypeBytes

        public DiskConfig.Builder setBootDiskTypeBytes​(com.google.protobuf.ByteString value)
         Optional. Type of the boot disk (default is "pd-standard").
         Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
         "pd-ssd" (Persistent Disk Solid State Drive),
         or "pd-standard" (Persistent Disk Hard Disk Drive).
         See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
         
        string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for bootDiskType to set.
        Returns:
        This builder for chaining.
      • getBootDiskSizeGb

        public int getBootDiskSizeGb()
         Optional. Size in GB of the boot disk (default is 500GB).
         
        int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getBootDiskSizeGb in interface DiskConfigOrBuilder
        Returns:
        The bootDiskSizeGb.
      • setBootDiskSizeGb

        public DiskConfig.Builder setBootDiskSizeGb​(int value)
         Optional. Size in GB of the boot disk (default is 500GB).
         
        int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bootDiskSizeGb to set.
        Returns:
        This builder for chaining.
      • clearBootDiskSizeGb

        public DiskConfig.Builder clearBootDiskSizeGb()
         Optional. Size in GB of the boot disk (default is 500GB).
         
        int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getNumLocalSsds

        public int getNumLocalSsds()
         Optional. Number of attached SSDs, from 0 to 8 (default is 0).
         If SSDs are not attached, the boot disk is used to store runtime logs and
         [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
         If one or more SSDs are attached, this runtime bulk
         data is spread across them, and the boot disk contains only basic
         config and installed binaries.
        
         Note: Local SSD options may vary by machine type and number of vCPUs
         selected.
         
        int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getNumLocalSsds in interface DiskConfigOrBuilder
        Returns:
        The numLocalSsds.
      • setNumLocalSsds

        public DiskConfig.Builder setNumLocalSsds​(int value)
         Optional. Number of attached SSDs, from 0 to 8 (default is 0).
         If SSDs are not attached, the boot disk is used to store runtime logs and
         [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
         If one or more SSDs are attached, this runtime bulk
         data is spread across them, and the boot disk contains only basic
         config and installed binaries.
        
         Note: Local SSD options may vary by machine type and number of vCPUs
         selected.
         
        int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The numLocalSsds to set.
        Returns:
        This builder for chaining.
      • clearNumLocalSsds

        public DiskConfig.Builder clearNumLocalSsds()
         Optional. Number of attached SSDs, from 0 to 8 (default is 0).
         If SSDs are not attached, the boot disk is used to store runtime logs and
         [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
         If one or more SSDs are attached, this runtime bulk
         data is spread across them, and the boot disk contains only basic
         config and installed binaries.
        
         Note: Local SSD options may vary by machine type and number of vCPUs
         selected.
         
        int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getLocalSsdInterface

        public String getLocalSsdInterface()
         Optional. Interface type of local SSDs (default is "scsi").
         Valid values: "scsi" (Small Computer System Interface),
         "nvme" (Non-Volatile Memory Express).
         See [local SSD
         performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
         
        string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLocalSsdInterface in interface DiskConfigOrBuilder
        Returns:
        The localSsdInterface.
      • getLocalSsdInterfaceBytes

        public com.google.protobuf.ByteString getLocalSsdInterfaceBytes()
         Optional. Interface type of local SSDs (default is "scsi").
         Valid values: "scsi" (Small Computer System Interface),
         "nvme" (Non-Volatile Memory Express).
         See [local SSD
         performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
         
        string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLocalSsdInterfaceBytes in interface DiskConfigOrBuilder
        Returns:
        The bytes for localSsdInterface.
      • setLocalSsdInterface

        public DiskConfig.Builder setLocalSsdInterface​(String value)
         Optional. Interface type of local SSDs (default is "scsi").
         Valid values: "scsi" (Small Computer System Interface),
         "nvme" (Non-Volatile Memory Express).
         See [local SSD
         performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
         
        string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The localSsdInterface to set.
        Returns:
        This builder for chaining.
      • clearLocalSsdInterface

        public DiskConfig.Builder clearLocalSsdInterface()
         Optional. Interface type of local SSDs (default is "scsi").
         Valid values: "scsi" (Small Computer System Interface),
         "nvme" (Non-Volatile Memory Express).
         See [local SSD
         performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
         
        string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setLocalSsdInterfaceBytes

        public DiskConfig.Builder setLocalSsdInterfaceBytes​(com.google.protobuf.ByteString value)
         Optional. Interface type of local SSDs (default is "scsi").
         Valid values: "scsi" (Small Computer System Interface),
         "nvme" (Non-Volatile Memory Express).
         See [local SSD
         performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
         
        string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for localSsdInterface to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final DiskConfig.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<DiskConfig.Builder>
      • mergeUnknownFields

        public final DiskConfig.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<DiskConfig.Builder>