public final class AutoscalingPolicy extends com.google.protobuf.GeneratedMessageV3 implements AutoscalingPolicyOrBuilder
Describes an autoscaling policy for Dataproc cluster autoscaler.Protobuf type
google.cloud.dataproc.v1.AutoscalingPolicy| Modifier and Type | Class and Description |
|---|---|
static class |
AutoscalingPolicy.AlgorithmCase |
static class |
AutoscalingPolicy.Builder
Describes an autoscaling policy for Dataproc cluster autoscaler.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BASIC_ALGORITHM_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
SECONDARY_WORKER_CONFIG_FIELD_NUMBER |
static int |
WORKER_CONFIG_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
Optional.
|
boolean |
equals(Object obj) |
AutoscalingPolicy.AlgorithmCase |
getAlgorithmCase() |
BasicAutoscalingAlgorithm |
getBasicAlgorithm()
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
|
BasicAutoscalingAlgorithmOrBuilder |
getBasicAlgorithmOrBuilder()
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
|
static AutoscalingPolicy |
getDefaultInstance() |
AutoscalingPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getId()
Required.
|
com.google.protobuf.ByteString |
getIdBytes()
Required.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Optional.
|
Map<String,String> |
getLabelsMap()
Optional.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Optional.
|
String |
getLabelsOrThrow(String key)
Optional.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
com.google.protobuf.Parser<AutoscalingPolicy> |
getParserForType() |
InstanceGroupAutoscalingPolicyConfig |
getSecondaryWorkerConfig()
Optional.
|
InstanceGroupAutoscalingPolicyConfigOrBuilder |
getSecondaryWorkerConfigOrBuilder()
Optional.
|
int |
getSerializedSize() |
InstanceGroupAutoscalingPolicyConfig |
getWorkerConfig()
Required.
|
InstanceGroupAutoscalingPolicyConfigOrBuilder |
getWorkerConfigOrBuilder()
Required.
|
boolean |
hasBasicAlgorithm()
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
|
int |
hashCode() |
boolean |
hasSecondaryWorkerConfig()
Optional.
|
boolean |
hasWorkerConfig()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static AutoscalingPolicy.Builder |
newBuilder() |
static AutoscalingPolicy.Builder |
newBuilder(AutoscalingPolicy prototype) |
AutoscalingPolicy.Builder |
newBuilderForType() |
protected AutoscalingPolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AutoscalingPolicy |
parseDelimitedFrom(InputStream input) |
static AutoscalingPolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AutoscalingPolicy |
parseFrom(byte[] data) |
static AutoscalingPolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AutoscalingPolicy |
parseFrom(ByteBuffer data) |
static AutoscalingPolicy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AutoscalingPolicy |
parseFrom(com.google.protobuf.ByteString data) |
static AutoscalingPolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AutoscalingPolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AutoscalingPolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AutoscalingPolicy |
parseFrom(InputStream input) |
static AutoscalingPolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AutoscalingPolicy> |
parser() |
AutoscalingPolicy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ID_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int BASIC_ALGORITHM_FIELD_NUMBER
public static final int WORKER_CONFIG_FIELD_NUMBER
public static final int SECONDARY_WORKER_CONFIG_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public AutoscalingPolicy.AlgorithmCase getAlgorithmCase()
getAlgorithmCase in interface AutoscalingPolicyOrBuilderpublic 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AutoscalingPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static AutoscalingPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AutoscalingPolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AutoscalingPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AutoscalingPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AutoscalingPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AutoscalingPolicy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AutoscalingPolicy.Builder newBuilder()
public static AutoscalingPolicy.Builder newBuilder(AutoscalingPolicy prototype)
public AutoscalingPolicy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AutoscalingPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AutoscalingPolicy getDefaultInstance()
public static com.google.protobuf.Parser<AutoscalingPolicy> parser()
public com.google.protobuf.Parser<AutoscalingPolicy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AutoscalingPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.