Package com.google.dataflow.v1beta3
Class RuntimeUpdatableParams.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RuntimeUpdatableParams.Builder>
com.google.dataflow.v1beta3.RuntimeUpdatableParams.Builder
- All Implemented Interfaces:
RuntimeUpdatableParamsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RuntimeUpdatableParams
public static final class RuntimeUpdatableParams.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RuntimeUpdatableParams.Builder>
implements RuntimeUpdatableParamsOrBuilder
Additional job parameters that can only be updated during runtime using the projects.jobs.update method. These fields have no effect when specified during job creation.Protobuf type
google.dataflow.v1beta3.RuntimeUpdatableParams-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Deprecated.Optional.The maximum number of workers to cap autoscaling at.The minimum number of workers to scale down to.Target worker utilization, compared against the aggregate utilization of the worker pool by autoscaler, to determine upscaling and downscaling when absent other constraints such as backlog.com.google.protobuf.DurationDeprecated.google.dataflow.v1beta3.RuntimeUpdatableParams.acceptable_backlog_duration is deprecated.com.google.protobuf.Duration.BuilderDeprecated.com.google.protobuf.DurationOrBuilderDeprecated.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe maximum number of workers to cap autoscaling at.intThe minimum number of workers to scale down to.doubleTarget worker utilization, compared against the aggregate utilization of the worker pool by autoscaler, to determine upscaling and downscaling when absent other constraints such as backlog.booleanDeprecated.google.dataflow.v1beta3.RuntimeUpdatableParams.acceptable_backlog_duration is deprecated.booleanOptional.booleanThe maximum number of workers to cap autoscaling at.booleanThe minimum number of workers to scale down to.booleanTarget worker utilization, compared against the aggregate utilization of the worker pool by autoscaler, to determine upscaling and downscaling when absent other constraints such as backlog.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAcceptableBacklogDuration(com.google.protobuf.Duration value) Deprecated.mergeFrom(RuntimeUpdatableParams other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAcceptableBacklogDuration(com.google.protobuf.Duration value) Deprecated.setAcceptableBacklogDuration(com.google.protobuf.Duration.Builder builderForValue) Deprecated.setAutoscalingTier(String value) Optional.setAutoscalingTierBytes(com.google.protobuf.ByteString value) Optional.setMaxNumWorkers(int value) The maximum number of workers to cap autoscaling at.setMinNumWorkers(int value) The minimum number of workers to scale down to.setWorkerUtilizationHint(double value) Target worker utilization, compared against the aggregate utilization of the worker pool by autoscaler, to determine upscaling and downscaling when absent other constraints such as backlog.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RuntimeUpdatableParams.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RuntimeUpdatableParams.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RuntimeUpdatableParams.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RuntimeUpdatableParams.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RuntimeUpdatableParams.Builder>
-
mergeFrom
public RuntimeUpdatableParams.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RuntimeUpdatableParams.Builder>- Throws:
IOException
-
hasMaxNumWorkers
public boolean hasMaxNumWorkers()The maximum number of workers to cap autoscaling at. This field is currently only supported for Streaming Engine jobs.
optional int32 max_num_workers = 1;- Specified by:
hasMaxNumWorkersin interfaceRuntimeUpdatableParamsOrBuilder- Returns:
- Whether the maxNumWorkers field is set.
-
getMaxNumWorkers
public int getMaxNumWorkers()The maximum number of workers to cap autoscaling at. This field is currently only supported for Streaming Engine jobs.
optional int32 max_num_workers = 1;- Specified by:
getMaxNumWorkersin interfaceRuntimeUpdatableParamsOrBuilder- Returns:
- The maxNumWorkers.
-
setMaxNumWorkers
The maximum number of workers to cap autoscaling at. This field is currently only supported for Streaming Engine jobs.
optional int32 max_num_workers = 1;- Parameters:
value- The maxNumWorkers to set.- Returns:
- This builder for chaining.
-
clearMaxNumWorkers
The maximum number of workers to cap autoscaling at. This field is currently only supported for Streaming Engine jobs.
optional int32 max_num_workers = 1;- Returns:
- This builder for chaining.
-
hasMinNumWorkers
public boolean hasMinNumWorkers()The minimum number of workers to scale down to. This field is currently only supported for Streaming Engine jobs.
optional int32 min_num_workers = 2;- Specified by:
hasMinNumWorkersin interfaceRuntimeUpdatableParamsOrBuilder- Returns:
- Whether the minNumWorkers field is set.
-
getMinNumWorkers
public int getMinNumWorkers()The minimum number of workers to scale down to. This field is currently only supported for Streaming Engine jobs.
optional int32 min_num_workers = 2;- Specified by:
getMinNumWorkersin interfaceRuntimeUpdatableParamsOrBuilder- Returns:
- The minNumWorkers.
-
setMinNumWorkers
The minimum number of workers to scale down to. This field is currently only supported for Streaming Engine jobs.
optional int32 min_num_workers = 2;- Parameters:
value- The minNumWorkers to set.- Returns:
- This builder for chaining.
-
clearMinNumWorkers
The minimum number of workers to scale down to. This field is currently only supported for Streaming Engine jobs.
optional int32 min_num_workers = 2;- Returns:
- This builder for chaining.
-
hasWorkerUtilizationHint
public boolean hasWorkerUtilizationHint()Target worker utilization, compared against the aggregate utilization of the worker pool by autoscaler, to determine upscaling and downscaling when absent other constraints such as backlog. For more information, see [Update an existing pipeline](https://cloud.google.com/dataflow/docs/guides/updating-a-pipeline).
optional double worker_utilization_hint = 3;- Specified by:
hasWorkerUtilizationHintin interfaceRuntimeUpdatableParamsOrBuilder- Returns:
- Whether the workerUtilizationHint field is set.
-
getWorkerUtilizationHint
public double getWorkerUtilizationHint()Target worker utilization, compared against the aggregate utilization of the worker pool by autoscaler, to determine upscaling and downscaling when absent other constraints such as backlog. For more information, see [Update an existing pipeline](https://cloud.google.com/dataflow/docs/guides/updating-a-pipeline).
optional double worker_utilization_hint = 3;- Specified by:
getWorkerUtilizationHintin interfaceRuntimeUpdatableParamsOrBuilder- Returns:
- The workerUtilizationHint.
-
setWorkerUtilizationHint
Target worker utilization, compared against the aggregate utilization of the worker pool by autoscaler, to determine upscaling and downscaling when absent other constraints such as backlog. For more information, see [Update an existing pipeline](https://cloud.google.com/dataflow/docs/guides/updating-a-pipeline).
optional double worker_utilization_hint = 3;- Parameters:
value- The workerUtilizationHint to set.- Returns:
- This builder for chaining.
-
clearWorkerUtilizationHint
Target worker utilization, compared against the aggregate utilization of the worker pool by autoscaler, to determine upscaling and downscaling when absent other constraints such as backlog. For more information, see [Update an existing pipeline](https://cloud.google.com/dataflow/docs/guides/updating-a-pipeline).
optional double worker_utilization_hint = 3;- Returns:
- This builder for chaining.
-
hasAcceptableBacklogDuration
Deprecated.google.dataflow.v1beta3.RuntimeUpdatableParams.acceptable_backlog_duration is deprecated. See google/dataflow/v1beta3/jobs.proto;l=352Optional. Deprecated: Use `autoscaling_tier` instead. The backlog threshold duration in seconds for autoscaling. Value must be non-negative.
optional .google.protobuf.Duration acceptable_backlog_duration = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
hasAcceptableBacklogDurationin interfaceRuntimeUpdatableParamsOrBuilder- Returns:
- Whether the acceptableBacklogDuration field is set.
-
getAcceptableBacklogDuration
Deprecated.google.dataflow.v1beta3.RuntimeUpdatableParams.acceptable_backlog_duration is deprecated. See google/dataflow/v1beta3/jobs.proto;l=352Optional. Deprecated: Use `autoscaling_tier` instead. The backlog threshold duration in seconds for autoscaling. Value must be non-negative.
optional .google.protobuf.Duration acceptable_backlog_duration = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getAcceptableBacklogDurationin interfaceRuntimeUpdatableParamsOrBuilder- Returns:
- The acceptableBacklogDuration.
-
setAcceptableBacklogDuration
@Deprecated public RuntimeUpdatableParams.Builder setAcceptableBacklogDuration(com.google.protobuf.Duration value) Deprecated.Optional. Deprecated: Use `autoscaling_tier` instead. The backlog threshold duration in seconds for autoscaling. Value must be non-negative.
optional .google.protobuf.Duration acceptable_backlog_duration = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; -
setAcceptableBacklogDuration
@Deprecated public RuntimeUpdatableParams.Builder setAcceptableBacklogDuration(com.google.protobuf.Duration.Builder builderForValue) Deprecated.Optional. Deprecated: Use `autoscaling_tier` instead. The backlog threshold duration in seconds for autoscaling. Value must be non-negative.
optional .google.protobuf.Duration acceptable_backlog_duration = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; -
mergeAcceptableBacklogDuration
@Deprecated public RuntimeUpdatableParams.Builder mergeAcceptableBacklogDuration(com.google.protobuf.Duration value) Deprecated.Optional. Deprecated: Use `autoscaling_tier` instead. The backlog threshold duration in seconds for autoscaling. Value must be non-negative.
optional .google.protobuf.Duration acceptable_backlog_duration = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; -
clearAcceptableBacklogDuration
Deprecated.Optional. Deprecated: Use `autoscaling_tier` instead. The backlog threshold duration in seconds for autoscaling. Value must be non-negative.
optional .google.protobuf.Duration acceptable_backlog_duration = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; -
getAcceptableBacklogDurationBuilder
Deprecated.Optional. Deprecated: Use `autoscaling_tier` instead. The backlog threshold duration in seconds for autoscaling. Value must be non-negative.
optional .google.protobuf.Duration acceptable_backlog_duration = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; -
getAcceptableBacklogDurationOrBuilder
Deprecated.Optional. Deprecated: Use `autoscaling_tier` instead. The backlog threshold duration in seconds for autoscaling. Value must be non-negative.
optional .google.protobuf.Duration acceptable_backlog_duration = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getAcceptableBacklogDurationOrBuilderin interfaceRuntimeUpdatableParamsOrBuilder
-
hasAutoscalingTier
public boolean hasAutoscalingTier()Optional. The backlog threshold tier for autoscaling. Value must be one of "low-latency", "medium-latency", or "high-latency".
optional string autoscaling_tier = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasAutoscalingTierin interfaceRuntimeUpdatableParamsOrBuilder- Returns:
- Whether the autoscalingTier field is set.
-
getAutoscalingTier
Optional. The backlog threshold tier for autoscaling. Value must be one of "low-latency", "medium-latency", or "high-latency".
optional string autoscaling_tier = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAutoscalingTierin interfaceRuntimeUpdatableParamsOrBuilder- Returns:
- The autoscalingTier.
-
getAutoscalingTierBytes
public com.google.protobuf.ByteString getAutoscalingTierBytes()Optional. The backlog threshold tier for autoscaling. Value must be one of "low-latency", "medium-latency", or "high-latency".
optional string autoscaling_tier = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAutoscalingTierBytesin interfaceRuntimeUpdatableParamsOrBuilder- Returns:
- The bytes for autoscalingTier.
-
setAutoscalingTier
Optional. The backlog threshold tier for autoscaling. Value must be one of "low-latency", "medium-latency", or "high-latency".
optional string autoscaling_tier = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The autoscalingTier to set.- Returns:
- This builder for chaining.
-
clearAutoscalingTier
Optional. The backlog threshold tier for autoscaling. Value must be one of "low-latency", "medium-latency", or "high-latency".
optional string autoscaling_tier = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setAutoscalingTierBytes
Optional. The backlog threshold tier for autoscaling. Value must be one of "low-latency", "medium-latency", or "high-latency".
optional string autoscaling_tier = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for autoscalingTier to set.- Returns:
- This builder for chaining.
-