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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RuntimeUpdatableParams.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<RuntimeUpdatableParams.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RuntimeUpdatableParams.Builder>
    • getDefaultInstanceForType

      public RuntimeUpdatableParams getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public RuntimeUpdatableParams build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RuntimeUpdatableParams buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RuntimeUpdatableParams.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RuntimeUpdatableParams.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasMaxNumWorkers in interface RuntimeUpdatableParamsOrBuilder
      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:
      getMaxNumWorkers in interface RuntimeUpdatableParamsOrBuilder
      Returns:
      The maxNumWorkers.
    • setMaxNumWorkers

      public RuntimeUpdatableParams.Builder setMaxNumWorkers(int value)
       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

      public RuntimeUpdatableParams.Builder 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:
      hasMinNumWorkers in interface RuntimeUpdatableParamsOrBuilder
      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:
      getMinNumWorkers in interface RuntimeUpdatableParamsOrBuilder
      Returns:
      The minNumWorkers.
    • setMinNumWorkers

      public RuntimeUpdatableParams.Builder setMinNumWorkers(int value)
       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

      public RuntimeUpdatableParams.Builder 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:
      hasWorkerUtilizationHint in interface RuntimeUpdatableParamsOrBuilder
      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:
      getWorkerUtilizationHint in interface RuntimeUpdatableParamsOrBuilder
      Returns:
      The workerUtilizationHint.
    • setWorkerUtilizationHint

      public RuntimeUpdatableParams.Builder 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.
       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

      public RuntimeUpdatableParams.Builder 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 public boolean hasAcceptableBacklogDuration()
      Deprecated.
      google.dataflow.v1beta3.RuntimeUpdatableParams.acceptable_backlog_duration is deprecated. See google/dataflow/v1beta3/jobs.proto;l=352
       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:
      hasAcceptableBacklogDuration in interface RuntimeUpdatableParamsOrBuilder
      Returns:
      Whether the acceptableBacklogDuration field is set.
    • getAcceptableBacklogDuration

      @Deprecated public com.google.protobuf.Duration getAcceptableBacklogDuration()
      Deprecated.
      google.dataflow.v1beta3.RuntimeUpdatableParams.acceptable_backlog_duration is deprecated. See google/dataflow/v1beta3/jobs.proto;l=352
       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:
      getAcceptableBacklogDuration in interface RuntimeUpdatableParamsOrBuilder
      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 public RuntimeUpdatableParams.Builder 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 public com.google.protobuf.Duration.Builder 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 public com.google.protobuf.DurationOrBuilder 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:
      getAcceptableBacklogDurationOrBuilder in interface RuntimeUpdatableParamsOrBuilder
    • 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:
      hasAutoscalingTier in interface RuntimeUpdatableParamsOrBuilder
      Returns:
      Whether the autoscalingTier field is set.
    • getAutoscalingTier

      public String 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:
      getAutoscalingTier in interface RuntimeUpdatableParamsOrBuilder
      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:
      getAutoscalingTierBytes in interface RuntimeUpdatableParamsOrBuilder
      Returns:
      The bytes for autoscalingTier.
    • setAutoscalingTier

      public RuntimeUpdatableParams.Builder setAutoscalingTier(String value)
       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

      public RuntimeUpdatableParams.Builder 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

      public RuntimeUpdatableParams.Builder setAutoscalingTierBytes(com.google.protobuf.ByteString value)
       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.