Class ActivityOptions.Builder

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

public static final class ActivityOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ActivityOptions.Builder> implements ActivityOptionsOrBuilder
Protobuf type temporal.api.activity.v1.ActivityOptions
  • 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<ActivityOptions.Builder>
    • clear

      public ActivityOptions.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<ActivityOptions.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<ActivityOptions.Builder>
    • getDefaultInstanceForType

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

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

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

      public ActivityOptions.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<ActivityOptions.Builder>
    • setField

      public ActivityOptions.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<ActivityOptions.Builder>
    • clearField

      public ActivityOptions.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<ActivityOptions.Builder>
    • clearOneof

      public ActivityOptions.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<ActivityOptions.Builder>
    • setRepeatedField

      public ActivityOptions.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<ActivityOptions.Builder>
    • addRepeatedField

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

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

      public ActivityOptions.Builder mergeFrom(ActivityOptions other)
    • isInitialized

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

      public ActivityOptions.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<ActivityOptions.Builder>
      Throws:
      IOException
    • hasTaskQueue

      public boolean hasTaskQueue()
      .temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
      Specified by:
      hasTaskQueue in interface ActivityOptionsOrBuilder
      Returns:
      Whether the taskQueue field is set.
    • getTaskQueue

      public TaskQueue getTaskQueue()
      .temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
      Specified by:
      getTaskQueue in interface ActivityOptionsOrBuilder
      Returns:
      The taskQueue.
    • setTaskQueue

      public ActivityOptions.Builder setTaskQueue(TaskQueue value)
      .temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
    • setTaskQueue

      public ActivityOptions.Builder setTaskQueue(TaskQueue.Builder builderForValue)
      .temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
    • mergeTaskQueue

      public ActivityOptions.Builder mergeTaskQueue(TaskQueue value)
      .temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
    • clearTaskQueue

      public ActivityOptions.Builder clearTaskQueue()
      .temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
    • getTaskQueueBuilder

      public TaskQueue.Builder getTaskQueueBuilder()
      .temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
    • getTaskQueueOrBuilder

      public TaskQueueOrBuilder getTaskQueueOrBuilder()
      .temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
      Specified by:
      getTaskQueueOrBuilder in interface ActivityOptionsOrBuilder
    • hasScheduleToCloseTimeout

      public boolean hasScheduleToCloseTimeout()
       Indicates how long the caller is willing to wait for an activity completion. Limits how long
       retries will be attempted. Either this or `start_to_close_timeout` must be specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_close_timeout = 2;
      Specified by:
      hasScheduleToCloseTimeout in interface ActivityOptionsOrBuilder
      Returns:
      Whether the scheduleToCloseTimeout field is set.
    • getScheduleToCloseTimeout

      public com.google.protobuf.Duration getScheduleToCloseTimeout()
       Indicates how long the caller is willing to wait for an activity completion. Limits how long
       retries will be attempted. Either this or `start_to_close_timeout` must be specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_close_timeout = 2;
      Specified by:
      getScheduleToCloseTimeout in interface ActivityOptionsOrBuilder
      Returns:
      The scheduleToCloseTimeout.
    • setScheduleToCloseTimeout

      public ActivityOptions.Builder setScheduleToCloseTimeout(com.google.protobuf.Duration value)
       Indicates how long the caller is willing to wait for an activity completion. Limits how long
       retries will be attempted. Either this or `start_to_close_timeout` must be specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_close_timeout = 2;
    • setScheduleToCloseTimeout

      public ActivityOptions.Builder setScheduleToCloseTimeout(com.google.protobuf.Duration.Builder builderForValue)
       Indicates how long the caller is willing to wait for an activity completion. Limits how long
       retries will be attempted. Either this or `start_to_close_timeout` must be specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_close_timeout = 2;
    • mergeScheduleToCloseTimeout

      public ActivityOptions.Builder mergeScheduleToCloseTimeout(com.google.protobuf.Duration value)
       Indicates how long the caller is willing to wait for an activity completion. Limits how long
       retries will be attempted. Either this or `start_to_close_timeout` must be specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_close_timeout = 2;
    • clearScheduleToCloseTimeout

      public ActivityOptions.Builder clearScheduleToCloseTimeout()
       Indicates how long the caller is willing to wait for an activity completion. Limits how long
       retries will be attempted. Either this or `start_to_close_timeout` must be specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_close_timeout = 2;
    • getScheduleToCloseTimeoutBuilder

      public com.google.protobuf.Duration.Builder getScheduleToCloseTimeoutBuilder()
       Indicates how long the caller is willing to wait for an activity completion. Limits how long
       retries will be attempted. Either this or `start_to_close_timeout` must be specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_close_timeout = 2;
    • getScheduleToCloseTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getScheduleToCloseTimeoutOrBuilder()
       Indicates how long the caller is willing to wait for an activity completion. Limits how long
       retries will be attempted. Either this or `start_to_close_timeout` must be specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_close_timeout = 2;
      Specified by:
      getScheduleToCloseTimeoutOrBuilder in interface ActivityOptionsOrBuilder
    • hasScheduleToStartTimeout

      public boolean hasScheduleToStartTimeout()
       Limits time an activity task can stay in a task queue before a worker picks it up. This
       timeout is always non retryable, as all a retry would achieve is to put it back into the same
       queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
       specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_start_timeout = 3;
      Specified by:
      hasScheduleToStartTimeout in interface ActivityOptionsOrBuilder
      Returns:
      Whether the scheduleToStartTimeout field is set.
    • getScheduleToStartTimeout

      public com.google.protobuf.Duration getScheduleToStartTimeout()
       Limits time an activity task can stay in a task queue before a worker picks it up. This
       timeout is always non retryable, as all a retry would achieve is to put it back into the same
       queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
       specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_start_timeout = 3;
      Specified by:
      getScheduleToStartTimeout in interface ActivityOptionsOrBuilder
      Returns:
      The scheduleToStartTimeout.
    • setScheduleToStartTimeout

      public ActivityOptions.Builder setScheduleToStartTimeout(com.google.protobuf.Duration value)
       Limits time an activity task can stay in a task queue before a worker picks it up. This
       timeout is always non retryable, as all a retry would achieve is to put it back into the same
       queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
       specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_start_timeout = 3;
    • setScheduleToStartTimeout

      public ActivityOptions.Builder setScheduleToStartTimeout(com.google.protobuf.Duration.Builder builderForValue)
       Limits time an activity task can stay in a task queue before a worker picks it up. This
       timeout is always non retryable, as all a retry would achieve is to put it back into the same
       queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
       specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_start_timeout = 3;
    • mergeScheduleToStartTimeout

      public ActivityOptions.Builder mergeScheduleToStartTimeout(com.google.protobuf.Duration value)
       Limits time an activity task can stay in a task queue before a worker picks it up. This
       timeout is always non retryable, as all a retry would achieve is to put it back into the same
       queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
       specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_start_timeout = 3;
    • clearScheduleToStartTimeout

      public ActivityOptions.Builder clearScheduleToStartTimeout()
       Limits time an activity task can stay in a task queue before a worker picks it up. This
       timeout is always non retryable, as all a retry would achieve is to put it back into the same
       queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
       specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_start_timeout = 3;
    • getScheduleToStartTimeoutBuilder

      public com.google.protobuf.Duration.Builder getScheduleToStartTimeoutBuilder()
       Limits time an activity task can stay in a task queue before a worker picks it up. This
       timeout is always non retryable, as all a retry would achieve is to put it back into the same
       queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
       specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_start_timeout = 3;
    • getScheduleToStartTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getScheduleToStartTimeoutOrBuilder()
       Limits time an activity task can stay in a task queue before a worker picks it up. This
       timeout is always non retryable, as all a retry would achieve is to put it back into the same
       queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
       specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_start_timeout = 3;
      Specified by:
      getScheduleToStartTimeoutOrBuilder in interface ActivityOptionsOrBuilder
    • hasStartToCloseTimeout

      public boolean hasStartToCloseTimeout()
       Maximum time an activity is allowed to execute after being picked up by a worker. This
       timeout is always retryable. Either this or `schedule_to_close_timeout` must be
       specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration start_to_close_timeout = 4;
      Specified by:
      hasStartToCloseTimeout in interface ActivityOptionsOrBuilder
      Returns:
      Whether the startToCloseTimeout field is set.
    • getStartToCloseTimeout

      public com.google.protobuf.Duration getStartToCloseTimeout()
       Maximum time an activity is allowed to execute after being picked up by a worker. This
       timeout is always retryable. Either this or `schedule_to_close_timeout` must be
       specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration start_to_close_timeout = 4;
      Specified by:
      getStartToCloseTimeout in interface ActivityOptionsOrBuilder
      Returns:
      The startToCloseTimeout.
    • setStartToCloseTimeout

      public ActivityOptions.Builder setStartToCloseTimeout(com.google.protobuf.Duration value)
       Maximum time an activity is allowed to execute after being picked up by a worker. This
       timeout is always retryable. Either this or `schedule_to_close_timeout` must be
       specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration start_to_close_timeout = 4;
    • setStartToCloseTimeout

      public ActivityOptions.Builder setStartToCloseTimeout(com.google.protobuf.Duration.Builder builderForValue)
       Maximum time an activity is allowed to execute after being picked up by a worker. This
       timeout is always retryable. Either this or `schedule_to_close_timeout` must be
       specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration start_to_close_timeout = 4;
    • mergeStartToCloseTimeout

      public ActivityOptions.Builder mergeStartToCloseTimeout(com.google.protobuf.Duration value)
       Maximum time an activity is allowed to execute after being picked up by a worker. This
       timeout is always retryable. Either this or `schedule_to_close_timeout` must be
       specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration start_to_close_timeout = 4;
    • clearStartToCloseTimeout

      public ActivityOptions.Builder clearStartToCloseTimeout()
       Maximum time an activity is allowed to execute after being picked up by a worker. This
       timeout is always retryable. Either this or `schedule_to_close_timeout` must be
       specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration start_to_close_timeout = 4;
    • getStartToCloseTimeoutBuilder

      public com.google.protobuf.Duration.Builder getStartToCloseTimeoutBuilder()
       Maximum time an activity is allowed to execute after being picked up by a worker. This
       timeout is always retryable. Either this or `schedule_to_close_timeout` must be
       specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration start_to_close_timeout = 4;
    • getStartToCloseTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getStartToCloseTimeoutOrBuilder()
       Maximum time an activity is allowed to execute after being picked up by a worker. This
       timeout is always retryable. Either this or `schedule_to_close_timeout` must be
       specified.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration start_to_close_timeout = 4;
      Specified by:
      getStartToCloseTimeoutOrBuilder in interface ActivityOptionsOrBuilder
    • hasHeartbeatTimeout

      public boolean hasHeartbeatTimeout()
       Maximum permitted time between successful worker heartbeats.
       
      .google.protobuf.Duration heartbeat_timeout = 5;
      Specified by:
      hasHeartbeatTimeout in interface ActivityOptionsOrBuilder
      Returns:
      Whether the heartbeatTimeout field is set.
    • getHeartbeatTimeout

      public com.google.protobuf.Duration getHeartbeatTimeout()
       Maximum permitted time between successful worker heartbeats.
       
      .google.protobuf.Duration heartbeat_timeout = 5;
      Specified by:
      getHeartbeatTimeout in interface ActivityOptionsOrBuilder
      Returns:
      The heartbeatTimeout.
    • setHeartbeatTimeout

      public ActivityOptions.Builder setHeartbeatTimeout(com.google.protobuf.Duration value)
       Maximum permitted time between successful worker heartbeats.
       
      .google.protobuf.Duration heartbeat_timeout = 5;
    • setHeartbeatTimeout

      public ActivityOptions.Builder setHeartbeatTimeout(com.google.protobuf.Duration.Builder builderForValue)
       Maximum permitted time between successful worker heartbeats.
       
      .google.protobuf.Duration heartbeat_timeout = 5;
    • mergeHeartbeatTimeout

      public ActivityOptions.Builder mergeHeartbeatTimeout(com.google.protobuf.Duration value)
       Maximum permitted time between successful worker heartbeats.
       
      .google.protobuf.Duration heartbeat_timeout = 5;
    • clearHeartbeatTimeout

      public ActivityOptions.Builder clearHeartbeatTimeout()
       Maximum permitted time between successful worker heartbeats.
       
      .google.protobuf.Duration heartbeat_timeout = 5;
    • getHeartbeatTimeoutBuilder

      public com.google.protobuf.Duration.Builder getHeartbeatTimeoutBuilder()
       Maximum permitted time between successful worker heartbeats.
       
      .google.protobuf.Duration heartbeat_timeout = 5;
    • getHeartbeatTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getHeartbeatTimeoutOrBuilder()
       Maximum permitted time between successful worker heartbeats.
       
      .google.protobuf.Duration heartbeat_timeout = 5;
      Specified by:
      getHeartbeatTimeoutOrBuilder in interface ActivityOptionsOrBuilder
    • hasRetryPolicy

      public boolean hasRetryPolicy()
       The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
       
      .temporal.api.common.v1.RetryPolicy retry_policy = 6;
      Specified by:
      hasRetryPolicy in interface ActivityOptionsOrBuilder
      Returns:
      Whether the retryPolicy field is set.
    • getRetryPolicy

      public RetryPolicy getRetryPolicy()
       The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
       
      .temporal.api.common.v1.RetryPolicy retry_policy = 6;
      Specified by:
      getRetryPolicy in interface ActivityOptionsOrBuilder
      Returns:
      The retryPolicy.
    • setRetryPolicy

      public ActivityOptions.Builder setRetryPolicy(RetryPolicy value)
       The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
       
      .temporal.api.common.v1.RetryPolicy retry_policy = 6;
    • setRetryPolicy

      public ActivityOptions.Builder setRetryPolicy(RetryPolicy.Builder builderForValue)
       The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
       
      .temporal.api.common.v1.RetryPolicy retry_policy = 6;
    • mergeRetryPolicy

      public ActivityOptions.Builder mergeRetryPolicy(RetryPolicy value)
       The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
       
      .temporal.api.common.v1.RetryPolicy retry_policy = 6;
    • clearRetryPolicy

      public ActivityOptions.Builder clearRetryPolicy()
       The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
       
      .temporal.api.common.v1.RetryPolicy retry_policy = 6;
    • getRetryPolicyBuilder

      public RetryPolicy.Builder getRetryPolicyBuilder()
       The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
       
      .temporal.api.common.v1.RetryPolicy retry_policy = 6;
    • getRetryPolicyOrBuilder

      public RetryPolicyOrBuilder getRetryPolicyOrBuilder()
       The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
       
      .temporal.api.common.v1.RetryPolicy retry_policy = 6;
      Specified by:
      getRetryPolicyOrBuilder in interface ActivityOptionsOrBuilder
    • hasPriority

      public boolean hasPriority()
       Priority metadata. If this message is not present, or any fields are not
       present, they inherit the values from the workflow.
       
      .temporal.api.common.v1.Priority priority = 7;
      Specified by:
      hasPriority in interface ActivityOptionsOrBuilder
      Returns:
      Whether the priority field is set.
    • getPriority

      public Priority getPriority()
       Priority metadata. If this message is not present, or any fields are not
       present, they inherit the values from the workflow.
       
      .temporal.api.common.v1.Priority priority = 7;
      Specified by:
      getPriority in interface ActivityOptionsOrBuilder
      Returns:
      The priority.
    • setPriority

      public ActivityOptions.Builder setPriority(Priority value)
       Priority metadata. If this message is not present, or any fields are not
       present, they inherit the values from the workflow.
       
      .temporal.api.common.v1.Priority priority = 7;
    • setPriority

      public ActivityOptions.Builder setPriority(Priority.Builder builderForValue)
       Priority metadata. If this message is not present, or any fields are not
       present, they inherit the values from the workflow.
       
      .temporal.api.common.v1.Priority priority = 7;
    • mergePriority

      public ActivityOptions.Builder mergePriority(Priority value)
       Priority metadata. If this message is not present, or any fields are not
       present, they inherit the values from the workflow.
       
      .temporal.api.common.v1.Priority priority = 7;
    • clearPriority

      public ActivityOptions.Builder clearPriority()
       Priority metadata. If this message is not present, or any fields are not
       present, they inherit the values from the workflow.
       
      .temporal.api.common.v1.Priority priority = 7;
    • getPriorityBuilder

      public Priority.Builder getPriorityBuilder()
       Priority metadata. If this message is not present, or any fields are not
       present, they inherit the values from the workflow.
       
      .temporal.api.common.v1.Priority priority = 7;
    • getPriorityOrBuilder

      public PriorityOrBuilder getPriorityOrBuilder()
       Priority metadata. If this message is not present, or any fields are not
       present, they inherit the values from the workflow.
       
      .temporal.api.common.v1.Priority priority = 7;
      Specified by:
      getPriorityOrBuilder in interface ActivityOptionsOrBuilder
    • hasStartDelay

      public boolean hasStartDelay()
       Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
       When updated, the time is added to the original `schedule_time`, not to the current time.
       If the resulting time is in the past, the task is made available for dispatch immediately.
       
      .google.protobuf.Duration start_delay = 8;
      Specified by:
      hasStartDelay in interface ActivityOptionsOrBuilder
      Returns:
      Whether the startDelay field is set.
    • getStartDelay

      public com.google.protobuf.Duration getStartDelay()
       Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
       When updated, the time is added to the original `schedule_time`, not to the current time.
       If the resulting time is in the past, the task is made available for dispatch immediately.
       
      .google.protobuf.Duration start_delay = 8;
      Specified by:
      getStartDelay in interface ActivityOptionsOrBuilder
      Returns:
      The startDelay.
    • setStartDelay

      public ActivityOptions.Builder setStartDelay(com.google.protobuf.Duration value)
       Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
       When updated, the time is added to the original `schedule_time`, not to the current time.
       If the resulting time is in the past, the task is made available for dispatch immediately.
       
      .google.protobuf.Duration start_delay = 8;
    • setStartDelay

      public ActivityOptions.Builder setStartDelay(com.google.protobuf.Duration.Builder builderForValue)
       Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
       When updated, the time is added to the original `schedule_time`, not to the current time.
       If the resulting time is in the past, the task is made available for dispatch immediately.
       
      .google.protobuf.Duration start_delay = 8;
    • mergeStartDelay

      public ActivityOptions.Builder mergeStartDelay(com.google.protobuf.Duration value)
       Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
       When updated, the time is added to the original `schedule_time`, not to the current time.
       If the resulting time is in the past, the task is made available for dispatch immediately.
       
      .google.protobuf.Duration start_delay = 8;
    • clearStartDelay

      public ActivityOptions.Builder clearStartDelay()
       Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
       When updated, the time is added to the original `schedule_time`, not to the current time.
       If the resulting time is in the past, the task is made available for dispatch immediately.
       
      .google.protobuf.Duration start_delay = 8;
    • getStartDelayBuilder

      public com.google.protobuf.Duration.Builder getStartDelayBuilder()
       Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
       When updated, the time is added to the original `schedule_time`, not to the current time.
       If the resulting time is in the past, the task is made available for dispatch immediately.
       
      .google.protobuf.Duration start_delay = 8;
    • getStartDelayOrBuilder

      public com.google.protobuf.DurationOrBuilder getStartDelayOrBuilder()
       Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
       When updated, the time is added to the original `schedule_time`, not to the current time.
       If the resulting time is in the past, the task is made available for dispatch immediately.
       
      .google.protobuf.Duration start_delay = 8;
      Specified by:
      getStartDelayOrBuilder in interface ActivityOptionsOrBuilder
    • setUnknownFields

      public final ActivityOptions.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<ActivityOptions.Builder>
    • mergeUnknownFields

      public final ActivityOptions.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<ActivityOptions.Builder>