public static final class InstanceGroupAutoscalingPolicyConfig.Builder extends GeneratedMessageV3.Builder<InstanceGroupAutoscalingPolicyConfig.Builder> implements InstanceGroupAutoscalingPolicyConfigOrBuilder
Configuration for the size bounds of an instance group, including its proportional size to other groups.Protobuf type
google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<InstanceGroupAutoscalingPolicyConfig.Builder>
public InstanceGroupAutoscalingPolicyConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<InstanceGroupAutoscalingPolicyConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<InstanceGroupAutoscalingPolicyConfig.Builder>
public InstanceGroupAutoscalingPolicyConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public InstanceGroupAutoscalingPolicyConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public InstanceGroupAutoscalingPolicyConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public InstanceGroupAutoscalingPolicyConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<InstanceGroupAutoscalingPolicyConfig.Builder>
public InstanceGroupAutoscalingPolicyConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<InstanceGroupAutoscalingPolicyConfig.Builder>
public InstanceGroupAutoscalingPolicyConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<InstanceGroupAutoscalingPolicyConfig.Builder>
public InstanceGroupAutoscalingPolicyConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<InstanceGroupAutoscalingPolicyConfig.Builder>
public InstanceGroupAutoscalingPolicyConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<InstanceGroupAutoscalingPolicyConfig.Builder>
public InstanceGroupAutoscalingPolicyConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<InstanceGroupAutoscalingPolicyConfig.Builder>
public InstanceGroupAutoscalingPolicyConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<InstanceGroupAutoscalingPolicyConfig.Builder>
public InstanceGroupAutoscalingPolicyConfig.Builder mergeFrom(InstanceGroupAutoscalingPolicyConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<InstanceGroupAutoscalingPolicyConfig.Builder>
public InstanceGroupAutoscalingPolicyConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<InstanceGroupAutoscalingPolicyConfig.Builder>
IOException
public int getMinInstances()
Optional. Minimum number of instances for this group. Primary workers - Bounds: [2, max_instances]. Default: 2. Secondary workers - Bounds: [0, max_instances]. Default: 0.
int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL];
getMinInstances
in interface InstanceGroupAutoscalingPolicyConfigOrBuilder
public InstanceGroupAutoscalingPolicyConfig.Builder setMinInstances(int value)
Optional. Minimum number of instances for this group. Primary workers - Bounds: [2, max_instances]. Default: 2. Secondary workers - Bounds: [0, max_instances]. Default: 0.
int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL];
value
- The minInstances to set.public InstanceGroupAutoscalingPolicyConfig.Builder clearMinInstances()
Optional. Minimum number of instances for this group. Primary workers - Bounds: [2, max_instances]. Default: 2. Secondary workers - Bounds: [0, max_instances]. Default: 0.
int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL];
public int getMaxInstances()
Required. Maximum number of instances for this group. Required for primary workers. Note that by default, clusters will not use secondary workers. Required for secondary workers if the minimum secondary instances is set. Primary workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances, ). Default: 0.
int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED];
getMaxInstances
in interface InstanceGroupAutoscalingPolicyConfigOrBuilder
public InstanceGroupAutoscalingPolicyConfig.Builder setMaxInstances(int value)
Required. Maximum number of instances for this group. Required for primary workers. Note that by default, clusters will not use secondary workers. Required for secondary workers if the minimum secondary instances is set. Primary workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances, ). Default: 0.
int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED];
value
- The maxInstances to set.public InstanceGroupAutoscalingPolicyConfig.Builder clearMaxInstances()
Required. Maximum number of instances for this group. Required for primary workers. Note that by default, clusters will not use secondary workers. Required for secondary workers if the minimum secondary instances is set. Primary workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances, ). Default: 0.
int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED];
public int getWeight()
Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker. The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if `max_instances` for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created. If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.
int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL];
getWeight
in interface InstanceGroupAutoscalingPolicyConfigOrBuilder
public InstanceGroupAutoscalingPolicyConfig.Builder setWeight(int value)
Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker. The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if `max_instances` for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created. If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.
int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL];
value
- The weight to set.public InstanceGroupAutoscalingPolicyConfig.Builder clearWeight()
Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker. The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if `max_instances` for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created. If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.
int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL];
public final InstanceGroupAutoscalingPolicyConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<InstanceGroupAutoscalingPolicyConfig.Builder>
public final InstanceGroupAutoscalingPolicyConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<InstanceGroupAutoscalingPolicyConfig.Builder>
Copyright © 2022 Google LLC. All rights reserved.