io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: temporal/api/command/v1/message.proto
package io.temporal.api.command.v1;
/**
* Protobuf type {@code temporal.api.command.v1.ScheduleActivityTaskCommandAttributes}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:ScheduleActivityTaskCommandAttributes.java.pb.meta")
public final class ScheduleActivityTaskCommandAttributes extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.command.v1.ScheduleActivityTaskCommandAttributes)
ScheduleActivityTaskCommandAttributesOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScheduleActivityTaskCommandAttributes.newBuilder() to construct.
private ScheduleActivityTaskCommandAttributes(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ScheduleActivityTaskCommandAttributes() {
activityId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ScheduleActivityTaskCommandAttributes();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ScheduleActivityTaskCommandAttributes(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
activityId_ = s;
break;
}
case 18: {
io.temporal.api.common.v1.ActivityType.Builder subBuilder = null;
if (activityType_ != null) {
subBuilder = activityType_.toBuilder();
}
activityType_ = input.readMessage(io.temporal.api.common.v1.ActivityType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(activityType_);
activityType_ = subBuilder.buildPartial();
}
break;
}
case 34: {
io.temporal.api.taskqueue.v1.TaskQueue.Builder subBuilder = null;
if (taskQueue_ != null) {
subBuilder = taskQueue_.toBuilder();
}
taskQueue_ = input.readMessage(io.temporal.api.taskqueue.v1.TaskQueue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(taskQueue_);
taskQueue_ = subBuilder.buildPartial();
}
break;
}
case 42: {
io.temporal.api.common.v1.Header.Builder subBuilder = null;
if (header_ != null) {
subBuilder = header_.toBuilder();
}
header_ = input.readMessage(io.temporal.api.common.v1.Header.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(header_);
header_ = subBuilder.buildPartial();
}
break;
}
case 50: {
io.temporal.api.common.v1.Payloads.Builder subBuilder = null;
if (input_ != null) {
subBuilder = input_.toBuilder();
}
input_ = input.readMessage(io.temporal.api.common.v1.Payloads.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(input_);
input_ = subBuilder.buildPartial();
}
break;
}
case 58: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (scheduleToCloseTimeout_ != null) {
subBuilder = scheduleToCloseTimeout_.toBuilder();
}
scheduleToCloseTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scheduleToCloseTimeout_);
scheduleToCloseTimeout_ = subBuilder.buildPartial();
}
break;
}
case 66: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (scheduleToStartTimeout_ != null) {
subBuilder = scheduleToStartTimeout_.toBuilder();
}
scheduleToStartTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scheduleToStartTimeout_);
scheduleToStartTimeout_ = subBuilder.buildPartial();
}
break;
}
case 74: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (startToCloseTimeout_ != null) {
subBuilder = startToCloseTimeout_.toBuilder();
}
startToCloseTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(startToCloseTimeout_);
startToCloseTimeout_ = subBuilder.buildPartial();
}
break;
}
case 82: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (heartbeatTimeout_ != null) {
subBuilder = heartbeatTimeout_.toBuilder();
}
heartbeatTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(heartbeatTimeout_);
heartbeatTimeout_ = subBuilder.buildPartial();
}
break;
}
case 90: {
io.temporal.api.common.v1.RetryPolicy.Builder subBuilder = null;
if (retryPolicy_ != null) {
subBuilder = retryPolicy_.toBuilder();
}
retryPolicy_ = input.readMessage(io.temporal.api.common.v1.RetryPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(retryPolicy_);
retryPolicy_ = subBuilder.buildPartial();
}
break;
}
case 96: {
requestEagerExecution_ = input.readBool();
break;
}
case 104: {
useCompatibleVersion_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.command.v1.MessageProto.internal_static_temporal_api_command_v1_ScheduleActivityTaskCommandAttributes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.command.v1.MessageProto.internal_static_temporal_api_command_v1_ScheduleActivityTaskCommandAttributes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.class, io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.Builder.class);
}
public static final int ACTIVITY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object activityId_;
/**
* string activity_id = 1;
* @return The activityId.
*/
public java.lang.String getActivityId() {
java.lang.Object ref = activityId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
activityId_ = s;
return s;
}
}
/**
* string activity_id = 1;
* @return The bytes for activityId.
*/
public com.google.protobuf.ByteString
getActivityIdBytes() {
java.lang.Object ref = activityId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
activityId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACTIVITY_TYPE_FIELD_NUMBER = 2;
private io.temporal.api.common.v1.ActivityType activityType_;
/**
* .temporal.api.common.v1.ActivityType activity_type = 2;
* @return Whether the activityType field is set.
*/
public boolean hasActivityType() {
return activityType_ != null;
}
/**
* .temporal.api.common.v1.ActivityType activity_type = 2;
* @return The activityType.
*/
public io.temporal.api.common.v1.ActivityType getActivityType() {
return activityType_ == null ? io.temporal.api.common.v1.ActivityType.getDefaultInstance() : activityType_;
}
/**
* .temporal.api.common.v1.ActivityType activity_type = 2;
*/
public io.temporal.api.common.v1.ActivityTypeOrBuilder getActivityTypeOrBuilder() {
return getActivityType();
}
public static final int TASK_QUEUE_FIELD_NUMBER = 4;
private io.temporal.api.taskqueue.v1.TaskQueue taskQueue_;
/**
* .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
* @return Whether the taskQueue field is set.
*/
public boolean hasTaskQueue() {
return taskQueue_ != null;
}
/**
* .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
* @return The taskQueue.
*/
public io.temporal.api.taskqueue.v1.TaskQueue getTaskQueue() {
return taskQueue_ == null ? io.temporal.api.taskqueue.v1.TaskQueue.getDefaultInstance() : taskQueue_;
}
/**
* .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
*/
public io.temporal.api.taskqueue.v1.TaskQueueOrBuilder getTaskQueueOrBuilder() {
return getTaskQueue();
}
public static final int HEADER_FIELD_NUMBER = 5;
private io.temporal.api.common.v1.Header header_;
/**
* .temporal.api.common.v1.Header header = 5;
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return header_ != null;
}
/**
* .temporal.api.common.v1.Header header = 5;
* @return The header.
*/
public io.temporal.api.common.v1.Header getHeader() {
return header_ == null ? io.temporal.api.common.v1.Header.getDefaultInstance() : header_;
}
/**
* .temporal.api.common.v1.Header header = 5;
*/
public io.temporal.api.common.v1.HeaderOrBuilder getHeaderOrBuilder() {
return getHeader();
}
public static final int INPUT_FIELD_NUMBER = 6;
private io.temporal.api.common.v1.Payloads input_;
/**
* .temporal.api.common.v1.Payloads input = 6;
* @return Whether the input field is set.
*/
public boolean hasInput() {
return input_ != null;
}
/**
* .temporal.api.common.v1.Payloads input = 6;
* @return The input.
*/
public io.temporal.api.common.v1.Payloads getInput() {
return input_ == null ? io.temporal.api.common.v1.Payloads.getDefaultInstance() : input_;
}
/**
* .temporal.api.common.v1.Payloads input = 6;
*/
public io.temporal.api.common.v1.PayloadsOrBuilder getInputOrBuilder() {
return getInput();
}
public static final int SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER = 7;
private com.google.protobuf.Duration scheduleToCloseTimeout_;
/**
*
* 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];
* @return Whether the scheduleToCloseTimeout field is set.
*/
public boolean hasScheduleToCloseTimeout() {
return scheduleToCloseTimeout_ != null;
}
/**
*
* 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];
* @return The scheduleToCloseTimeout.
*/
public com.google.protobuf.Duration getScheduleToCloseTimeout() {
return scheduleToCloseTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : scheduleToCloseTimeout_;
}
/**
*
* 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];
*/
public com.google.protobuf.DurationOrBuilder getScheduleToCloseTimeoutOrBuilder() {
return getScheduleToCloseTimeout();
}
public static final int SCHEDULE_TO_START_TIMEOUT_FIELD_NUMBER = 8;
private com.google.protobuf.Duration scheduleToStartTimeout_;
/**
*
* 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];
* @return Whether the scheduleToStartTimeout field is set.
*/
public boolean hasScheduleToStartTimeout() {
return scheduleToStartTimeout_ != null;
}
/**
*
* 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];
* @return The scheduleToStartTimeout.
*/
public com.google.protobuf.Duration getScheduleToStartTimeout() {
return scheduleToStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : scheduleToStartTimeout_;
}
/**
*
* 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];
*/
public com.google.protobuf.DurationOrBuilder getScheduleToStartTimeoutOrBuilder() {
return getScheduleToStartTimeout();
}
public static final int START_TO_CLOSE_TIMEOUT_FIELD_NUMBER = 9;
private com.google.protobuf.Duration startToCloseTimeout_;
/**
*
* 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];
* @return Whether the startToCloseTimeout field is set.
*/
public boolean hasStartToCloseTimeout() {
return startToCloseTimeout_ != null;
}
/**
*
* 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];
* @return The startToCloseTimeout.
*/
public com.google.protobuf.Duration getStartToCloseTimeout() {
return startToCloseTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startToCloseTimeout_;
}
/**
*
* 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];
*/
public com.google.protobuf.DurationOrBuilder getStartToCloseTimeoutOrBuilder() {
return getStartToCloseTimeout();
}
public static final int HEARTBEAT_TIMEOUT_FIELD_NUMBER = 10;
private com.google.protobuf.Duration heartbeatTimeout_;
/**
*
* Maximum permitted time between successful worker heartbeats.
*
*
* .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
* @return Whether the heartbeatTimeout field is set.
*/
public boolean hasHeartbeatTimeout() {
return heartbeatTimeout_ != null;
}
/**
*
* Maximum permitted time between successful worker heartbeats.
*
*
* .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
* @return The heartbeatTimeout.
*/
public com.google.protobuf.Duration getHeartbeatTimeout() {
return heartbeatTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : heartbeatTimeout_;
}
/**
*
* Maximum permitted time between successful worker heartbeats.
*
*
* .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.DurationOrBuilder getHeartbeatTimeoutOrBuilder() {
return getHeartbeatTimeout();
}
public static final int RETRY_POLICY_FIELD_NUMBER = 11;
private io.temporal.api.common.v1.RetryPolicy retryPolicy_;
/**
*
* 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;
* @return Whether the retryPolicy field is set.
*/
public boolean hasRetryPolicy() {
return retryPolicy_ != null;
}
/**
*
* 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;
* @return The retryPolicy.
*/
public io.temporal.api.common.v1.RetryPolicy getRetryPolicy() {
return retryPolicy_ == null ? io.temporal.api.common.v1.RetryPolicy.getDefaultInstance() : retryPolicy_;
}
/**
*
* 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;
*/
public io.temporal.api.common.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
return getRetryPolicy();
}
public static final int REQUEST_EAGER_EXECUTION_FIELD_NUMBER = 12;
private boolean requestEagerExecution_;
/**
*
* 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;
* @return The requestEagerExecution.
*/
public boolean getRequestEagerExecution() {
return requestEagerExecution_;
}
public static final int USE_COMPATIBLE_VERSION_FIELD_NUMBER = 13;
private boolean useCompatibleVersion_;
/**
*
* 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;
* @return The useCompatibleVersion.
*/
public boolean getUseCompatibleVersion() {
return useCompatibleVersion_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getActivityIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, activityId_);
}
if (activityType_ != null) {
output.writeMessage(2, getActivityType());
}
if (taskQueue_ != null) {
output.writeMessage(4, getTaskQueue());
}
if (header_ != null) {
output.writeMessage(5, getHeader());
}
if (input_ != null) {
output.writeMessage(6, getInput());
}
if (scheduleToCloseTimeout_ != null) {
output.writeMessage(7, getScheduleToCloseTimeout());
}
if (scheduleToStartTimeout_ != null) {
output.writeMessage(8, getScheduleToStartTimeout());
}
if (startToCloseTimeout_ != null) {
output.writeMessage(9, getStartToCloseTimeout());
}
if (heartbeatTimeout_ != null) {
output.writeMessage(10, getHeartbeatTimeout());
}
if (retryPolicy_ != null) {
output.writeMessage(11, getRetryPolicy());
}
if (requestEagerExecution_ != false) {
output.writeBool(12, requestEagerExecution_);
}
if (useCompatibleVersion_ != false) {
output.writeBool(13, useCompatibleVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getActivityIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, activityId_);
}
if (activityType_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getActivityType());
}
if (taskQueue_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getTaskQueue());
}
if (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getHeader());
}
if (input_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getInput());
}
if (scheduleToCloseTimeout_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getScheduleToCloseTimeout());
}
if (scheduleToStartTimeout_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getScheduleToStartTimeout());
}
if (startToCloseTimeout_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getStartToCloseTimeout());
}
if (heartbeatTimeout_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getHeartbeatTimeout());
}
if (retryPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getRetryPolicy());
}
if (requestEagerExecution_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(12, requestEagerExecution_);
}
if (useCompatibleVersion_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, useCompatibleVersion_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes)) {
return super.equals(obj);
}
io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes other = (io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes) obj;
if (!getActivityId()
.equals(other.getActivityId())) return false;
if (hasActivityType() != other.hasActivityType()) return false;
if (hasActivityType()) {
if (!getActivityType()
.equals(other.getActivityType())) return false;
}
if (hasTaskQueue() != other.hasTaskQueue()) return false;
if (hasTaskQueue()) {
if (!getTaskQueue()
.equals(other.getTaskQueue())) return false;
}
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (hasInput() != other.hasInput()) return false;
if (hasInput()) {
if (!getInput()
.equals(other.getInput())) return false;
}
if (hasScheduleToCloseTimeout() != other.hasScheduleToCloseTimeout()) return false;
if (hasScheduleToCloseTimeout()) {
if (!getScheduleToCloseTimeout()
.equals(other.getScheduleToCloseTimeout())) return false;
}
if (hasScheduleToStartTimeout() != other.hasScheduleToStartTimeout()) return false;
if (hasScheduleToStartTimeout()) {
if (!getScheduleToStartTimeout()
.equals(other.getScheduleToStartTimeout())) return false;
}
if (hasStartToCloseTimeout() != other.hasStartToCloseTimeout()) return false;
if (hasStartToCloseTimeout()) {
if (!getStartToCloseTimeout()
.equals(other.getStartToCloseTimeout())) return false;
}
if (hasHeartbeatTimeout() != other.hasHeartbeatTimeout()) return false;
if (hasHeartbeatTimeout()) {
if (!getHeartbeatTimeout()
.equals(other.getHeartbeatTimeout())) return false;
}
if (hasRetryPolicy() != other.hasRetryPolicy()) return false;
if (hasRetryPolicy()) {
if (!getRetryPolicy()
.equals(other.getRetryPolicy())) return false;
}
if (getRequestEagerExecution()
!= other.getRequestEagerExecution()) return false;
if (getUseCompatibleVersion()
!= other.getUseCompatibleVersion()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ACTIVITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getActivityId().hashCode();
if (hasActivityType()) {
hash = (37 * hash) + ACTIVITY_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getActivityType().hashCode();
}
if (hasTaskQueue()) {
hash = (37 * hash) + TASK_QUEUE_FIELD_NUMBER;
hash = (53 * hash) + getTaskQueue().hashCode();
}
if (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
if (hasInput()) {
hash = (37 * hash) + INPUT_FIELD_NUMBER;
hash = (53 * hash) + getInput().hashCode();
}
if (hasScheduleToCloseTimeout()) {
hash = (37 * hash) + SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getScheduleToCloseTimeout().hashCode();
}
if (hasScheduleToStartTimeout()) {
hash = (37 * hash) + SCHEDULE_TO_START_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getScheduleToStartTimeout().hashCode();
}
if (hasStartToCloseTimeout()) {
hash = (37 * hash) + START_TO_CLOSE_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getStartToCloseTimeout().hashCode();
}
if (hasHeartbeatTimeout()) {
hash = (37 * hash) + HEARTBEAT_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getHeartbeatTimeout().hashCode();
}
if (hasRetryPolicy()) {
hash = (37 * hash) + RETRY_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getRetryPolicy().hashCode();
}
hash = (37 * hash) + REQUEST_EAGER_EXECUTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRequestEagerExecution());
hash = (37 * hash) + USE_COMPATIBLE_VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUseCompatibleVersion());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code temporal.api.command.v1.ScheduleActivityTaskCommandAttributes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.command.v1.ScheduleActivityTaskCommandAttributes)
io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.command.v1.MessageProto.internal_static_temporal_api_command_v1_ScheduleActivityTaskCommandAttributes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.command.v1.MessageProto.internal_static_temporal_api_command_v1_ScheduleActivityTaskCommandAttributes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.class, io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.Builder.class);
}
// Construct using io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
activityId_ = "";
if (activityTypeBuilder_ == null) {
activityType_ = null;
} else {
activityType_ = null;
activityTypeBuilder_ = null;
}
if (taskQueueBuilder_ == null) {
taskQueue_ = null;
} else {
taskQueue_ = null;
taskQueueBuilder_ = null;
}
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
if (inputBuilder_ == null) {
input_ = null;
} else {
input_ = null;
inputBuilder_ = null;
}
if (scheduleToCloseTimeoutBuilder_ == null) {
scheduleToCloseTimeout_ = null;
} else {
scheduleToCloseTimeout_ = null;
scheduleToCloseTimeoutBuilder_ = null;
}
if (scheduleToStartTimeoutBuilder_ == null) {
scheduleToStartTimeout_ = null;
} else {
scheduleToStartTimeout_ = null;
scheduleToStartTimeoutBuilder_ = null;
}
if (startToCloseTimeoutBuilder_ == null) {
startToCloseTimeout_ = null;
} else {
startToCloseTimeout_ = null;
startToCloseTimeoutBuilder_ = null;
}
if (heartbeatTimeoutBuilder_ == null) {
heartbeatTimeout_ = null;
} else {
heartbeatTimeout_ = null;
heartbeatTimeoutBuilder_ = null;
}
if (retryPolicyBuilder_ == null) {
retryPolicy_ = null;
} else {
retryPolicy_ = null;
retryPolicyBuilder_ = null;
}
requestEagerExecution_ = false;
useCompatibleVersion_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.temporal.api.command.v1.MessageProto.internal_static_temporal_api_command_v1_ScheduleActivityTaskCommandAttributes_descriptor;
}
@java.lang.Override
public io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes getDefaultInstanceForType() {
return io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes build() {
io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes buildPartial() {
io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes result = new io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes(this);
result.activityId_ = activityId_;
if (activityTypeBuilder_ == null) {
result.activityType_ = activityType_;
} else {
result.activityType_ = activityTypeBuilder_.build();
}
if (taskQueueBuilder_ == null) {
result.taskQueue_ = taskQueue_;
} else {
result.taskQueue_ = taskQueueBuilder_.build();
}
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
if (inputBuilder_ == null) {
result.input_ = input_;
} else {
result.input_ = inputBuilder_.build();
}
if (scheduleToCloseTimeoutBuilder_ == null) {
result.scheduleToCloseTimeout_ = scheduleToCloseTimeout_;
} else {
result.scheduleToCloseTimeout_ = scheduleToCloseTimeoutBuilder_.build();
}
if (scheduleToStartTimeoutBuilder_ == null) {
result.scheduleToStartTimeout_ = scheduleToStartTimeout_;
} else {
result.scheduleToStartTimeout_ = scheduleToStartTimeoutBuilder_.build();
}
if (startToCloseTimeoutBuilder_ == null) {
result.startToCloseTimeout_ = startToCloseTimeout_;
} else {
result.startToCloseTimeout_ = startToCloseTimeoutBuilder_.build();
}
if (heartbeatTimeoutBuilder_ == null) {
result.heartbeatTimeout_ = heartbeatTimeout_;
} else {
result.heartbeatTimeout_ = heartbeatTimeoutBuilder_.build();
}
if (retryPolicyBuilder_ == null) {
result.retryPolicy_ = retryPolicy_;
} else {
result.retryPolicy_ = retryPolicyBuilder_.build();
}
result.requestEagerExecution_ = requestEagerExecution_;
result.useCompatibleVersion_ = useCompatibleVersion_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes) {
return mergeFrom((io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes other) {
if (other == io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.getDefaultInstance()) return this;
if (!other.getActivityId().isEmpty()) {
activityId_ = other.activityId_;
onChanged();
}
if (other.hasActivityType()) {
mergeActivityType(other.getActivityType());
}
if (other.hasTaskQueue()) {
mergeTaskQueue(other.getTaskQueue());
}
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.hasInput()) {
mergeInput(other.getInput());
}
if (other.hasScheduleToCloseTimeout()) {
mergeScheduleToCloseTimeout(other.getScheduleToCloseTimeout());
}
if (other.hasScheduleToStartTimeout()) {
mergeScheduleToStartTimeout(other.getScheduleToStartTimeout());
}
if (other.hasStartToCloseTimeout()) {
mergeStartToCloseTimeout(other.getStartToCloseTimeout());
}
if (other.hasHeartbeatTimeout()) {
mergeHeartbeatTimeout(other.getHeartbeatTimeout());
}
if (other.hasRetryPolicy()) {
mergeRetryPolicy(other.getRetryPolicy());
}
if (other.getRequestEagerExecution() != false) {
setRequestEagerExecution(other.getRequestEagerExecution());
}
if (other.getUseCompatibleVersion() != false) {
setUseCompatibleVersion(other.getUseCompatibleVersion());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object activityId_ = "";
/**
* string activity_id = 1;
* @return The activityId.
*/
public java.lang.String getActivityId() {
java.lang.Object ref = activityId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
activityId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string activity_id = 1;
* @return The bytes for activityId.
*/
public com.google.protobuf.ByteString
getActivityIdBytes() {
java.lang.Object ref = activityId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
activityId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string activity_id = 1;
* @param value The activityId to set.
* @return This builder for chaining.
*/
public Builder setActivityId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
activityId_ = value;
onChanged();
return this;
}
/**
* string activity_id = 1;
* @return This builder for chaining.
*/
public Builder clearActivityId() {
activityId_ = getDefaultInstance().getActivityId();
onChanged();
return this;
}
/**
* string activity_id = 1;
* @param value The bytes for activityId to set.
* @return This builder for chaining.
*/
public Builder setActivityIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
activityId_ = value;
onChanged();
return this;
}
private io.temporal.api.common.v1.ActivityType activityType_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.ActivityType, io.temporal.api.common.v1.ActivityType.Builder, io.temporal.api.common.v1.ActivityTypeOrBuilder> activityTypeBuilder_;
/**
* .temporal.api.common.v1.ActivityType activity_type = 2;
* @return Whether the activityType field is set.
*/
public boolean hasActivityType() {
return activityTypeBuilder_ != null || activityType_ != null;
}
/**
* .temporal.api.common.v1.ActivityType activity_type = 2;
* @return The activityType.
*/
public io.temporal.api.common.v1.ActivityType getActivityType() {
if (activityTypeBuilder_ == null) {
return activityType_ == null ? io.temporal.api.common.v1.ActivityType.getDefaultInstance() : activityType_;
} else {
return activityTypeBuilder_.getMessage();
}
}
/**
* .temporal.api.common.v1.ActivityType activity_type = 2;
*/
public Builder setActivityType(io.temporal.api.common.v1.ActivityType value) {
if (activityTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
activityType_ = value;
onChanged();
} else {
activityTypeBuilder_.setMessage(value);
}
return this;
}
/**
* .temporal.api.common.v1.ActivityType activity_type = 2;
*/
public Builder setActivityType(
io.temporal.api.common.v1.ActivityType.Builder builderForValue) {
if (activityTypeBuilder_ == null) {
activityType_ = builderForValue.build();
onChanged();
} else {
activityTypeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .temporal.api.common.v1.ActivityType activity_type = 2;
*/
public Builder mergeActivityType(io.temporal.api.common.v1.ActivityType value) {
if (activityTypeBuilder_ == null) {
if (activityType_ != null) {
activityType_ =
io.temporal.api.common.v1.ActivityType.newBuilder(activityType_).mergeFrom(value).buildPartial();
} else {
activityType_ = value;
}
onChanged();
} else {
activityTypeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .temporal.api.common.v1.ActivityType activity_type = 2;
*/
public Builder clearActivityType() {
if (activityTypeBuilder_ == null) {
activityType_ = null;
onChanged();
} else {
activityType_ = null;
activityTypeBuilder_ = null;
}
return this;
}
/**
* .temporal.api.common.v1.ActivityType activity_type = 2;
*/
public io.temporal.api.common.v1.ActivityType.Builder getActivityTypeBuilder() {
onChanged();
return getActivityTypeFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.ActivityType activity_type = 2;
*/
public io.temporal.api.common.v1.ActivityTypeOrBuilder getActivityTypeOrBuilder() {
if (activityTypeBuilder_ != null) {
return activityTypeBuilder_.getMessageOrBuilder();
} else {
return activityType_ == null ?
io.temporal.api.common.v1.ActivityType.getDefaultInstance() : activityType_;
}
}
/**
* .temporal.api.common.v1.ActivityType activity_type = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.ActivityType, io.temporal.api.common.v1.ActivityType.Builder, io.temporal.api.common.v1.ActivityTypeOrBuilder>
getActivityTypeFieldBuilder() {
if (activityTypeBuilder_ == null) {
activityTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.ActivityType, io.temporal.api.common.v1.ActivityType.Builder, io.temporal.api.common.v1.ActivityTypeOrBuilder>(
getActivityType(),
getParentForChildren(),
isClean());
activityType_ = null;
}
return activityTypeBuilder_;
}
private io.temporal.api.taskqueue.v1.TaskQueue taskQueue_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.taskqueue.v1.TaskQueue, io.temporal.api.taskqueue.v1.TaskQueue.Builder, io.temporal.api.taskqueue.v1.TaskQueueOrBuilder> taskQueueBuilder_;
/**
* .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
* @return Whether the taskQueue field is set.
*/
public boolean hasTaskQueue() {
return taskQueueBuilder_ != null || taskQueue_ != null;
}
/**
* .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
* @return The taskQueue.
*/
public io.temporal.api.taskqueue.v1.TaskQueue getTaskQueue() {
if (taskQueueBuilder_ == null) {
return taskQueue_ == null ? io.temporal.api.taskqueue.v1.TaskQueue.getDefaultInstance() : taskQueue_;
} else {
return taskQueueBuilder_.getMessage();
}
}
/**
* .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
*/
public Builder setTaskQueue(io.temporal.api.taskqueue.v1.TaskQueue value) {
if (taskQueueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
taskQueue_ = value;
onChanged();
} else {
taskQueueBuilder_.setMessage(value);
}
return this;
}
/**
* .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
*/
public Builder setTaskQueue(
io.temporal.api.taskqueue.v1.TaskQueue.Builder builderForValue) {
if (taskQueueBuilder_ == null) {
taskQueue_ = builderForValue.build();
onChanged();
} else {
taskQueueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
*/
public Builder mergeTaskQueue(io.temporal.api.taskqueue.v1.TaskQueue value) {
if (taskQueueBuilder_ == null) {
if (taskQueue_ != null) {
taskQueue_ =
io.temporal.api.taskqueue.v1.TaskQueue.newBuilder(taskQueue_).mergeFrom(value).buildPartial();
} else {
taskQueue_ = value;
}
onChanged();
} else {
taskQueueBuilder_.mergeFrom(value);
}
return this;
}
/**
* .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
*/
public Builder clearTaskQueue() {
if (taskQueueBuilder_ == null) {
taskQueue_ = null;
onChanged();
} else {
taskQueue_ = null;
taskQueueBuilder_ = null;
}
return this;
}
/**
* .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
*/
public io.temporal.api.taskqueue.v1.TaskQueue.Builder getTaskQueueBuilder() {
onChanged();
return getTaskQueueFieldBuilder().getBuilder();
}
/**
* .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
*/
public io.temporal.api.taskqueue.v1.TaskQueueOrBuilder getTaskQueueOrBuilder() {
if (taskQueueBuilder_ != null) {
return taskQueueBuilder_.getMessageOrBuilder();
} else {
return taskQueue_ == null ?
io.temporal.api.taskqueue.v1.TaskQueue.getDefaultInstance() : taskQueue_;
}
}
/**
* .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.taskqueue.v1.TaskQueue, io.temporal.api.taskqueue.v1.TaskQueue.Builder, io.temporal.api.taskqueue.v1.TaskQueueOrBuilder>
getTaskQueueFieldBuilder() {
if (taskQueueBuilder_ == null) {
taskQueueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.taskqueue.v1.TaskQueue, io.temporal.api.taskqueue.v1.TaskQueue.Builder, io.temporal.api.taskqueue.v1.TaskQueueOrBuilder>(
getTaskQueue(),
getParentForChildren(),
isClean());
taskQueue_ = null;
}
return taskQueueBuilder_;
}
private io.temporal.api.common.v1.Header header_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Header, io.temporal.api.common.v1.Header.Builder, io.temporal.api.common.v1.HeaderOrBuilder> headerBuilder_;
/**
* .temporal.api.common.v1.Header header = 5;
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return headerBuilder_ != null || header_ != null;
}
/**
* .temporal.api.common.v1.Header header = 5;
* @return The header.
*/
public io.temporal.api.common.v1.Header getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? io.temporal.api.common.v1.Header.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
* .temporal.api.common.v1.Header header = 5;
*/
public Builder setHeader(io.temporal.api.common.v1.Header value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
return this;
}
/**
* .temporal.api.common.v1.Header header = 5;
*/
public Builder setHeader(
io.temporal.api.common.v1.Header.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .temporal.api.common.v1.Header header = 5;
*/
public Builder mergeHeader(io.temporal.api.common.v1.Header value) {
if (headerBuilder_ == null) {
if (header_ != null) {
header_ =
io.temporal.api.common.v1.Header.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .temporal.api.common.v1.Header header = 5;
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
/**
* .temporal.api.common.v1.Header header = 5;
*/
public io.temporal.api.common.v1.Header.Builder getHeaderBuilder() {
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.Header header = 5;
*/
public io.temporal.api.common.v1.HeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
io.temporal.api.common.v1.Header.getDefaultInstance() : header_;
}
}
/**
* .temporal.api.common.v1.Header header = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Header, io.temporal.api.common.v1.Header.Builder, io.temporal.api.common.v1.HeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Header, io.temporal.api.common.v1.Header.Builder, io.temporal.api.common.v1.HeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private io.temporal.api.common.v1.Payloads input_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Payloads, io.temporal.api.common.v1.Payloads.Builder, io.temporal.api.common.v1.PayloadsOrBuilder> inputBuilder_;
/**
* .temporal.api.common.v1.Payloads input = 6;
* @return Whether the input field is set.
*/
public boolean hasInput() {
return inputBuilder_ != null || input_ != null;
}
/**
* .temporal.api.common.v1.Payloads input = 6;
* @return The input.
*/
public io.temporal.api.common.v1.Payloads getInput() {
if (inputBuilder_ == null) {
return input_ == null ? io.temporal.api.common.v1.Payloads.getDefaultInstance() : input_;
} else {
return inputBuilder_.getMessage();
}
}
/**
* .temporal.api.common.v1.Payloads input = 6;
*/
public Builder setInput(io.temporal.api.common.v1.Payloads value) {
if (inputBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
input_ = value;
onChanged();
} else {
inputBuilder_.setMessage(value);
}
return this;
}
/**
* .temporal.api.common.v1.Payloads input = 6;
*/
public Builder setInput(
io.temporal.api.common.v1.Payloads.Builder builderForValue) {
if (inputBuilder_ == null) {
input_ = builderForValue.build();
onChanged();
} else {
inputBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .temporal.api.common.v1.Payloads input = 6;
*/
public Builder mergeInput(io.temporal.api.common.v1.Payloads value) {
if (inputBuilder_ == null) {
if (input_ != null) {
input_ =
io.temporal.api.common.v1.Payloads.newBuilder(input_).mergeFrom(value).buildPartial();
} else {
input_ = value;
}
onChanged();
} else {
inputBuilder_.mergeFrom(value);
}
return this;
}
/**
* .temporal.api.common.v1.Payloads input = 6;
*/
public Builder clearInput() {
if (inputBuilder_ == null) {
input_ = null;
onChanged();
} else {
input_ = null;
inputBuilder_ = null;
}
return this;
}
/**
* .temporal.api.common.v1.Payloads input = 6;
*/
public io.temporal.api.common.v1.Payloads.Builder getInputBuilder() {
onChanged();
return getInputFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.Payloads input = 6;
*/
public io.temporal.api.common.v1.PayloadsOrBuilder getInputOrBuilder() {
if (inputBuilder_ != null) {
return inputBuilder_.getMessageOrBuilder();
} else {
return input_ == null ?
io.temporal.api.common.v1.Payloads.getDefaultInstance() : input_;
}
}
/**
* .temporal.api.common.v1.Payloads input = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Payloads, io.temporal.api.common.v1.Payloads.Builder, io.temporal.api.common.v1.PayloadsOrBuilder>
getInputFieldBuilder() {
if (inputBuilder_ == null) {
inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Payloads, io.temporal.api.common.v1.Payloads.Builder, io.temporal.api.common.v1.PayloadsOrBuilder>(
getInput(),
getParentForChildren(),
isClean());
input_ = null;
}
return inputBuilder_;
}
private com.google.protobuf.Duration scheduleToCloseTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> scheduleToCloseTimeoutBuilder_;
/**
*
* 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];
* @return Whether the scheduleToCloseTimeout field is set.
*/
public boolean hasScheduleToCloseTimeout() {
return scheduleToCloseTimeoutBuilder_ != null || scheduleToCloseTimeout_ != null;
}
/**
*
* 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];
* @return The scheduleToCloseTimeout.
*/
public com.google.protobuf.Duration getScheduleToCloseTimeout() {
if (scheduleToCloseTimeoutBuilder_ == null) {
return scheduleToCloseTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : scheduleToCloseTimeout_;
} else {
return scheduleToCloseTimeoutBuilder_.getMessage();
}
}
/**
*
* 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];
*/
public Builder setScheduleToCloseTimeout(com.google.protobuf.Duration value) {
if (scheduleToCloseTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduleToCloseTimeout_ = value;
onChanged();
} else {
scheduleToCloseTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
*
* 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];
*/
public Builder setScheduleToCloseTimeout(
com.google.protobuf.Duration.Builder builderForValue) {
if (scheduleToCloseTimeoutBuilder_ == null) {
scheduleToCloseTimeout_ = builderForValue.build();
onChanged();
} else {
scheduleToCloseTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* 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];
*/
public Builder mergeScheduleToCloseTimeout(com.google.protobuf.Duration value) {
if (scheduleToCloseTimeoutBuilder_ == null) {
if (scheduleToCloseTimeout_ != null) {
scheduleToCloseTimeout_ =
com.google.protobuf.Duration.newBuilder(scheduleToCloseTimeout_).mergeFrom(value).buildPartial();
} else {
scheduleToCloseTimeout_ = value;
}
onChanged();
} else {
scheduleToCloseTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* 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];
*/
public Builder clearScheduleToCloseTimeout() {
if (scheduleToCloseTimeoutBuilder_ == null) {
scheduleToCloseTimeout_ = null;
onChanged();
} else {
scheduleToCloseTimeout_ = null;
scheduleToCloseTimeoutBuilder_ = null;
}
return this;
}
/**
*
* 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];
*/
public com.google.protobuf.Duration.Builder getScheduleToCloseTimeoutBuilder() {
onChanged();
return getScheduleToCloseTimeoutFieldBuilder().getBuilder();
}
/**
*
* 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];
*/
public com.google.protobuf.DurationOrBuilder getScheduleToCloseTimeoutOrBuilder() {
if (scheduleToCloseTimeoutBuilder_ != null) {
return scheduleToCloseTimeoutBuilder_.getMessageOrBuilder();
} else {
return scheduleToCloseTimeout_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : scheduleToCloseTimeout_;
}
}
/**
*
* 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];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getScheduleToCloseTimeoutFieldBuilder() {
if (scheduleToCloseTimeoutBuilder_ == null) {
scheduleToCloseTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getScheduleToCloseTimeout(),
getParentForChildren(),
isClean());
scheduleToCloseTimeout_ = null;
}
return scheduleToCloseTimeoutBuilder_;
}
private com.google.protobuf.Duration scheduleToStartTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> scheduleToStartTimeoutBuilder_;
/**
*
* 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];
* @return Whether the scheduleToStartTimeout field is set.
*/
public boolean hasScheduleToStartTimeout() {
return scheduleToStartTimeoutBuilder_ != null || scheduleToStartTimeout_ != null;
}
/**
*
* 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];
* @return The scheduleToStartTimeout.
*/
public com.google.protobuf.Duration getScheduleToStartTimeout() {
if (scheduleToStartTimeoutBuilder_ == null) {
return scheduleToStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : scheduleToStartTimeout_;
} else {
return scheduleToStartTimeoutBuilder_.getMessage();
}
}
/**
*
* 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];
*/
public Builder setScheduleToStartTimeout(com.google.protobuf.Duration value) {
if (scheduleToStartTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduleToStartTimeout_ = value;
onChanged();
} else {
scheduleToStartTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
*
* 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];
*/
public Builder setScheduleToStartTimeout(
com.google.protobuf.Duration.Builder builderForValue) {
if (scheduleToStartTimeoutBuilder_ == null) {
scheduleToStartTimeout_ = builderForValue.build();
onChanged();
} else {
scheduleToStartTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* 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];
*/
public Builder mergeScheduleToStartTimeout(com.google.protobuf.Duration value) {
if (scheduleToStartTimeoutBuilder_ == null) {
if (scheduleToStartTimeout_ != null) {
scheduleToStartTimeout_ =
com.google.protobuf.Duration.newBuilder(scheduleToStartTimeout_).mergeFrom(value).buildPartial();
} else {
scheduleToStartTimeout_ = value;
}
onChanged();
} else {
scheduleToStartTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* 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];
*/
public Builder clearScheduleToStartTimeout() {
if (scheduleToStartTimeoutBuilder_ == null) {
scheduleToStartTimeout_ = null;
onChanged();
} else {
scheduleToStartTimeout_ = null;
scheduleToStartTimeoutBuilder_ = null;
}
return this;
}
/**
*
* 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];
*/
public com.google.protobuf.Duration.Builder getScheduleToStartTimeoutBuilder() {
onChanged();
return getScheduleToStartTimeoutFieldBuilder().getBuilder();
}
/**
*
* 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];
*/
public com.google.protobuf.DurationOrBuilder getScheduleToStartTimeoutOrBuilder() {
if (scheduleToStartTimeoutBuilder_ != null) {
return scheduleToStartTimeoutBuilder_.getMessageOrBuilder();
} else {
return scheduleToStartTimeout_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : scheduleToStartTimeout_;
}
}
/**
*
* 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];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getScheduleToStartTimeoutFieldBuilder() {
if (scheduleToStartTimeoutBuilder_ == null) {
scheduleToStartTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getScheduleToStartTimeout(),
getParentForChildren(),
isClean());
scheduleToStartTimeout_ = null;
}
return scheduleToStartTimeoutBuilder_;
}
private com.google.protobuf.Duration startToCloseTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startToCloseTimeoutBuilder_;
/**
*
* 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];
* @return Whether the startToCloseTimeout field is set.
*/
public boolean hasStartToCloseTimeout() {
return startToCloseTimeoutBuilder_ != null || startToCloseTimeout_ != null;
}
/**
*
* 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];
* @return The startToCloseTimeout.
*/
public com.google.protobuf.Duration getStartToCloseTimeout() {
if (startToCloseTimeoutBuilder_ == null) {
return startToCloseTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startToCloseTimeout_;
} else {
return startToCloseTimeoutBuilder_.getMessage();
}
}
/**
*
* 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];
*/
public Builder setStartToCloseTimeout(com.google.protobuf.Duration value) {
if (startToCloseTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startToCloseTimeout_ = value;
onChanged();
} else {
startToCloseTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
*
* 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];
*/
public Builder setStartToCloseTimeout(
com.google.protobuf.Duration.Builder builderForValue) {
if (startToCloseTimeoutBuilder_ == null) {
startToCloseTimeout_ = builderForValue.build();
onChanged();
} else {
startToCloseTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* 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];
*/
public Builder mergeStartToCloseTimeout(com.google.protobuf.Duration value) {
if (startToCloseTimeoutBuilder_ == null) {
if (startToCloseTimeout_ != null) {
startToCloseTimeout_ =
com.google.protobuf.Duration.newBuilder(startToCloseTimeout_).mergeFrom(value).buildPartial();
} else {
startToCloseTimeout_ = value;
}
onChanged();
} else {
startToCloseTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* 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];
*/
public Builder clearStartToCloseTimeout() {
if (startToCloseTimeoutBuilder_ == null) {
startToCloseTimeout_ = null;
onChanged();
} else {
startToCloseTimeout_ = null;
startToCloseTimeoutBuilder_ = null;
}
return this;
}
/**
*
* 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];
*/
public com.google.protobuf.Duration.Builder getStartToCloseTimeoutBuilder() {
onChanged();
return getStartToCloseTimeoutFieldBuilder().getBuilder();
}
/**
*
* 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];
*/
public com.google.protobuf.DurationOrBuilder getStartToCloseTimeoutOrBuilder() {
if (startToCloseTimeoutBuilder_ != null) {
return startToCloseTimeoutBuilder_.getMessageOrBuilder();
} else {
return startToCloseTimeout_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : startToCloseTimeout_;
}
}
/**
*
* 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];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getStartToCloseTimeoutFieldBuilder() {
if (startToCloseTimeoutBuilder_ == null) {
startToCloseTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getStartToCloseTimeout(),
getParentForChildren(),
isClean());
startToCloseTimeout_ = null;
}
return startToCloseTimeoutBuilder_;
}
private com.google.protobuf.Duration heartbeatTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> heartbeatTimeoutBuilder_;
/**
*
* Maximum permitted time between successful worker heartbeats.
*
*
* .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
* @return Whether the heartbeatTimeout field is set.
*/
public boolean hasHeartbeatTimeout() {
return heartbeatTimeoutBuilder_ != null || heartbeatTimeout_ != null;
}
/**
*
* Maximum permitted time between successful worker heartbeats.
*
*
* .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
* @return The heartbeatTimeout.
*/
public com.google.protobuf.Duration getHeartbeatTimeout() {
if (heartbeatTimeoutBuilder_ == null) {
return heartbeatTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : heartbeatTimeout_;
} else {
return heartbeatTimeoutBuilder_.getMessage();
}
}
/**
*
* Maximum permitted time between successful worker heartbeats.
*
*
* .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
*/
public Builder setHeartbeatTimeout(com.google.protobuf.Duration value) {
if (heartbeatTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
heartbeatTimeout_ = value;
onChanged();
} else {
heartbeatTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
*
* Maximum permitted time between successful worker heartbeats.
*
*
* .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
*/
public Builder setHeartbeatTimeout(
com.google.protobuf.Duration.Builder builderForValue) {
if (heartbeatTimeoutBuilder_ == null) {
heartbeatTimeout_ = builderForValue.build();
onChanged();
} else {
heartbeatTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Maximum permitted time between successful worker heartbeats.
*
*
* .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
*/
public Builder mergeHeartbeatTimeout(com.google.protobuf.Duration value) {
if (heartbeatTimeoutBuilder_ == null) {
if (heartbeatTimeout_ != null) {
heartbeatTimeout_ =
com.google.protobuf.Duration.newBuilder(heartbeatTimeout_).mergeFrom(value).buildPartial();
} else {
heartbeatTimeout_ = value;
}
onChanged();
} else {
heartbeatTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Maximum permitted time between successful worker heartbeats.
*
*
* .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
*/
public Builder clearHeartbeatTimeout() {
if (heartbeatTimeoutBuilder_ == null) {
heartbeatTimeout_ = null;
onChanged();
} else {
heartbeatTimeout_ = null;
heartbeatTimeoutBuilder_ = null;
}
return this;
}
/**
*
* Maximum permitted time between successful worker heartbeats.
*
*
* .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.Duration.Builder getHeartbeatTimeoutBuilder() {
onChanged();
return getHeartbeatTimeoutFieldBuilder().getBuilder();
}
/**
*
* Maximum permitted time between successful worker heartbeats.
*
*
* .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.DurationOrBuilder getHeartbeatTimeoutOrBuilder() {
if (heartbeatTimeoutBuilder_ != null) {
return heartbeatTimeoutBuilder_.getMessageOrBuilder();
} else {
return heartbeatTimeout_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : heartbeatTimeout_;
}
}
/**
*
* Maximum permitted time between successful worker heartbeats.
*
*
* .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getHeartbeatTimeoutFieldBuilder() {
if (heartbeatTimeoutBuilder_ == null) {
heartbeatTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getHeartbeatTimeout(),
getParentForChildren(),
isClean());
heartbeatTimeout_ = null;
}
return heartbeatTimeoutBuilder_;
}
private io.temporal.api.common.v1.RetryPolicy retryPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.RetryPolicy, io.temporal.api.common.v1.RetryPolicy.Builder, io.temporal.api.common.v1.RetryPolicyOrBuilder> retryPolicyBuilder_;
/**
*
* 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;
* @return Whether the retryPolicy field is set.
*/
public boolean hasRetryPolicy() {
return retryPolicyBuilder_ != null || retryPolicy_ != null;
}
/**
*
* 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;
* @return The retryPolicy.
*/
public io.temporal.api.common.v1.RetryPolicy getRetryPolicy() {
if (retryPolicyBuilder_ == null) {
return retryPolicy_ == null ? io.temporal.api.common.v1.RetryPolicy.getDefaultInstance() : retryPolicy_;
} else {
return retryPolicyBuilder_.getMessage();
}
}
/**
*
* 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;
*/
public Builder setRetryPolicy(io.temporal.api.common.v1.RetryPolicy value) {
if (retryPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
retryPolicy_ = value;
onChanged();
} else {
retryPolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* 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;
*/
public Builder setRetryPolicy(
io.temporal.api.common.v1.RetryPolicy.Builder builderForValue) {
if (retryPolicyBuilder_ == null) {
retryPolicy_ = builderForValue.build();
onChanged();
} else {
retryPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* 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;
*/
public Builder mergeRetryPolicy(io.temporal.api.common.v1.RetryPolicy value) {
if (retryPolicyBuilder_ == null) {
if (retryPolicy_ != null) {
retryPolicy_ =
io.temporal.api.common.v1.RetryPolicy.newBuilder(retryPolicy_).mergeFrom(value).buildPartial();
} else {
retryPolicy_ = value;
}
onChanged();
} else {
retryPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* 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;
*/
public Builder clearRetryPolicy() {
if (retryPolicyBuilder_ == null) {
retryPolicy_ = null;
onChanged();
} else {
retryPolicy_ = null;
retryPolicyBuilder_ = null;
}
return this;
}
/**
*
* 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;
*/
public io.temporal.api.common.v1.RetryPolicy.Builder getRetryPolicyBuilder() {
onChanged();
return getRetryPolicyFieldBuilder().getBuilder();
}
/**
*
* 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;
*/
public io.temporal.api.common.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
if (retryPolicyBuilder_ != null) {
return retryPolicyBuilder_.getMessageOrBuilder();
} else {
return retryPolicy_ == null ?
io.temporal.api.common.v1.RetryPolicy.getDefaultInstance() : retryPolicy_;
}
}
/**
*
* 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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.RetryPolicy, io.temporal.api.common.v1.RetryPolicy.Builder, io.temporal.api.common.v1.RetryPolicyOrBuilder>
getRetryPolicyFieldBuilder() {
if (retryPolicyBuilder_ == null) {
retryPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.RetryPolicy, io.temporal.api.common.v1.RetryPolicy.Builder, io.temporal.api.common.v1.RetryPolicyOrBuilder>(
getRetryPolicy(),
getParentForChildren(),
isClean());
retryPolicy_ = null;
}
return retryPolicyBuilder_;
}
private boolean requestEagerExecution_ ;
/**
*
* 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;
* @return The requestEagerExecution.
*/
public boolean getRequestEagerExecution() {
return requestEagerExecution_;
}
/**
*
* 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;
* @param value The requestEagerExecution to set.
* @return This builder for chaining.
*/
public Builder setRequestEagerExecution(boolean value) {
requestEagerExecution_ = value;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearRequestEagerExecution() {
requestEagerExecution_ = false;
onChanged();
return this;
}
private boolean useCompatibleVersion_ ;
/**
*
* 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;
* @return The useCompatibleVersion.
*/
public boolean getUseCompatibleVersion() {
return useCompatibleVersion_;
}
/**
*
* 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;
* @param value The useCompatibleVersion to set.
* @return This builder for chaining.
*/
public Builder setUseCompatibleVersion(boolean value) {
useCompatibleVersion_ = value;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearUseCompatibleVersion() {
useCompatibleVersion_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:temporal.api.command.v1.ScheduleActivityTaskCommandAttributes)
}
// @@protoc_insertion_point(class_scope:temporal.api.command.v1.ScheduleActivityTaskCommandAttributes)
private static final io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes();
}
public static io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ScheduleActivityTaskCommandAttributes parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ScheduleActivityTaskCommandAttributes(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.temporal.api.command.v1.ScheduleActivityTaskCommandAttributes getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy