public static final class AutoscalingPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder> implements AutoscalingPolicyOrBuilder
Describes an autoscaling policy for Dataproc cluster autoscaler.Protobuf type
google.cloud.dataproc.v1.AutoscalingPolicygetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>public AutoscalingPolicy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>public AutoscalingPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AutoscalingPolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AutoscalingPolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AutoscalingPolicy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>public AutoscalingPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>public AutoscalingPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>public AutoscalingPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>public AutoscalingPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>public AutoscalingPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>public AutoscalingPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AutoscalingPolicy.Builder>public AutoscalingPolicy.Builder mergeFrom(AutoscalingPolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>public AutoscalingPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AutoscalingPolicy.Builder>IOExceptionpublic AutoscalingPolicy.AlgorithmCase getAlgorithmCase()
getAlgorithmCase in interface AutoscalingPolicyOrBuilderpublic AutoscalingPolicy.Builder clearAlgorithm()
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;getId in interface AutoscalingPolicyOrBuilderpublic com.google.protobuf.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;getIdBytes in interface AutoscalingPolicyOrBuilderpublic 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;value - The id to set.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;public AutoscalingPolicy.Builder setIdBytes(com.google.protobuf.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;value - The bytes for id to set.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];getName in interface AutoscalingPolicyOrBuilderpublic com.google.protobuf.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];getNameBytes in interface AutoscalingPolicyOrBuilderpublic 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];value - The name to set.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];public AutoscalingPolicy.Builder setNameBytes(com.google.protobuf.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];value - The bytes for name to set.public boolean hasBasicAlgorithm()
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
hasBasicAlgorithm in interface AutoscalingPolicyOrBuilderpublic BasicAutoscalingAlgorithm getBasicAlgorithm()
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
getBasicAlgorithm in interface AutoscalingPolicyOrBuilderpublic AutoscalingPolicy.Builder setBasicAlgorithm(BasicAutoscalingAlgorithm value)
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
public AutoscalingPolicy.Builder setBasicAlgorithm(BasicAutoscalingAlgorithm.Builder builderForValue)
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
public AutoscalingPolicy.Builder mergeBasicAlgorithm(BasicAutoscalingAlgorithm value)
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
public AutoscalingPolicy.Builder clearBasicAlgorithm()
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
public BasicAutoscalingAlgorithm.Builder getBasicAlgorithmBuilder()
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
public BasicAutoscalingAlgorithmOrBuilder getBasicAlgorithmOrBuilder()
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
getBasicAlgorithmOrBuilder in interface AutoscalingPolicyOrBuilderpublic 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];
hasWorkerConfig in interface AutoscalingPolicyOrBuilderpublic 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];
getWorkerConfig in interface AutoscalingPolicyOrBuilderpublic 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];
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];
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];
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];
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];
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];
getWorkerConfigOrBuilder in interface AutoscalingPolicyOrBuilderpublic 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];
hasSecondaryWorkerConfig in interface AutoscalingPolicyOrBuilderpublic 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];
getSecondaryWorkerConfig in interface AutoscalingPolicyOrBuilderpublic 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];
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];
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];
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];
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];
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];
getSecondaryWorkerConfigOrBuilder in interface AutoscalingPolicyOrBuilderpublic int getLabelsCount()
AutoscalingPolicyOrBuilderOptional. The labels to associate with this autoscaling policy. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an autoscaling policy.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];getLabelsCount in interface AutoscalingPolicyOrBuilderpublic 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](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an autoscaling policy.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];containsLabels in interface AutoscalingPolicyOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface AutoscalingPolicyOrBuilderpublic 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](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an autoscaling policy.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];getLabelsMap in interface AutoscalingPolicyOrBuilderpublic 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](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an autoscaling policy.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];getLabelsOrDefault in interface AutoscalingPolicyOrBuilderpublic 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](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an autoscaling policy.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];getLabelsOrThrow in interface AutoscalingPolicyOrBuilderpublic AutoscalingPolicy.Builder clearLabels()
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](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an autoscaling policy.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];@Deprecated public Map<String,String> getMutableLabels()
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](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an autoscaling policy.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];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](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an autoscaling policy.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];public final AutoscalingPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>public final AutoscalingPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>Copyright © 2024 Google LLC. All rights reserved.