public static final class FlexibleInstanceGroupConfig.Builder extends GeneratedMessage.Builder<FlexibleInstanceGroupConfig.Builder> implements FlexibleInstanceGroupConfigOrBuilderThe configuration for High Obtainability (HO) flexible instance groups. Flexible instance group configs serve as the single source of truth for desired state.
Protobuf type google.cloud.dataproc.v1.FlexibleInstanceGroupConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > FlexibleInstanceGroupConfig.BuilderImplements
FlexibleInstanceGroupConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public FlexibleInstanceGroupConfig build()| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig |
|
buildPartial()
public FlexibleInstanceGroupConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig |
|
clear()
public FlexibleInstanceGroupConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig.Builder |
|
clearBootDiskSizeGb()
public FlexibleInstanceGroupConfig.Builder clearBootDiskSizeGb()Optional. The boot disk size in GB. This is a create-time specification and is not currently mutable via update masks.
int32 boot_disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig.Builder |
This builder for chaining. |
clearCoreCount()
public FlexibleInstanceGroupConfig.Builder clearCoreCount()Optional. The number of vCPUs per instance. Must be a power of 2 (2, 4, 8, 16, 32). This is a create-time specification and is not currently mutable via update masks.
int32 core_count = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig.Builder |
This builder for chaining. |
clearHardwareClass()
public FlexibleInstanceGroupConfig.Builder clearHardwareClass()Optional. The hardware class of the instances. This is a create-time specification and is not currently mutable via update masks.
.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig.Builder |
This builder for chaining. |
clearNumInstances()
public FlexibleInstanceGroupConfig.Builder clearNumInstances()Optional. The number of VM instances requested.
For master instances, this must be 1. For worker and secondary worker instances, this represents the desired capacity of the group and is mutable via cluster update operations and autoscaling.
int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig.Builder |
This builder for chaining. |
getBootDiskSizeGb()
public int getBootDiskSizeGb()Optional. The boot disk size in GB. This is a create-time specification and is not currently mutable via update masks.
int32 boot_disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The bootDiskSizeGb. |
getCoreCount()
public int getCoreCount()Optional. The number of vCPUs per instance. Must be a power of 2 (2, 4, 8, 16, 32). This is a create-time specification and is not currently mutable via update masks.
int32 core_count = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The coreCount. |
getDefaultInstanceForType()
public FlexibleInstanceGroupConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHardwareClass()
public FlexibleInstanceGroupConfig.HardwareClass getHardwareClass()Optional. The hardware class of the instances. This is a create-time specification and is not currently mutable via update masks.
.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig.HardwareClass |
The hardwareClass. |
getHardwareClassValue()
public int getHardwareClassValue()Optional. The hardware class of the instances. This is a create-time specification and is not currently mutable via update masks.
.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for hardwareClass. |
getNumInstances()
public int getNumInstances()Optional. The number of VM instances requested.
For master instances, this must be 1. For worker and secondary worker instances, this represents the desired capacity of the group and is mutable via cluster update operations and autoscaling.
int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The numInstances. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(FlexibleInstanceGroupConfig other)
public FlexibleInstanceGroupConfig.Builder mergeFrom(FlexibleInstanceGroupConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
FlexibleInstanceGroupConfig |
| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FlexibleInstanceGroupConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public FlexibleInstanceGroupConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig.Builder |
|
setBootDiskSizeGb(int value)
public FlexibleInstanceGroupConfig.Builder setBootDiskSizeGb(int value)Optional. The boot disk size in GB. This is a create-time specification and is not currently mutable via update masks.
int32 boot_disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe bootDiskSizeGb to set. |
| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig.Builder |
This builder for chaining. |
setCoreCount(int value)
public FlexibleInstanceGroupConfig.Builder setCoreCount(int value)Optional. The number of vCPUs per instance. Must be a power of 2 (2, 4, 8, 16, 32). This is a create-time specification and is not currently mutable via update masks.
int32 core_count = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe coreCount to set. |
| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig.Builder |
This builder for chaining. |
setHardwareClass(FlexibleInstanceGroupConfig.HardwareClass value)
public FlexibleInstanceGroupConfig.Builder setHardwareClass(FlexibleInstanceGroupConfig.HardwareClass value)Optional. The hardware class of the instances. This is a create-time specification and is not currently mutable via update masks.
.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
FlexibleInstanceGroupConfig.HardwareClassThe hardwareClass to set. |
| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig.Builder |
This builder for chaining. |
setHardwareClassValue(int value)
public FlexibleInstanceGroupConfig.Builder setHardwareClassValue(int value)Optional. The hardware class of the instances. This is a create-time specification and is not currently mutable via update masks.
.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for hardwareClass to set. |
| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig.Builder |
This builder for chaining. |
setNumInstances(int value)
public FlexibleInstanceGroupConfig.Builder setNumInstances(int value)Optional. The number of VM instances requested.
For master instances, this must be 1. For worker and secondary worker instances, this represents the desired capacity of the group and is mutable via cluster update operations and autoscaling.
int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe numInstances to set. |
| Returns | |
|---|---|
| Type | Description |
FlexibleInstanceGroupConfig.Builder |
This builder for chaining. |