- 4.48.0 (latest)
- 4.46.0
- 4.45.0
- 4.44.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.34.0
- 4.33.0
- 4.32.0
- 4.31.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.21.0
- 4.20.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.16.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.0
- 4.8.0
- 4.6.0
- 4.5.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.8
- 3.1.2
- 3.0.3
- 2.3.1
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InstanceGroupConfig.BuilderImplements
InstanceGroupConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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];
Name | Description |
value | AcceleratorConfig |
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];
Name | Description |
builderForValue | AcceleratorConfig.Builder |
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];
Name | Description |
index | int |
value | AcceleratorConfig |
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];
Name | Description |
index | int |
builderForValue | AcceleratorConfig.Builder |
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];
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];
Name | Description |
index | int |
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];
Name | Description |
values | Iterable<? extends com.google.cloud.dataproc.v1.AcceleratorConfig> |
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];
Name | Description |
values | Iterable<String> The instanceNames to add. |
Type | Description |
InstanceGroupConfig.Builder | This builder for chaining. |
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];
Name | Description |
value | String The instanceNames to add. |
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];
Name | Description |
value | ByteString The bytes of the instanceNames to add. |
Type | Description |
InstanceGroupConfig.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InstanceGroupConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
InstanceGroupConfig.Builder |
build()
public InstanceGroupConfig build()
Type | Description |
InstanceGroupConfig |
buildPartial()
public InstanceGroupConfig buildPartial()
Type | Description |
InstanceGroupConfig |
clear()
public InstanceGroupConfig.Builder clear()
Type | Description |
InstanceGroupConfig.Builder |
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];
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];
Type | Description |
InstanceGroupConfig.Builder |
clearField(Descriptors.FieldDescriptor field)
public InstanceGroupConfig.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
InstanceGroupConfig.Builder |
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/beta/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/beta/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 fromSoftwareConfig.image_version
or the system default.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
InstanceGroupConfig.Builder | This builder for chaining. |
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];
Type | Description |
InstanceGroupConfig.Builder | This builder for chaining. |
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];
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/us-east1-a/machineTypes/n1-standard-2
projects/[project_id]/zones/us-east1-a/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];
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];
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];
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];
Type | Description |
InstanceGroupConfig.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public InstanceGroupConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
InstanceGroupConfig.Builder |
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];
Type | Description |
InstanceGroupConfig.Builder | This builder for chaining. |
clone()
public InstanceGroupConfig.Builder clone()
Type | Description |
InstanceGroupConfig.Builder |
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];
Name | Description |
index | int |
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];
Name | Description |
index | int |
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];
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];
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];
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];
Name | Description |
index | int |
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];
Type | Description |
List<? extends com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder> |
getDefaultInstanceForType()
public InstanceGroupConfig getDefaultInstanceForType()
Type | Description |
InstanceGroupConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDiskConfig()
public DiskConfig getDiskConfig()
Optional. Disk option config settings.
.google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL];
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];
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];
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/beta/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/beta/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 fromSoftwareConfig.image_version
or the system default.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
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/beta/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/beta/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 fromSoftwareConfig.image_version
or the system default.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString | The bytes for imageUri. |
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];
Name | Description |
index | int The index of the element to return. |
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];
Name | Description |
index | int The index of the value to return. |
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];
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];
Type | Description |
ProtocolStringList | A list containing the instanceNames. |
getIsPreemptible()
public boolean getIsPreemptible()
Output only. Specifies that this instance group contains preemptible instances.
bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
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/us-east1-a/machineTypes/n1-standard-2
projects/[project_id]/zones/us-east1-a/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];
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/us-east1-a/machineTypes/n1-standard-2
projects/[project_id]/zones/us-east1-a/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];
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];
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];
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];
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];
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];
Type | Description |
ByteString | The bytes for minCpuPlatform. |
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];
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];
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];
Type | Description |
int | The enum numeric value on the wire for preemptibility. |
hasDiskConfig()
public boolean hasDiskConfig()
Optional. Disk option config settings.
.google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
boolean | Whether the diskConfig 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];
Type | Description |
boolean | Whether the managedGroupConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
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];
Name | Description |
value | DiskConfig |
Type | Description |
InstanceGroupConfig.Builder |
mergeFrom(InstanceGroupConfig other)
public InstanceGroupConfig.Builder mergeFrom(InstanceGroupConfig other)
Name | Description |
other | InstanceGroupConfig |
Type | Description |
InstanceGroupConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InstanceGroupConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
InstanceGroupConfig.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public InstanceGroupConfig.Builder mergeFrom(Message other)
Name | Description |
other | Message |
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];
Name | Description |
value | ManagedGroupConfig |
Type | Description |
InstanceGroupConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InstanceGroupConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
InstanceGroupConfig.Builder |
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];
Name | Description |
index | int |
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];
Name | Description |
index | int |
value | AcceleratorConfig |
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];
Name | Description |
index | int |
builderForValue | AcceleratorConfig.Builder |
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];
Name | Description |
value | DiskConfig |
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];
Name | Description |
builderForValue | DiskConfig.Builder |
Type | Description |
InstanceGroupConfig.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public InstanceGroupConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
InstanceGroupConfig.Builder |
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/beta/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/beta/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 fromSoftwareConfig.image_version
or the system default.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | String The imageUri to set. |
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/beta/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/beta/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 fromSoftwareConfig.image_version
or the system default.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ByteString The bytes for imageUri to set. |
Type | Description |
InstanceGroupConfig.Builder | This builder for chaining. |
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];
Name | Description |
index | int The index to set the value at. |
value | String The instanceNames to set. |
Type | Description |
InstanceGroupConfig.Builder | This builder for chaining. |
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];
Name | Description |
value | boolean The isPreemptible to set. |
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/us-east1-a/machineTypes/n1-standard-2
projects/[project_id]/zones/us-east1-a/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];
Name | Description |
value | String The machineTypeUri to set. |
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/us-east1-a/machineTypes/n1-standard-2
projects/[project_id]/zones/us-east1-a/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];
Name | Description |
value | ByteString The bytes for machineTypeUri to set. |
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];
Name | Description |
value | ManagedGroupConfig |
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];
Name | Description |
builderForValue | ManagedGroupConfig.Builder |
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];
Name | Description |
value | String The minCpuPlatform to set. |
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];
Name | Description |
value | ByteString The bytes for minCpuPlatform to set. |
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];
Name | Description |
value | int The numInstances to set. |
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];
Name | Description |
value | InstanceGroupConfig.Preemptibility The preemptibility to set. |
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];
Name | Description |
value | int The enum numeric value on the wire for preemptibility to set. |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
InstanceGroupConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final InstanceGroupConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
InstanceGroupConfig.Builder |