Class InstanceGroupConfig.Builder (4.49.0)

public static final class InstanceGroupConfig.Builder extends GeneratedMessageV3.Builder<InstanceGroupConfig.Builder> implements InstanceGroupConfigOrBuilder

The config settings for Compute Engine resources in an instance group, such as a master or worker group.

Protobuf type google.cloud.dataproc.v1.InstanceGroupConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAccelerators(AcceleratorConfig value)

public InstanceGroupConfig.Builder addAccelerators(AcceleratorConfig value)

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AcceleratorConfig
Returns
Type Description
InstanceGroupConfig.Builder

addAccelerators(AcceleratorConfig.Builder builderForValue)

public InstanceGroupConfig.Builder addAccelerators(AcceleratorConfig.Builder builderForValue)

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AcceleratorConfig.Builder
Returns
Type Description
InstanceGroupConfig.Builder

addAccelerators(int index, AcceleratorConfig value)

public InstanceGroupConfig.Builder addAccelerators(int index, AcceleratorConfig value)

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AcceleratorConfig
Returns
Type Description
InstanceGroupConfig.Builder

addAccelerators(int index, AcceleratorConfig.Builder builderForValue)

public InstanceGroupConfig.Builder addAccelerators(int index, AcceleratorConfig.Builder builderForValue)

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AcceleratorConfig.Builder
Returns
Type Description
InstanceGroupConfig.Builder

addAcceleratorsBuilder()

public AcceleratorConfig.Builder addAcceleratorsBuilder()

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AcceleratorConfig.Builder

addAcceleratorsBuilder(int index)

public AcceleratorConfig.Builder addAcceleratorsBuilder(int index)

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AcceleratorConfig.Builder

addAllAccelerators(Iterable<? extends AcceleratorConfig> values)

public InstanceGroupConfig.Builder addAllAccelerators(Iterable<? extends AcceleratorConfig> values)

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dataproc.v1.AcceleratorConfig>
Returns
Type Description
InstanceGroupConfig.Builder

addAllInstanceNames(Iterable<String> values)

public InstanceGroupConfig.Builder addAllInstanceNames(Iterable<String> values)

Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.

repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The instanceNames to add.

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

addAllInstanceReferences(Iterable<? extends InstanceReference> values)

public InstanceGroupConfig.Builder addAllInstanceReferences(Iterable<? extends InstanceReference> values)

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dataproc.v1.InstanceReference>
Returns
Type Description
InstanceGroupConfig.Builder

addInstanceNames(String value)

public InstanceGroupConfig.Builder addInstanceNames(String value)

Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.

repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The instanceNames to add.

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

addInstanceNamesBytes(ByteString value)

public InstanceGroupConfig.Builder addInstanceNamesBytes(ByteString value)

Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.

repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the instanceNames to add.

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

addInstanceReferences(InstanceReference value)

public InstanceGroupConfig.Builder addInstanceReferences(InstanceReference value)

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value InstanceReference
Returns
Type Description
InstanceGroupConfig.Builder

addInstanceReferences(InstanceReference.Builder builderForValue)

public InstanceGroupConfig.Builder addInstanceReferences(InstanceReference.Builder builderForValue)

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue InstanceReference.Builder
Returns
Type Description
InstanceGroupConfig.Builder

addInstanceReferences(int index, InstanceReference value)

public InstanceGroupConfig.Builder addInstanceReferences(int index, InstanceReference value)

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value InstanceReference
Returns
Type Description
InstanceGroupConfig.Builder

addInstanceReferences(int index, InstanceReference.Builder builderForValue)

public InstanceGroupConfig.Builder addInstanceReferences(int index, InstanceReference.Builder builderForValue)

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue InstanceReference.Builder
Returns
Type Description
InstanceGroupConfig.Builder

addInstanceReferencesBuilder()

public InstanceReference.Builder addInstanceReferencesBuilder()

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InstanceReference.Builder

addInstanceReferencesBuilder(int index)

public InstanceReference.Builder addInstanceReferencesBuilder(int index)

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
InstanceReference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstanceGroupConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstanceGroupConfig.Builder
Overrides

build()

public InstanceGroupConfig build()
Returns
Type Description
InstanceGroupConfig

buildPartial()

public InstanceGroupConfig buildPartial()
Returns
Type Description
InstanceGroupConfig

clear()

public InstanceGroupConfig.Builder clear()
Returns
Type Description
InstanceGroupConfig.Builder
Overrides

clearAccelerators()

public InstanceGroupConfig.Builder clearAccelerators()

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceGroupConfig.Builder

clearDiskConfig()

public InstanceGroupConfig.Builder clearDiskConfig()

Optional. Disk option config settings.

.google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceGroupConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public InstanceGroupConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InstanceGroupConfig.Builder
Overrides

clearImageUri()

public InstanceGroupConfig.Builder clearImageUri()

Optional. The Compute Engine image resource used for cluster instances.

The URI can represent an image or image family.

Image examples:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id]
  • projects/[project_id]/global/images/[image-id]
  • image-id

    Image family examples. Dataproc will use the most recent image from the family:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name]

  • projects/[project_id]/global/images/family/[custom-image-family-name]

    If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.

string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

clearInstanceFlexibilityPolicy()

public InstanceGroupConfig.Builder clearInstanceFlexibilityPolicy()

Optional. Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.

.google.cloud.dataproc.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceGroupConfig.Builder

clearInstanceNames()

public InstanceGroupConfig.Builder clearInstanceNames()

Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.

repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

clearInstanceReferences()

public InstanceGroupConfig.Builder clearInstanceReferences()

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InstanceGroupConfig.Builder

clearIsPreemptible()

public InstanceGroupConfig.Builder clearIsPreemptible()

Output only. Specifies that this instance group contains preemptible instances.

bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

clearMachineTypeUri()

public InstanceGroupConfig.Builder clearMachineTypeUri()

Optional. The Compute Engine machine type used for cluster instances.

A full URL, partial URI, or short name are valid. Examples:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2
  • projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2
  • n1-standard-2

    Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2.

string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

clearManagedGroupConfig()

public InstanceGroupConfig.Builder clearManagedGroupConfig()

Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.

.google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InstanceGroupConfig.Builder

clearMinCpuPlatform()

public InstanceGroupConfig.Builder clearMinCpuPlatform()

Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -> Minimum CPU Platform.

string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

clearMinNumInstances()

public InstanceGroupConfig.Builder clearMinNumInstances()

Optional. The minimum number of primary worker instances to create. If min_num_instances is set, cluster creation will succeed if the number of primary workers created is at least equal to the min_num_instances number.

Example: Cluster creation request with num_instances = 5 and min_num_instances = 3:

  • If 4 VMs are created and 1 instance fails, the failed VM is deleted. The cluster is resized to 4 instances and placed in a RUNNING state.
  • If 2 instances are created and 3 instances fail, the cluster in placed in an ERROR state. The failed VMs are not deleted.

int32 min_num_instances = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

clearNumInstances()

public InstanceGroupConfig.Builder clearNumInstances()

Optional. The number of VM instances in the instance group. For HA cluster master_config groups, must be set to 3. For standard cluster master_config groups, must be set to 1.

int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceGroupConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InstanceGroupConfig.Builder
Overrides

clearPreemptibility()

public InstanceGroupConfig.Builder clearPreemptibility()

Optional. Specifies the preemptibility of the instance group.

The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.

The default value for secondary instances is PREEMPTIBLE.

.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

clearStartupConfig()

public InstanceGroupConfig.Builder clearStartupConfig()

Optional. Configuration to handle the startup of instances during cluster create and update process.

.google.cloud.dataproc.v1.StartupConfig startup_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceGroupConfig.Builder

clone()

public InstanceGroupConfig.Builder clone()
Returns
Type Description
InstanceGroupConfig.Builder
Overrides

getAccelerators(int index)

public AcceleratorConfig getAccelerators(int index)

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AcceleratorConfig

getAcceleratorsBuilder(int index)

public AcceleratorConfig.Builder getAcceleratorsBuilder(int index)

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AcceleratorConfig.Builder

getAcceleratorsBuilderList()

public List<AcceleratorConfig.Builder> getAcceleratorsBuilderList()

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getAcceleratorsCount()

public int getAcceleratorsCount()

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAcceleratorsList()

public List<AcceleratorConfig> getAcceleratorsList()

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AcceleratorConfig>

getAcceleratorsOrBuilder(int index)

public AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index)

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AcceleratorConfigOrBuilder

getAcceleratorsOrBuilderList()

public List<? extends AcceleratorConfigOrBuilder> getAcceleratorsOrBuilderList()

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder>

getDefaultInstanceForType()

public InstanceGroupConfig getDefaultInstanceForType()
Returns
Type Description
InstanceGroupConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDiskConfig()

public DiskConfig getDiskConfig()

Optional. Disk option config settings.

.google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DiskConfig

The diskConfig.

getDiskConfigBuilder()

public DiskConfig.Builder getDiskConfigBuilder()

Optional. Disk option config settings.

.google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DiskConfig.Builder

getDiskConfigOrBuilder()

public DiskConfigOrBuilder getDiskConfigOrBuilder()

Optional. Disk option config settings.

.google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DiskConfigOrBuilder

getImageUri()

public String getImageUri()

Optional. The Compute Engine image resource used for cluster instances.

The URI can represent an image or image family.

Image examples:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id]
  • projects/[project_id]/global/images/[image-id]
  • image-id

    Image family examples. Dataproc will use the most recent image from the family:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name]

  • projects/[project_id]/global/images/family/[custom-image-family-name]

    If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.

string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The imageUri.

getImageUriBytes()

public ByteString getImageUriBytes()

Optional. The Compute Engine image resource used for cluster instances.

The URI can represent an image or image family.

Image examples:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id]
  • projects/[project_id]/global/images/[image-id]
  • image-id

    Image family examples. Dataproc will use the most recent image from the family:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name]

  • projects/[project_id]/global/images/family/[custom-image-family-name]

    If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.

string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for imageUri.

getInstanceFlexibilityPolicy()

public InstanceFlexibilityPolicy getInstanceFlexibilityPolicy()

Optional. Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.

.google.cloud.dataproc.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceFlexibilityPolicy

The instanceFlexibilityPolicy.

getInstanceFlexibilityPolicyBuilder()

public InstanceFlexibilityPolicy.Builder getInstanceFlexibilityPolicyBuilder()

Optional. Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.

.google.cloud.dataproc.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceFlexibilityPolicy.Builder

getInstanceFlexibilityPolicyOrBuilder()

public InstanceFlexibilityPolicyOrBuilder getInstanceFlexibilityPolicyOrBuilder()

Optional. Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.

.google.cloud.dataproc.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceFlexibilityPolicyOrBuilder

getInstanceNames(int index)

public String getInstanceNames(int index)

Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.

repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The instanceNames at the given index.

getInstanceNamesBytes(int index)

public ByteString getInstanceNamesBytes(int index)

Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.

repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the instanceNames at the given index.

getInstanceNamesCount()

public int getInstanceNamesCount()

Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.

repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of instanceNames.

getInstanceNamesList()

public ProtocolStringList getInstanceNamesList()

Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.

repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the instanceNames.

getInstanceReferences(int index)

public InstanceReference getInstanceReferences(int index)

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
InstanceReference

getInstanceReferencesBuilder(int index)

public InstanceReference.Builder getInstanceReferencesBuilder(int index)

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
InstanceReference.Builder

getInstanceReferencesBuilderList()

public List<InstanceReference.Builder> getInstanceReferencesBuilderList()

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getInstanceReferencesCount()

public int getInstanceReferencesCount()

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getInstanceReferencesList()

public List<InstanceReference> getInstanceReferencesList()

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<InstanceReference>

getInstanceReferencesOrBuilder(int index)

public InstanceReferenceOrBuilder getInstanceReferencesOrBuilder(int index)

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
InstanceReferenceOrBuilder

getInstanceReferencesOrBuilderList()

public List<? extends InstanceReferenceOrBuilder> getInstanceReferencesOrBuilderList()

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.dataproc.v1.InstanceReferenceOrBuilder>

getIsPreemptible()

public boolean getIsPreemptible()

Output only. Specifies that this instance group contains preemptible instances.

bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The isPreemptible.

getMachineTypeUri()

public String getMachineTypeUri()

Optional. The Compute Engine machine type used for cluster instances.

A full URL, partial URI, or short name are valid. Examples:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2
  • projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2
  • n1-standard-2

    Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2.

string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The machineTypeUri.

getMachineTypeUriBytes()

public ByteString getMachineTypeUriBytes()

Optional. The Compute Engine machine type used for cluster instances.

A full URL, partial URI, or short name are valid. Examples:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2
  • projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2
  • n1-standard-2

    Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2.

string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for machineTypeUri.

getManagedGroupConfig()

public ManagedGroupConfig getManagedGroupConfig()

Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.

.google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ManagedGroupConfig

The managedGroupConfig.

getManagedGroupConfigBuilder()

public ManagedGroupConfig.Builder getManagedGroupConfigBuilder()

Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.

.google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ManagedGroupConfig.Builder

getManagedGroupConfigOrBuilder()

public ManagedGroupConfigOrBuilder getManagedGroupConfigOrBuilder()

Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.

.google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ManagedGroupConfigOrBuilder

getMinCpuPlatform()

public String getMinCpuPlatform()

Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -> Minimum CPU Platform.

string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The minCpuPlatform.

getMinCpuPlatformBytes()

public ByteString getMinCpuPlatformBytes()

Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -> Minimum CPU Platform.

string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for minCpuPlatform.

getMinNumInstances()

public int getMinNumInstances()

Optional. The minimum number of primary worker instances to create. If min_num_instances is set, cluster creation will succeed if the number of primary workers created is at least equal to the min_num_instances number.

Example: Cluster creation request with num_instances = 5 and min_num_instances = 3:

  • If 4 VMs are created and 1 instance fails, the failed VM is deleted. The cluster is resized to 4 instances and placed in a RUNNING state.
  • If 2 instances are created and 3 instances fail, the cluster in placed in an ERROR state. The failed VMs are not deleted.

int32 min_num_instances = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The minNumInstances.

getNumInstances()

public int getNumInstances()

Optional. The number of VM instances in the instance group. For HA cluster master_config groups, must be set to 3. For standard cluster master_config groups, must be set to 1.

int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The numInstances.

getPreemptibility()

public InstanceGroupConfig.Preemptibility getPreemptibility()

Optional. Specifies the preemptibility of the instance group.

The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.

The default value for secondary instances is PREEMPTIBLE.

.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceGroupConfig.Preemptibility

The preemptibility.

getPreemptibilityValue()

public int getPreemptibilityValue()

Optional. Specifies the preemptibility of the instance group.

The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.

The default value for secondary instances is PREEMPTIBLE.

.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for preemptibility.

getStartupConfig()

public StartupConfig getStartupConfig()

Optional. Configuration to handle the startup of instances during cluster create and update process.

.google.cloud.dataproc.v1.StartupConfig startup_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StartupConfig

The startupConfig.

getStartupConfigBuilder()

public StartupConfig.Builder getStartupConfigBuilder()

Optional. Configuration to handle the startup of instances during cluster create and update process.

.google.cloud.dataproc.v1.StartupConfig startup_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StartupConfig.Builder

getStartupConfigOrBuilder()

public StartupConfigOrBuilder getStartupConfigOrBuilder()

Optional. Configuration to handle the startup of instances during cluster create and update process.

.google.cloud.dataproc.v1.StartupConfig startup_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StartupConfigOrBuilder

hasDiskConfig()

public boolean hasDiskConfig()

Optional. Disk option config settings.

.google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the diskConfig field is set.

hasInstanceFlexibilityPolicy()

public boolean hasInstanceFlexibilityPolicy()

Optional. Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.

.google.cloud.dataproc.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the instanceFlexibilityPolicy field is set.

hasManagedGroupConfig()

public boolean hasManagedGroupConfig()

Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.

.google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the managedGroupConfig field is set.

hasStartupConfig()

public boolean hasStartupConfig()

Optional. Configuration to handle the startup of instances during cluster create and update process.

.google.cloud.dataproc.v1.StartupConfig startup_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the startupConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDiskConfig(DiskConfig value)

public InstanceGroupConfig.Builder mergeDiskConfig(DiskConfig value)

Optional. Disk option config settings.

.google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DiskConfig
Returns
Type Description
InstanceGroupConfig.Builder

mergeFrom(InstanceGroupConfig other)

public InstanceGroupConfig.Builder mergeFrom(InstanceGroupConfig other)
Parameter
Name Description
other InstanceGroupConfig
Returns
Type Description
InstanceGroupConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceGroupConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceGroupConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InstanceGroupConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InstanceGroupConfig.Builder
Overrides

mergeInstanceFlexibilityPolicy(InstanceFlexibilityPolicy value)

public InstanceGroupConfig.Builder mergeInstanceFlexibilityPolicy(InstanceFlexibilityPolicy value)

Optional. Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.

.google.cloud.dataproc.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value InstanceFlexibilityPolicy
Returns
Type Description
InstanceGroupConfig.Builder

mergeManagedGroupConfig(ManagedGroupConfig value)

public InstanceGroupConfig.Builder mergeManagedGroupConfig(ManagedGroupConfig value)

Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.

.google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ManagedGroupConfig
Returns
Type Description
InstanceGroupConfig.Builder

mergeStartupConfig(StartupConfig value)

public InstanceGroupConfig.Builder mergeStartupConfig(StartupConfig value)

Optional. Configuration to handle the startup of instances during cluster create and update process.

.google.cloud.dataproc.v1.StartupConfig startup_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value StartupConfig
Returns
Type Description
InstanceGroupConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceGroupConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceGroupConfig.Builder
Overrides

removeAccelerators(int index)

public InstanceGroupConfig.Builder removeAccelerators(int index)

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
InstanceGroupConfig.Builder

removeInstanceReferences(int index)

public InstanceGroupConfig.Builder removeInstanceReferences(int index)

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
InstanceGroupConfig.Builder

setAccelerators(int index, AcceleratorConfig value)

public InstanceGroupConfig.Builder setAccelerators(int index, AcceleratorConfig value)

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AcceleratorConfig
Returns
Type Description
InstanceGroupConfig.Builder

setAccelerators(int index, AcceleratorConfig.Builder builderForValue)

public InstanceGroupConfig.Builder setAccelerators(int index, AcceleratorConfig.Builder builderForValue)

Optional. The Compute Engine accelerator configuration for these instances.

repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AcceleratorConfig.Builder
Returns
Type Description
InstanceGroupConfig.Builder

setDiskConfig(DiskConfig value)

public InstanceGroupConfig.Builder setDiskConfig(DiskConfig value)

Optional. Disk option config settings.

.google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DiskConfig
Returns
Type Description
InstanceGroupConfig.Builder

setDiskConfig(DiskConfig.Builder builderForValue)

public InstanceGroupConfig.Builder setDiskConfig(DiskConfig.Builder builderForValue)

Optional. Disk option config settings.

.google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue DiskConfig.Builder
Returns
Type Description
InstanceGroupConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceGroupConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstanceGroupConfig.Builder
Overrides

setImageUri(String value)

public InstanceGroupConfig.Builder setImageUri(String value)

Optional. The Compute Engine image resource used for cluster instances.

The URI can represent an image or image family.

Image examples:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id]
  • projects/[project_id]/global/images/[image-id]
  • image-id

    Image family examples. Dataproc will use the most recent image from the family:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name]

  • projects/[project_id]/global/images/family/[custom-image-family-name]

    If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.

string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The imageUri to set.

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

setImageUriBytes(ByteString value)

public InstanceGroupConfig.Builder setImageUriBytes(ByteString value)

Optional. The Compute Engine image resource used for cluster instances.

The URI can represent an image or image family.

Image examples:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id]
  • projects/[project_id]/global/images/[image-id]
  • image-id

    Image family examples. Dataproc will use the most recent image from the family:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name]

  • projects/[project_id]/global/images/family/[custom-image-family-name]

    If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.

string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for imageUri to set.

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

setInstanceFlexibilityPolicy(InstanceFlexibilityPolicy value)

public InstanceGroupConfig.Builder setInstanceFlexibilityPolicy(InstanceFlexibilityPolicy value)

Optional. Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.

.google.cloud.dataproc.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value InstanceFlexibilityPolicy
Returns
Type Description
InstanceGroupConfig.Builder

setInstanceFlexibilityPolicy(InstanceFlexibilityPolicy.Builder builderForValue)

public InstanceGroupConfig.Builder setInstanceFlexibilityPolicy(InstanceFlexibilityPolicy.Builder builderForValue)

Optional. Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.

.google.cloud.dataproc.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue InstanceFlexibilityPolicy.Builder
Returns
Type Description
InstanceGroupConfig.Builder

setInstanceNames(int index, String value)

public InstanceGroupConfig.Builder setInstanceNames(int index, String value)

Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.

repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The instanceNames to set.

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

setInstanceReferences(int index, InstanceReference value)

public InstanceGroupConfig.Builder setInstanceReferences(int index, InstanceReference value)

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value InstanceReference
Returns
Type Description
InstanceGroupConfig.Builder

setInstanceReferences(int index, InstanceReference.Builder builderForValue)

public InstanceGroupConfig.Builder setInstanceReferences(int index, InstanceReference.Builder builderForValue)

Output only. List of references to Compute Engine instances.

repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue InstanceReference.Builder
Returns
Type Description
InstanceGroupConfig.Builder

setIsPreemptible(boolean value)

public InstanceGroupConfig.Builder setIsPreemptible(boolean value)

Output only. Specifies that this instance group contains preemptible instances.

bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The isPreemptible to set.

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

setMachineTypeUri(String value)

public InstanceGroupConfig.Builder setMachineTypeUri(String value)

Optional. The Compute Engine machine type used for cluster instances.

A full URL, partial URI, or short name are valid. Examples:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2
  • projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2
  • n1-standard-2

    Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2.

string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The machineTypeUri to set.

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

setMachineTypeUriBytes(ByteString value)

public InstanceGroupConfig.Builder setMachineTypeUriBytes(ByteString value)

Optional. The Compute Engine machine type used for cluster instances.

A full URL, partial URI, or short name are valid. Examples:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2
  • projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2
  • n1-standard-2

    Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2.

string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for machineTypeUri to set.

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

setManagedGroupConfig(ManagedGroupConfig value)

public InstanceGroupConfig.Builder setManagedGroupConfig(ManagedGroupConfig value)

Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.

.google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ManagedGroupConfig
Returns
Type Description
InstanceGroupConfig.Builder

setManagedGroupConfig(ManagedGroupConfig.Builder builderForValue)

public InstanceGroupConfig.Builder setManagedGroupConfig(ManagedGroupConfig.Builder builderForValue)

Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.

.google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ManagedGroupConfig.Builder
Returns
Type Description
InstanceGroupConfig.Builder

setMinCpuPlatform(String value)

public InstanceGroupConfig.Builder setMinCpuPlatform(String value)

Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -> Minimum CPU Platform.

string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The minCpuPlatform to set.

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

setMinCpuPlatformBytes(ByteString value)

public InstanceGroupConfig.Builder setMinCpuPlatformBytes(ByteString value)

Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -> Minimum CPU Platform.

string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for minCpuPlatform to set.

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

setMinNumInstances(int value)

public InstanceGroupConfig.Builder setMinNumInstances(int value)

Optional. The minimum number of primary worker instances to create. If min_num_instances is set, cluster creation will succeed if the number of primary workers created is at least equal to the min_num_instances number.

Example: Cluster creation request with num_instances = 5 and min_num_instances = 3:

  • If 4 VMs are created and 1 instance fails, the failed VM is deleted. The cluster is resized to 4 instances and placed in a RUNNING state.
  • If 2 instances are created and 3 instances fail, the cluster in placed in an ERROR state. The failed VMs are not deleted.

int32 min_num_instances = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The minNumInstances to set.

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

setNumInstances(int value)

public InstanceGroupConfig.Builder setNumInstances(int value)

Optional. The number of VM instances in the instance group. For HA cluster master_config groups, must be set to 3. For standard cluster master_config groups, must be set to 1.

int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The numInstances to set.

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

setPreemptibility(InstanceGroupConfig.Preemptibility value)

public InstanceGroupConfig.Builder setPreemptibility(InstanceGroupConfig.Preemptibility value)

Optional. Specifies the preemptibility of the instance group.

The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.

The default value for secondary instances is PREEMPTIBLE.

.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value InstanceGroupConfig.Preemptibility

The preemptibility to set.

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

setPreemptibilityValue(int value)

public InstanceGroupConfig.Builder setPreemptibilityValue(int value)

Optional. Specifies the preemptibility of the instance group.

The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.

The default value for secondary instances is PREEMPTIBLE.

.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for preemptibility to set.

Returns
Type Description
InstanceGroupConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InstanceGroupConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InstanceGroupConfig.Builder
Overrides

setStartupConfig(StartupConfig value)

public InstanceGroupConfig.Builder setStartupConfig(StartupConfig value)

Optional. Configuration to handle the startup of instances during cluster create and update process.

.google.cloud.dataproc.v1.StartupConfig startup_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value StartupConfig
Returns
Type Description
InstanceGroupConfig.Builder

setStartupConfig(StartupConfig.Builder builderForValue)

public InstanceGroupConfig.Builder setStartupConfig(StartupConfig.Builder builderForValue)

Optional. Configuration to handle the startup of instances during cluster create and update process.

.google.cloud.dataproc.v1.StartupConfig startup_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue StartupConfig.Builder
Returns
Type Description
InstanceGroupConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceGroupConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceGroupConfig.Builder
Overrides