Class AutoscalingPolicy.Builder (4.39.0)

public static final class AutoscalingPolicy.Builder extends GeneratedMessageV3.Builder<AutoscalingPolicy.Builder> implements AutoscalingPolicyOrBuilder

Describes an autoscaling policy for Dataproc cluster autoscaler.

Protobuf type google.cloud.dataproc.v1.AutoscalingPolicy

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AutoscalingPolicy build()
Returns
Type Description
AutoscalingPolicy

buildPartial()

public AutoscalingPolicy buildPartial()
Returns
Type Description
AutoscalingPolicy

clear()

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

clearAlgorithm()

public AutoscalingPolicy.Builder clearAlgorithm()
Returns
Type Description
AutoscalingPolicy.Builder

clearBasicAlgorithm()

public AutoscalingPolicy.Builder clearBasicAlgorithm()

.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AutoscalingPolicy.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public AutoscalingPolicy.Builder clearId()

Required. The policy id.

The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.

string id = 1;

Returns
Type Description
AutoscalingPolicy.Builder

This builder for chaining.

clearLabels()

public AutoscalingPolicy.Builder clearLabels()
Returns
Type Description
AutoscalingPolicy.Builder

clearName()

public AutoscalingPolicy.Builder clearName()

Output only. The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}

  • For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}

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

Returns
Type Description
AutoscalingPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSecondaryWorkerConfig()

public AutoscalingPolicy.Builder clearSecondaryWorkerConfig()

Optional. Describes how the autoscaler will operate for secondary workers.

.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoscalingPolicy.Builder

clearWorkerConfig()

public AutoscalingPolicy.Builder clearWorkerConfig()

Required. Describes how the autoscaler will operate for primary workers.

.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AutoscalingPolicy.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with an autoscaling policy.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAlgorithmCase()

public AutoscalingPolicy.AlgorithmCase getAlgorithmCase()
Returns
Type Description
AutoscalingPolicy.AlgorithmCase

getBasicAlgorithm()

public BasicAutoscalingAlgorithm getBasicAlgorithm()

.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BasicAutoscalingAlgorithm

The basicAlgorithm.

getBasicAlgorithmBuilder()

public BasicAutoscalingAlgorithm.Builder getBasicAlgorithmBuilder()

.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BasicAutoscalingAlgorithm.Builder

getBasicAlgorithmOrBuilder()

public BasicAutoscalingAlgorithmOrBuilder getBasicAlgorithmOrBuilder()

.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BasicAutoscalingAlgorithmOrBuilder

getDefaultInstanceForType()

public AutoscalingPolicy getDefaultInstanceForType()
Returns
Type Description
AutoscalingPolicy

getDescriptorForType()

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

getId()

public String getId()

Required. The policy id.

The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Required. The policy id.

The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with an autoscaling policy.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with an autoscaling policy.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with an autoscaling policy.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with an autoscaling policy.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Output only. The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}

  • For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}

  • For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}

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

Returns
Type Description
ByteString

The bytes for name.

getSecondaryWorkerConfig()

public InstanceGroupAutoscalingPolicyConfig getSecondaryWorkerConfig()

Optional. Describes how the autoscaler will operate for secondary workers.

.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceGroupAutoscalingPolicyConfig

The secondaryWorkerConfig.

getSecondaryWorkerConfigBuilder()

public InstanceGroupAutoscalingPolicyConfig.Builder getSecondaryWorkerConfigBuilder()

Optional. Describes how the autoscaler will operate for secondary workers.

.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceGroupAutoscalingPolicyConfig.Builder

getSecondaryWorkerConfigOrBuilder()

public InstanceGroupAutoscalingPolicyConfigOrBuilder getSecondaryWorkerConfigOrBuilder()

Optional. Describes how the autoscaler will operate for secondary workers.

.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceGroupAutoscalingPolicyConfigOrBuilder

getWorkerConfig()

public InstanceGroupAutoscalingPolicyConfig getWorkerConfig()

Required. Describes how the autoscaler will operate for primary workers.

.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InstanceGroupAutoscalingPolicyConfig

The workerConfig.

getWorkerConfigBuilder()

public InstanceGroupAutoscalingPolicyConfig.Builder getWorkerConfigBuilder()

Required. Describes how the autoscaler will operate for primary workers.

.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InstanceGroupAutoscalingPolicyConfig.Builder

getWorkerConfigOrBuilder()

public InstanceGroupAutoscalingPolicyConfigOrBuilder getWorkerConfigOrBuilder()

Required. Describes how the autoscaler will operate for primary workers.

.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InstanceGroupAutoscalingPolicyConfigOrBuilder

hasBasicAlgorithm()

public boolean hasBasicAlgorithm()

.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the basicAlgorithm field is set.

hasSecondaryWorkerConfig()

public boolean hasSecondaryWorkerConfig()

Optional. Describes how the autoscaler will operate for secondary workers.

.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the secondaryWorkerConfig field is set.

hasWorkerConfig()

public boolean hasWorkerConfig()

Required. Describes how the autoscaler will operate for primary workers.

.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the workerConfig field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBasicAlgorithm(BasicAutoscalingAlgorithm value)

public AutoscalingPolicy.Builder mergeBasicAlgorithm(BasicAutoscalingAlgorithm value)

.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BasicAutoscalingAlgorithm
Returns
Type Description
AutoscalingPolicy.Builder

mergeFrom(AutoscalingPolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig value)

public AutoscalingPolicy.Builder mergeSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig value)

Optional. Describes how the autoscaler will operate for secondary workers.

.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value InstanceGroupAutoscalingPolicyConfig
Returns
Type Description
AutoscalingPolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWorkerConfig(InstanceGroupAutoscalingPolicyConfig value)

public AutoscalingPolicy.Builder mergeWorkerConfig(InstanceGroupAutoscalingPolicyConfig value)

Required. Describes how the autoscaler will operate for primary workers.

.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value InstanceGroupAutoscalingPolicyConfig
Returns
Type Description
AutoscalingPolicy.Builder

putAllLabels(Map<String,String> values)

public AutoscalingPolicy.Builder putAllLabels(Map<String,String> values)

Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with an autoscaling policy.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
AutoscalingPolicy.Builder

putLabels(String key, String value)

public AutoscalingPolicy.Builder putLabels(String key, String value)

Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with an autoscaling policy.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
AutoscalingPolicy.Builder

removeLabels(String key)

public AutoscalingPolicy.Builder removeLabels(String key)

Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with an autoscaling policy.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
AutoscalingPolicy.Builder

setBasicAlgorithm(BasicAutoscalingAlgorithm value)

public AutoscalingPolicy.Builder setBasicAlgorithm(BasicAutoscalingAlgorithm value)

.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BasicAutoscalingAlgorithm
Returns
Type Description
AutoscalingPolicy.Builder

setBasicAlgorithm(BasicAutoscalingAlgorithm.Builder builderForValue)

public AutoscalingPolicy.Builder setBasicAlgorithm(BasicAutoscalingAlgorithm.Builder builderForValue)

.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue BasicAutoscalingAlgorithm.Builder
Returns
Type Description
AutoscalingPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public AutoscalingPolicy.Builder setId(String value)

Required. The policy id.

The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
AutoscalingPolicy.Builder

This builder for chaining.

setIdBytes(ByteString value)

public AutoscalingPolicy.Builder setIdBytes(ByteString value)

Required. The policy id.

The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
AutoscalingPolicy.Builder

This builder for chaining.

setName(String value)

public AutoscalingPolicy.Builder setName(String value)

Output only. The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}

  • For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AutoscalingPolicy.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AutoscalingPolicy.Builder setNameBytes(ByteString value)

Output only. The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}

  • For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AutoscalingPolicy.Builder

This builder for chaining.

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

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

setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig value)

public AutoscalingPolicy.Builder setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig value)

Optional. Describes how the autoscaler will operate for secondary workers.

.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value InstanceGroupAutoscalingPolicyConfig
Returns
Type Description
AutoscalingPolicy.Builder

setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.Builder builderForValue)

public AutoscalingPolicy.Builder setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.Builder builderForValue)

Optional. Describes how the autoscaler will operate for secondary workers.

.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue InstanceGroupAutoscalingPolicyConfig.Builder
Returns
Type Description
AutoscalingPolicy.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setWorkerConfig(InstanceGroupAutoscalingPolicyConfig value)

public AutoscalingPolicy.Builder setWorkerConfig(InstanceGroupAutoscalingPolicyConfig value)

Required. Describes how the autoscaler will operate for primary workers.

.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value InstanceGroupAutoscalingPolicyConfig
Returns
Type Description
AutoscalingPolicy.Builder

setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.Builder builderForValue)

public AutoscalingPolicy.Builder setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.Builder builderForValue)

Required. Describes how the autoscaler will operate for primary workers.

.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue InstanceGroupAutoscalingPolicyConfig.Builder
Returns
Type Description
AutoscalingPolicy.Builder