Class ScheduleActivityTaskCommandAttributes.Builder

    • Method Detail

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

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

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

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

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

        public ScheduleActivityTaskCommandAttributes.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                throws java.io.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<ScheduleActivityTaskCommandAttributes.Builder>
        Throws:
        java.io.IOException
      • setActivityIdBytes

        public ScheduleActivityTaskCommandAttributes.Builder setActivityIdBytes​(com.google.protobuf.ByteString value)
        string activity_id = 1;
        Parameters:
        value - The bytes for activityId to set.
        Returns:
        This builder for chaining.
      • getActivityTypeBuilder

        public ActivityType.Builder getActivityTypeBuilder()
        .temporal.api.common.v1.ActivityType activity_type = 2;
      • getTaskQueueBuilder

        public TaskQueue.Builder getTaskQueueBuilder()
        .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
      • getHeaderBuilder

        public Header.Builder getHeaderBuilder()
        .temporal.api.common.v1.Header header = 5;
      • getInputBuilder

        public Payloads.Builder getInputBuilder()
        .temporal.api.common.v1.Payloads input = 6;
      • hasScheduleToCloseTimeout

        public boolean hasScheduleToCloseTimeout()
         Indicates how long the caller is willing to wait for activity completion. The "schedule" time
         is when the activity is initially scheduled, not when the most recent retry is scheduled.
         Limits how long retries will be attempted. Either this or `start_to_close_timeout` must be
         specified. When not specified, defaults to the workflow execution timeout.
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_close_timeout = 7 [(.gogoproto.stdduration) = true];
        Specified by:
        hasScheduleToCloseTimeout in interface ScheduleActivityTaskCommandAttributesOrBuilder
        Returns:
        Whether the scheduleToCloseTimeout field is set.
      • getScheduleToCloseTimeout

        public com.google.protobuf.Duration getScheduleToCloseTimeout()
         Indicates how long the caller is willing to wait for activity completion. The "schedule" time
         is when the activity is initially scheduled, not when the most recent retry is scheduled.
         Limits how long retries will be attempted. Either this or `start_to_close_timeout` must be
         specified. When not specified, defaults to the workflow execution timeout.
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_close_timeout = 7 [(.gogoproto.stdduration) = true];
        Specified by:
        getScheduleToCloseTimeout in interface ScheduleActivityTaskCommandAttributesOrBuilder
        Returns:
        The scheduleToCloseTimeout.
      • setScheduleToCloseTimeout

        public ScheduleActivityTaskCommandAttributes.Builder setScheduleToCloseTimeout​(com.google.protobuf.Duration value)
         Indicates how long the caller is willing to wait for activity completion. The "schedule" time
         is when the activity is initially scheduled, not when the most recent retry is scheduled.
         Limits how long retries will be attempted. Either this or `start_to_close_timeout` must be
         specified. When not specified, defaults to the workflow execution timeout.
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_close_timeout = 7 [(.gogoproto.stdduration) = true];
      • setScheduleToCloseTimeout

        public ScheduleActivityTaskCommandAttributes.Builder setScheduleToCloseTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         Indicates how long the caller is willing to wait for activity completion. The "schedule" time
         is when the activity is initially scheduled, not when the most recent retry is scheduled.
         Limits how long retries will be attempted. Either this or `start_to_close_timeout` must be
         specified. When not specified, defaults to the workflow execution timeout.
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_close_timeout = 7 [(.gogoproto.stdduration) = true];
      • mergeScheduleToCloseTimeout

        public ScheduleActivityTaskCommandAttributes.Builder mergeScheduleToCloseTimeout​(com.google.protobuf.Duration value)
         Indicates how long the caller is willing to wait for activity completion. The "schedule" time
         is when the activity is initially scheduled, not when the most recent retry is scheduled.
         Limits how long retries will be attempted. Either this or `start_to_close_timeout` must be
         specified. When not specified, defaults to the workflow execution timeout.
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_close_timeout = 7 [(.gogoproto.stdduration) = true];
      • clearScheduleToCloseTimeout

        public ScheduleActivityTaskCommandAttributes.Builder clearScheduleToCloseTimeout()
         Indicates how long the caller is willing to wait for activity completion. The "schedule" time
         is when the activity is initially scheduled, not when the most recent retry is scheduled.
         Limits how long retries will be attempted. Either this or `start_to_close_timeout` must be
         specified. When not specified, defaults to the workflow execution timeout.
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_close_timeout = 7 [(.gogoproto.stdduration) = true];
      • getScheduleToCloseTimeoutBuilder

        public com.google.protobuf.Duration.Builder getScheduleToCloseTimeoutBuilder()
         Indicates how long the caller is willing to wait for activity completion. The "schedule" time
         is when the activity is initially scheduled, not when the most recent retry is scheduled.
         Limits how long retries will be attempted. Either this or `start_to_close_timeout` must be
         specified. When not specified, defaults to the workflow execution timeout.
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_close_timeout = 7 [(.gogoproto.stdduration) = true];
      • getScheduleToCloseTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getScheduleToCloseTimeoutOrBuilder()
         Indicates how long the caller is willing to wait for activity completion. The "schedule" time
         is when the activity is initially scheduled, not when the most recent retry is scheduled.
         Limits how long retries will be attempted. Either this or `start_to_close_timeout` must be
         specified. When not specified, defaults to the workflow execution timeout.
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_close_timeout = 7 [(.gogoproto.stdduration) = true];
        Specified by:
        getScheduleToCloseTimeoutOrBuilder in interface ScheduleActivityTaskCommandAttributesOrBuilder
      • hasScheduleToStartTimeout

        public boolean hasScheduleToStartTimeout()
         Limits the time an activity task can stay in a task queue before a worker picks it up. The
         "schedule" time is when the most recent retry is scheduled. This timeout should usually not
         be set: it's useful in specific scenarios like worker-specific task queues. 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 that is not
         specified. More info:
         https://docs.temporal.io/docs/content/what-is-a-schedule-to-start-timeout/
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_start_timeout = 8 [(.gogoproto.stdduration) = true];
        Specified by:
        hasScheduleToStartTimeout in interface ScheduleActivityTaskCommandAttributesOrBuilder
        Returns:
        Whether the scheduleToStartTimeout field is set.
      • getScheduleToStartTimeout

        public com.google.protobuf.Duration getScheduleToStartTimeout()
         Limits the time an activity task can stay in a task queue before a worker picks it up. The
         "schedule" time is when the most recent retry is scheduled. This timeout should usually not
         be set: it's useful in specific scenarios like worker-specific task queues. 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 that is not
         specified. More info:
         https://docs.temporal.io/docs/content/what-is-a-schedule-to-start-timeout/
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_start_timeout = 8 [(.gogoproto.stdduration) = true];
        Specified by:
        getScheduleToStartTimeout in interface ScheduleActivityTaskCommandAttributesOrBuilder
        Returns:
        The scheduleToStartTimeout.
      • setScheduleToStartTimeout

        public ScheduleActivityTaskCommandAttributes.Builder setScheduleToStartTimeout​(com.google.protobuf.Duration value)
         Limits the time an activity task can stay in a task queue before a worker picks it up. The
         "schedule" time is when the most recent retry is scheduled. This timeout should usually not
         be set: it's useful in specific scenarios like worker-specific task queues. 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 that is not
         specified. More info:
         https://docs.temporal.io/docs/content/what-is-a-schedule-to-start-timeout/
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_start_timeout = 8 [(.gogoproto.stdduration) = true];
      • setScheduleToStartTimeout

        public ScheduleActivityTaskCommandAttributes.Builder setScheduleToStartTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         Limits the time an activity task can stay in a task queue before a worker picks it up. The
         "schedule" time is when the most recent retry is scheduled. This timeout should usually not
         be set: it's useful in specific scenarios like worker-specific task queues. 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 that is not
         specified. More info:
         https://docs.temporal.io/docs/content/what-is-a-schedule-to-start-timeout/
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_start_timeout = 8 [(.gogoproto.stdduration) = true];
      • mergeScheduleToStartTimeout

        public ScheduleActivityTaskCommandAttributes.Builder mergeScheduleToStartTimeout​(com.google.protobuf.Duration value)
         Limits the time an activity task can stay in a task queue before a worker picks it up. The
         "schedule" time is when the most recent retry is scheduled. This timeout should usually not
         be set: it's useful in specific scenarios like worker-specific task queues. 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 that is not
         specified. More info:
         https://docs.temporal.io/docs/content/what-is-a-schedule-to-start-timeout/
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_start_timeout = 8 [(.gogoproto.stdduration) = true];
      • clearScheduleToStartTimeout

        public ScheduleActivityTaskCommandAttributes.Builder clearScheduleToStartTimeout()
         Limits the time an activity task can stay in a task queue before a worker picks it up. The
         "schedule" time is when the most recent retry is scheduled. This timeout should usually not
         be set: it's useful in specific scenarios like worker-specific task queues. 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 that is not
         specified. More info:
         https://docs.temporal.io/docs/content/what-is-a-schedule-to-start-timeout/
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_start_timeout = 8 [(.gogoproto.stdduration) = true];
      • getScheduleToStartTimeoutBuilder

        public com.google.protobuf.Duration.Builder getScheduleToStartTimeoutBuilder()
         Limits the time an activity task can stay in a task queue before a worker picks it up. The
         "schedule" time is when the most recent retry is scheduled. This timeout should usually not
         be set: it's useful in specific scenarios like worker-specific task queues. 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 that is not
         specified. More info:
         https://docs.temporal.io/docs/content/what-is-a-schedule-to-start-timeout/
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_start_timeout = 8 [(.gogoproto.stdduration) = true];
      • getScheduleToStartTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getScheduleToStartTimeoutOrBuilder()
         Limits the time an activity task can stay in a task queue before a worker picks it up. The
         "schedule" time is when the most recent retry is scheduled. This timeout should usually not
         be set: it's useful in specific scenarios like worker-specific task queues. 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 that is not
         specified. More info:
         https://docs.temporal.io/docs/content/what-is-a-schedule-to-start-timeout/
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_start_timeout = 8 [(.gogoproto.stdduration) = true];
        Specified by:
        getScheduleToStartTimeoutOrBuilder in interface ScheduleActivityTaskCommandAttributesOrBuilder
      • 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 = 9 [(.gogoproto.stdduration) = true];
        Specified by:
        hasStartToCloseTimeout in interface ScheduleActivityTaskCommandAttributesOrBuilder
        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 = 9 [(.gogoproto.stdduration) = true];
        Specified by:
        getStartToCloseTimeout in interface ScheduleActivityTaskCommandAttributesOrBuilder
        Returns:
        The startToCloseTimeout.
      • setStartToCloseTimeout

        public ScheduleActivityTaskCommandAttributes.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 = 9 [(.gogoproto.stdduration) = true];
      • setStartToCloseTimeout

        public ScheduleActivityTaskCommandAttributes.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 = 9 [(.gogoproto.stdduration) = true];
      • mergeStartToCloseTimeout

        public ScheduleActivityTaskCommandAttributes.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 = 9 [(.gogoproto.stdduration) = true];
      • clearStartToCloseTimeout

        public ScheduleActivityTaskCommandAttributes.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 = 9 [(.gogoproto.stdduration) = true];
      • 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 = 9 [(.gogoproto.stdduration) = true];
      • 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 = 9 [(.gogoproto.stdduration) = true];
        Specified by:
        getStartToCloseTimeoutOrBuilder in interface ScheduleActivityTaskCommandAttributesOrBuilder
      • hasHeartbeatTimeout

        public boolean hasHeartbeatTimeout()
         Maximum permitted time between successful worker heartbeats.
         
        .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
        Specified by:
        hasHeartbeatTimeout in interface ScheduleActivityTaskCommandAttributesOrBuilder
        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 = 10 [(.gogoproto.stdduration) = true];
        Specified by:
        getHeartbeatTimeout in interface ScheduleActivityTaskCommandAttributesOrBuilder
        Returns:
        The heartbeatTimeout.
      • setHeartbeatTimeout

        public ScheduleActivityTaskCommandAttributes.Builder setHeartbeatTimeout​(com.google.protobuf.Duration value)
         Maximum permitted time between successful worker heartbeats.
         
        .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
      • setHeartbeatTimeout

        public ScheduleActivityTaskCommandAttributes.Builder setHeartbeatTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         Maximum permitted time between successful worker heartbeats.
         
        .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
      • mergeHeartbeatTimeout

        public ScheduleActivityTaskCommandAttributes.Builder mergeHeartbeatTimeout​(com.google.protobuf.Duration value)
         Maximum permitted time between successful worker heartbeats.
         
        .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
      • clearHeartbeatTimeout

        public ScheduleActivityTaskCommandAttributes.Builder clearHeartbeatTimeout()
         Maximum permitted time between successful worker heartbeats.
         
        .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
      • getHeartbeatTimeoutBuilder

        public com.google.protobuf.Duration.Builder getHeartbeatTimeoutBuilder()
         Maximum permitted time between successful worker heartbeats.
         
        .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
      • hasRetryPolicy

        public boolean hasRetryPolicy()
         Activities are provided by a default retry policy which is controlled through the service's
         dynamic configuration. Retries will be attempted until `schedule_to_close_timeout` has
         elapsed. To disable retries set retry_policy.maximum_attempts to 1.
         
        .temporal.api.common.v1.RetryPolicy retry_policy = 11;
        Specified by:
        hasRetryPolicy in interface ScheduleActivityTaskCommandAttributesOrBuilder
        Returns:
        Whether the retryPolicy field is set.
      • getRetryPolicy

        public RetryPolicy getRetryPolicy()
         Activities are provided by a default retry policy which is controlled through the service's
         dynamic configuration. Retries will be attempted until `schedule_to_close_timeout` has
         elapsed. To disable retries set retry_policy.maximum_attempts to 1.
         
        .temporal.api.common.v1.RetryPolicy retry_policy = 11;
        Specified by:
        getRetryPolicy in interface ScheduleActivityTaskCommandAttributesOrBuilder
        Returns:
        The retryPolicy.
      • setRetryPolicy

        public ScheduleActivityTaskCommandAttributes.Builder setRetryPolicy​(RetryPolicy value)
         Activities are provided by a default retry policy which is controlled through the service's
         dynamic configuration. Retries will be attempted until `schedule_to_close_timeout` has
         elapsed. To disable retries set retry_policy.maximum_attempts to 1.
         
        .temporal.api.common.v1.RetryPolicy retry_policy = 11;
      • setRetryPolicy

        public ScheduleActivityTaskCommandAttributes.Builder setRetryPolicy​(RetryPolicy.Builder builderForValue)
         Activities are provided by a default retry policy which is controlled through the service's
         dynamic configuration. Retries will be attempted until `schedule_to_close_timeout` has
         elapsed. To disable retries set retry_policy.maximum_attempts to 1.
         
        .temporal.api.common.v1.RetryPolicy retry_policy = 11;
      • mergeRetryPolicy

        public ScheduleActivityTaskCommandAttributes.Builder mergeRetryPolicy​(RetryPolicy value)
         Activities are provided by a default retry policy which is controlled through the service's
         dynamic configuration. Retries will be attempted until `schedule_to_close_timeout` has
         elapsed. To disable retries set retry_policy.maximum_attempts to 1.
         
        .temporal.api.common.v1.RetryPolicy retry_policy = 11;
      • clearRetryPolicy

        public ScheduleActivityTaskCommandAttributes.Builder clearRetryPolicy()
         Activities are provided by a default retry policy which is controlled through the service's
         dynamic configuration. Retries will be attempted until `schedule_to_close_timeout` has
         elapsed. To disable retries set retry_policy.maximum_attempts to 1.
         
        .temporal.api.common.v1.RetryPolicy retry_policy = 11;
      • getRetryPolicyBuilder

        public RetryPolicy.Builder getRetryPolicyBuilder()
         Activities are provided by a default retry policy which is controlled through the service's
         dynamic configuration. Retries will be attempted until `schedule_to_close_timeout` has
         elapsed. To disable retries set retry_policy.maximum_attempts to 1.
         
        .temporal.api.common.v1.RetryPolicy retry_policy = 11;
      • getRetryPolicyOrBuilder

        public RetryPolicyOrBuilder getRetryPolicyOrBuilder()
         Activities are provided by a default retry policy which is controlled through the service's
         dynamic configuration. Retries will be attempted until `schedule_to_close_timeout` has
         elapsed. To disable retries set retry_policy.maximum_attempts to 1.
         
        .temporal.api.common.v1.RetryPolicy retry_policy = 11;
        Specified by:
        getRetryPolicyOrBuilder in interface ScheduleActivityTaskCommandAttributesOrBuilder
      • getRequestEagerExecution

        public boolean getRequestEagerExecution()
         Request to start the activity directly bypassing matching service and worker polling
         The slot for executing the activity should be reserved when setting this field to true.
         
        bool request_eager_execution = 12;
        Specified by:
        getRequestEagerExecution in interface ScheduleActivityTaskCommandAttributesOrBuilder
        Returns:
        The requestEagerExecution.
      • setRequestEagerExecution

        public ScheduleActivityTaskCommandAttributes.Builder setRequestEagerExecution​(boolean value)
         Request to start the activity directly bypassing matching service and worker polling
         The slot for executing the activity should be reserved when setting this field to true.
         
        bool request_eager_execution = 12;
        Parameters:
        value - The requestEagerExecution to set.
        Returns:
        This builder for chaining.
      • clearRequestEagerExecution

        public ScheduleActivityTaskCommandAttributes.Builder clearRequestEagerExecution()
         Request to start the activity directly bypassing matching service and worker polling
         The slot for executing the activity should be reserved when setting this field to true.
         
        bool request_eager_execution = 12;
        Returns:
        This builder for chaining.
      • getUseCompatibleVersion

        public boolean getUseCompatibleVersion()
         If this is set, the workflow executing this command wishes to start the activity using
         a version compatible with the version that this workflow most recently ran on, if such
         behavior is possible.
         
        bool use_compatible_version = 13;
        Specified by:
        getUseCompatibleVersion in interface ScheduleActivityTaskCommandAttributesOrBuilder
        Returns:
        The useCompatibleVersion.
      • setUseCompatibleVersion

        public ScheduleActivityTaskCommandAttributes.Builder setUseCompatibleVersion​(boolean value)
         If this is set, the workflow executing this command wishes to start the activity using
         a version compatible with the version that this workflow most recently ran on, if such
         behavior is possible.
         
        bool use_compatible_version = 13;
        Parameters:
        value - The useCompatibleVersion to set.
        Returns:
        This builder for chaining.
      • clearUseCompatibleVersion

        public ScheduleActivityTaskCommandAttributes.Builder clearUseCompatibleVersion()
         If this is set, the workflow executing this command wishes to start the activity using
         a version compatible with the version that this workflow most recently ran on, if such
         behavior is possible.
         
        bool use_compatible_version = 13;
        Returns:
        This builder for chaining.