Package com.google.cloud.dataproc.v1
Class AutoscalingPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
-
- com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder
-
- All Implemented Interfaces:
AutoscalingPolicyOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- AutoscalingPolicy
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 typegoogle.cloud.dataproc.v1.AutoscalingPolicy
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
-
clear
public AutoscalingPolicy.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
-
getDefaultInstanceForType
public AutoscalingPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AutoscalingPolicy build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AutoscalingPolicy buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AutoscalingPolicy.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
-
setField
public AutoscalingPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
-
clearField
public AutoscalingPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
-
clearOneof
public AutoscalingPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
-
setRepeatedField
public AutoscalingPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
-
addRepeatedField
public AutoscalingPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
-
mergeFrom
public AutoscalingPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AutoscalingPolicy.Builder>
-
mergeFrom
public AutoscalingPolicy.Builder mergeFrom(AutoscalingPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
-
mergeFrom
public AutoscalingPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AutoscalingPolicy.Builder>
- Throws:
IOException
-
getAlgorithmCase
public AutoscalingPolicy.AlgorithmCase getAlgorithmCase()
- Specified by:
getAlgorithmCase
in interfaceAutoscalingPolicyOrBuilder
-
clearAlgorithm
public AutoscalingPolicy.Builder clearAlgorithm()
-
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;
- Specified by:
getId
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- The id.
-
getIdBytes
public 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;
- Specified by:
getIdBytes
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- The bytes for id.
-
setId
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;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setIdBytes
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;
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getName
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- The name.
-
getNameBytes
public 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];
- Specified by:
getNameBytes
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- The bytes for name.
-
setName
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];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasBasicAlgorithm
public boolean hasBasicAlgorithm()
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
hasBasicAlgorithm
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- Whether the basicAlgorithm field is set.
-
getBasicAlgorithm
public BasicAutoscalingAlgorithm getBasicAlgorithm()
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getBasicAlgorithm
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- The basicAlgorithm.
-
setBasicAlgorithm
public AutoscalingPolicy.Builder setBasicAlgorithm(BasicAutoscalingAlgorithm value)
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
-
setBasicAlgorithm
public AutoscalingPolicy.Builder setBasicAlgorithm(BasicAutoscalingAlgorithm.Builder builderForValue)
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
-
mergeBasicAlgorithm
public AutoscalingPolicy.Builder mergeBasicAlgorithm(BasicAutoscalingAlgorithm value)
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
-
clearBasicAlgorithm
public AutoscalingPolicy.Builder clearBasicAlgorithm()
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
-
getBasicAlgorithmBuilder
public BasicAutoscalingAlgorithm.Builder getBasicAlgorithmBuilder()
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
-
getBasicAlgorithmOrBuilder
public BasicAutoscalingAlgorithmOrBuilder getBasicAlgorithmOrBuilder()
.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getBasicAlgorithmOrBuilder
in interfaceAutoscalingPolicyOrBuilder
-
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];
- Specified by:
hasWorkerConfig
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- Whether the workerConfig field is set.
-
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];
- Specified by:
getWorkerConfig
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- The workerConfig.
-
setWorkerConfig
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];
-
setWorkerConfig
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];
-
mergeWorkerConfig
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];
-
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];
-
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];
-
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];
- Specified by:
getWorkerConfigOrBuilder
in interfaceAutoscalingPolicyOrBuilder
-
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];
- Specified by:
hasSecondaryWorkerConfig
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- Whether the secondaryWorkerConfig field is set.
-
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];
- Specified by:
getSecondaryWorkerConfig
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- The secondaryWorkerConfig.
-
setSecondaryWorkerConfig
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];
-
setSecondaryWorkerConfig
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];
-
mergeSecondaryWorkerConfig
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];
-
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];
-
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];
-
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];
- Specified by:
getSecondaryWorkerConfigOrBuilder
in interfaceAutoscalingPolicyOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:AutoscalingPolicyOrBuilder
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];
- Specified by:
getLabelsCount
in interfaceAutoscalingPolicyOrBuilder
-
containsLabels
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](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];
- Specified by:
containsLabels
in interfaceAutoscalingPolicyOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceAutoscalingPolicyOrBuilder
-
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](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];
- Specified by:
getLabelsMap
in interfaceAutoscalingPolicyOrBuilder
-
getLabelsOrDefault
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](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];
- Specified by:
getLabelsOrDefault
in interfaceAutoscalingPolicyOrBuilder
-
getLabelsOrThrow
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](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];
- Specified by:
getLabelsOrThrow
in interfaceAutoscalingPolicyOrBuilder
-
clearLabels
public AutoscalingPolicy.Builder clearLabels()
-
removeLabels
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];
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
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];
-
putAllLabels
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];
-
setUnknownFields
public final AutoscalingPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
-
mergeUnknownFields
public final AutoscalingPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
-
-