Class ComputeConfigScalingGroup.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ComputeConfigScalingGroup.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ComputeConfigScalingGroup.Builder>
io.temporal.api.compute.v1.ComputeConfigScalingGroup.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ComputeConfigScalingGroupOrBuilder, Cloneable
Enclosing class:
ComputeConfigScalingGroup

public static final class ComputeConfigScalingGroup.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ComputeConfigScalingGroup.Builder> implements ComputeConfigScalingGroupOrBuilder
Protobuf type temporal.api.compute.v1.ComputeConfigScalingGroup
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeConfigScalingGroup.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.GeneratedMessageV3.Builder<ComputeConfigScalingGroup.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.GeneratedMessageV3.Builder<ComputeConfigScalingGroup.Builder>
    • getDefaultInstanceForType

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

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeConfigScalingGroup.Builder>
    • setField

      public ComputeConfigScalingGroup.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeConfigScalingGroup.Builder>
    • clearField

      public ComputeConfigScalingGroup.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeConfigScalingGroup.Builder>
    • clearOneof

      public ComputeConfigScalingGroup.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeConfigScalingGroup.Builder>
    • setRepeatedField

      public ComputeConfigScalingGroup.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeConfigScalingGroup.Builder>
    • addRepeatedField

      public ComputeConfigScalingGroup.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeConfigScalingGroup.Builder>
    • mergeFrom

      public ComputeConfigScalingGroup.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<ComputeConfigScalingGroup.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeConfigScalingGroup.Builder>
    • mergeFrom

      public ComputeConfigScalingGroup.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<ComputeConfigScalingGroup.Builder>
      Throws:
      IOException
    • getTaskQueueTypesList

      public List<TaskQueueType> getTaskQueueTypesList()
       Optional. The set of task queue types this scaling group serves.
       If not provided, this scaling group serves all not otherwise defined
       task types.
       
      repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 1;
      Specified by:
      getTaskQueueTypesList in interface ComputeConfigScalingGroupOrBuilder
      Returns:
      A list containing the taskQueueTypes.
    • getTaskQueueTypesCount

      public int getTaskQueueTypesCount()
       Optional. The set of task queue types this scaling group serves.
       If not provided, this scaling group serves all not otherwise defined
       task types.
       
      repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 1;
      Specified by:
      getTaskQueueTypesCount in interface ComputeConfigScalingGroupOrBuilder
      Returns:
      The count of taskQueueTypes.
    • getTaskQueueTypes

      public TaskQueueType getTaskQueueTypes(int index)
       Optional. The set of task queue types this scaling group serves.
       If not provided, this scaling group serves all not otherwise defined
       task types.
       
      repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 1;
      Specified by:
      getTaskQueueTypes in interface ComputeConfigScalingGroupOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The taskQueueTypes at the given index.
    • setTaskQueueTypes

      public ComputeConfigScalingGroup.Builder setTaskQueueTypes(int index, TaskQueueType value)
       Optional. The set of task queue types this scaling group serves.
       If not provided, this scaling group serves all not otherwise defined
       task types.
       
      repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 1;
      Parameters:
      index - The index to set the value at.
      value - The taskQueueTypes to set.
      Returns:
      This builder for chaining.
    • addTaskQueueTypes

      public ComputeConfigScalingGroup.Builder addTaskQueueTypes(TaskQueueType value)
       Optional. The set of task queue types this scaling group serves.
       If not provided, this scaling group serves all not otherwise defined
       task types.
       
      repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 1;
      Parameters:
      value - The taskQueueTypes to add.
      Returns:
      This builder for chaining.
    • addAllTaskQueueTypes

      public ComputeConfigScalingGroup.Builder addAllTaskQueueTypes(Iterable<? extends TaskQueueType> values)
       Optional. The set of task queue types this scaling group serves.
       If not provided, this scaling group serves all not otherwise defined
       task types.
       
      repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 1;
      Parameters:
      values - The taskQueueTypes to add.
      Returns:
      This builder for chaining.
    • clearTaskQueueTypes

      public ComputeConfigScalingGroup.Builder clearTaskQueueTypes()
       Optional. The set of task queue types this scaling group serves.
       If not provided, this scaling group serves all not otherwise defined
       task types.
       
      repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 1;
      Returns:
      This builder for chaining.
    • getTaskQueueTypesValueList

      public List<Integer> getTaskQueueTypesValueList()
       Optional. The set of task queue types this scaling group serves.
       If not provided, this scaling group serves all not otherwise defined
       task types.
       
      repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 1;
      Specified by:
      getTaskQueueTypesValueList in interface ComputeConfigScalingGroupOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for taskQueueTypes.
    • getTaskQueueTypesValue

      public int getTaskQueueTypesValue(int index)
       Optional. The set of task queue types this scaling group serves.
       If not provided, this scaling group serves all not otherwise defined
       task types.
       
      repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 1;
      Specified by:
      getTaskQueueTypesValue in interface ComputeConfigScalingGroupOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of taskQueueTypes at the given index.
    • setTaskQueueTypesValue

      public ComputeConfigScalingGroup.Builder setTaskQueueTypesValue(int index, int value)
       Optional. The set of task queue types this scaling group serves.
       If not provided, this scaling group serves all not otherwise defined
       task types.
       
      repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 1;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for taskQueueTypes to set.
      Returns:
      This builder for chaining.
    • addTaskQueueTypesValue

      public ComputeConfigScalingGroup.Builder addTaskQueueTypesValue(int value)
       Optional. The set of task queue types this scaling group serves.
       If not provided, this scaling group serves all not otherwise defined
       task types.
       
      repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 1;
      Parameters:
      value - The enum numeric value on the wire for taskQueueTypes to add.
      Returns:
      This builder for chaining.
    • addAllTaskQueueTypesValue

      public ComputeConfigScalingGroup.Builder addAllTaskQueueTypesValue(Iterable<Integer> values)
       Optional. The set of task queue types this scaling group serves.
       If not provided, this scaling group serves all not otherwise defined
       task types.
       
      repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 1;
      Parameters:
      values - The enum numeric values on the wire for taskQueueTypes to add.
      Returns:
      This builder for chaining.
    • hasProvider

      public boolean hasProvider()
       Stores instructions for a worker control plane controller how to respond
       to worker lifeycle events.
       
      .temporal.api.compute.v1.ComputeProvider provider = 3;
      Specified by:
      hasProvider in interface ComputeConfigScalingGroupOrBuilder
      Returns:
      Whether the provider field is set.
    • getProvider

      public ComputeProvider getProvider()
       Stores instructions for a worker control plane controller how to respond
       to worker lifeycle events.
       
      .temporal.api.compute.v1.ComputeProvider provider = 3;
      Specified by:
      getProvider in interface ComputeConfigScalingGroupOrBuilder
      Returns:
      The provider.
    • setProvider

       Stores instructions for a worker control plane controller how to respond
       to worker lifeycle events.
       
      .temporal.api.compute.v1.ComputeProvider provider = 3;
    • setProvider

      public ComputeConfigScalingGroup.Builder setProvider(ComputeProvider.Builder builderForValue)
       Stores instructions for a worker control plane controller how to respond
       to worker lifeycle events.
       
      .temporal.api.compute.v1.ComputeProvider provider = 3;
    • mergeProvider

      public ComputeConfigScalingGroup.Builder mergeProvider(ComputeProvider value)
       Stores instructions for a worker control plane controller how to respond
       to worker lifeycle events.
       
      .temporal.api.compute.v1.ComputeProvider provider = 3;
    • clearProvider

      public ComputeConfigScalingGroup.Builder clearProvider()
       Stores instructions for a worker control plane controller how to respond
       to worker lifeycle events.
       
      .temporal.api.compute.v1.ComputeProvider provider = 3;
    • getProviderBuilder

      public ComputeProvider.Builder getProviderBuilder()
       Stores instructions for a worker control plane controller how to respond
       to worker lifeycle events.
       
      .temporal.api.compute.v1.ComputeProvider provider = 3;
    • getProviderOrBuilder

      public ComputeProviderOrBuilder getProviderOrBuilder()
       Stores instructions for a worker control plane controller how to respond
       to worker lifeycle events.
       
      .temporal.api.compute.v1.ComputeProvider provider = 3;
      Specified by:
      getProviderOrBuilder in interface ComputeConfigScalingGroupOrBuilder
    • hasScaler

      public boolean hasScaler()
       Informs a worker lifecycle controller *when* and *how often* to perform
       certain worker lifecycle actions like starting a serverless worker.
       
      .temporal.api.compute.v1.ComputeScaler scaler = 4;
      Specified by:
      hasScaler in interface ComputeConfigScalingGroupOrBuilder
      Returns:
      Whether the scaler field is set.
    • getScaler

      public ComputeScaler getScaler()
       Informs a worker lifecycle controller *when* and *how often* to perform
       certain worker lifecycle actions like starting a serverless worker.
       
      .temporal.api.compute.v1.ComputeScaler scaler = 4;
      Specified by:
      getScaler in interface ComputeConfigScalingGroupOrBuilder
      Returns:
      The scaler.
    • setScaler

       Informs a worker lifecycle controller *when* and *how often* to perform
       certain worker lifecycle actions like starting a serverless worker.
       
      .temporal.api.compute.v1.ComputeScaler scaler = 4;
    • setScaler

      public ComputeConfigScalingGroup.Builder setScaler(ComputeScaler.Builder builderForValue)
       Informs a worker lifecycle controller *when* and *how often* to perform
       certain worker lifecycle actions like starting a serverless worker.
       
      .temporal.api.compute.v1.ComputeScaler scaler = 4;
    • mergeScaler

       Informs a worker lifecycle controller *when* and *how often* to perform
       certain worker lifecycle actions like starting a serverless worker.
       
      .temporal.api.compute.v1.ComputeScaler scaler = 4;
    • clearScaler

      public ComputeConfigScalingGroup.Builder clearScaler()
       Informs a worker lifecycle controller *when* and *how often* to perform
       certain worker lifecycle actions like starting a serverless worker.
       
      .temporal.api.compute.v1.ComputeScaler scaler = 4;
    • getScalerBuilder

      public ComputeScaler.Builder getScalerBuilder()
       Informs a worker lifecycle controller *when* and *how often* to perform
       certain worker lifecycle actions like starting a serverless worker.
       
      .temporal.api.compute.v1.ComputeScaler scaler = 4;
    • getScalerOrBuilder

      public ComputeScalerOrBuilder getScalerOrBuilder()
       Informs a worker lifecycle controller *when* and *how often* to perform
       certain worker lifecycle actions like starting a serverless worker.
       
      .temporal.api.compute.v1.ComputeScaler scaler = 4;
      Specified by:
      getScalerOrBuilder in interface ComputeConfigScalingGroupOrBuilder
    • setUnknownFields

      public final ComputeConfigScalingGroup.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeConfigScalingGroup.Builder>
    • mergeUnknownFields

      public final ComputeConfigScalingGroup.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeConfigScalingGroup.Builder>