implements
// @@protoc_insertion_point(builder_implements:temporal.api.workflowservice.v1.StartWorkflowExecutionRequest)
io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_StartWorkflowExecutionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_StartWorkflowExecutionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.class, io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.Builder.class);
}
// Construct using io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.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();
namespace_ = "";
workflowId_ = "";
if (workflowTypeBuilder_ == null) {
workflowType_ = null;
} else {
workflowType_ = null;
workflowTypeBuilder_ = null;
}
if (taskQueueBuilder_ == null) {
taskQueue_ = null;
} else {
taskQueue_ = null;
taskQueueBuilder_ = null;
}
if (inputBuilder_ == null) {
input_ = null;
} else {
input_ = null;
inputBuilder_ = null;
}
if (workflowExecutionTimeoutBuilder_ == null) {
workflowExecutionTimeout_ = null;
} else {
workflowExecutionTimeout_ = null;
workflowExecutionTimeoutBuilder_ = null;
}
if (workflowRunTimeoutBuilder_ == null) {
workflowRunTimeout_ = null;
} else {
workflowRunTimeout_ = null;
workflowRunTimeoutBuilder_ = null;
}
if (workflowTaskTimeoutBuilder_ == null) {
workflowTaskTimeout_ = null;
} else {
workflowTaskTimeout_ = null;
workflowTaskTimeoutBuilder_ = null;
}
identity_ = "";
requestId_ = "";
workflowIdReusePolicy_ = 0;
if (retryPolicyBuilder_ == null) {
retryPolicy_ = null;
} else {
retryPolicy_ = null;
retryPolicyBuilder_ = null;
}
cronSchedule_ = "";
if (memoBuilder_ == null) {
memo_ = null;
} else {
memo_ = null;
memoBuilder_ = null;
}
if (searchAttributesBuilder_ == null) {
searchAttributes_ = null;
} else {
searchAttributes_ = null;
searchAttributesBuilder_ = null;
}
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
requestEagerExecution_ = false;
if (continuedFailureBuilder_ == null) {
continuedFailure_ = null;
} else {
continuedFailure_ = null;
continuedFailureBuilder_ = null;
}
if (lastCompletionResultBuilder_ == null) {
lastCompletionResult_ = null;
} else {
lastCompletionResult_ = null;
lastCompletionResultBuilder_ = null;
}
if (workflowStartDelayBuilder_ == null) {
workflowStartDelay_ = null;
} else {
workflowStartDelay_ = null;
workflowStartDelayBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_StartWorkflowExecutionRequest_descriptor;
}
@java.lang.Override
public io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest getDefaultInstanceForType() {
return io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest build() {
io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest buildPartial() {
io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest result = new io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest(this);
result.namespace_ = namespace_;
result.workflowId_ = workflowId_;
if (workflowTypeBuilder_ == null) {
result.workflowType_ = workflowType_;
} else {
result.workflowType_ = workflowTypeBuilder_.build();
}
if (taskQueueBuilder_ == null) {
result.taskQueue_ = taskQueue_;
} else {
result.taskQueue_ = taskQueueBuilder_.build();
}
if (inputBuilder_ == null) {
result.input_ = input_;
} else {
result.input_ = inputBuilder_.build();
}
if (workflowExecutionTimeoutBuilder_ == null) {
result.workflowExecutionTimeout_ = workflowExecutionTimeout_;
} else {
result.workflowExecutionTimeout_ = workflowExecutionTimeoutBuilder_.build();
}
if (workflowRunTimeoutBuilder_ == null) {
result.workflowRunTimeout_ = workflowRunTimeout_;
} else {
result.workflowRunTimeout_ = workflowRunTimeoutBuilder_.build();
}
if (workflowTaskTimeoutBuilder_ == null) {
result.workflowTaskTimeout_ = workflowTaskTimeout_;
} else {
result.workflowTaskTimeout_ = workflowTaskTimeoutBuilder_.build();
}
result.identity_ = identity_;
result.requestId_ = requestId_;
result.workflowIdReusePolicy_ = workflowIdReusePolicy_;
if (retryPolicyBuilder_ == null) {
result.retryPolicy_ = retryPolicy_;
} else {
result.retryPolicy_ = retryPolicyBuilder_.build();
}
result.cronSchedule_ = cronSchedule_;
if (memoBuilder_ == null) {
result.memo_ = memo_;
} else {
result.memo_ = memoBuilder_.build();
}
if (searchAttributesBuilder_ == null) {
result.searchAttributes_ = searchAttributes_;
} else {
result.searchAttributes_ = searchAttributesBuilder_.build();
}
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
result.requestEagerExecution_ = requestEagerExecution_;
if (continuedFailureBuilder_ == null) {
result.continuedFailure_ = continuedFailure_;
} else {
result.continuedFailure_ = continuedFailureBuilder_.build();
}
if (lastCompletionResultBuilder_ == null) {
result.lastCompletionResult_ = lastCompletionResult_;
} else {
result.lastCompletionResult_ = lastCompletionResultBuilder_.build();
}
if (workflowStartDelayBuilder_ == null) {
result.workflowStartDelay_ = workflowStartDelay_;
} else {
result.workflowStartDelay_ = workflowStartDelayBuilder_.build();
}
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.workflowservice.v1.StartWorkflowExecutionRequest) {
return mergeFrom((io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest other) {
if (other == io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.getDefaultInstance()) return this;
if (!other.getNamespace().isEmpty()) {
namespace_ = other.namespace_;
onChanged();
}
if (!other.getWorkflowId().isEmpty()) {
workflowId_ = other.workflowId_;
onChanged();
}
if (other.hasWorkflowType()) {
mergeWorkflowType(other.getWorkflowType());
}
if (other.hasTaskQueue()) {
mergeTaskQueue(other.getTaskQueue());
}
if (other.hasInput()) {
mergeInput(other.getInput());
}
if (other.hasWorkflowExecutionTimeout()) {
mergeWorkflowExecutionTimeout(other.getWorkflowExecutionTimeout());
}
if (other.hasWorkflowRunTimeout()) {
mergeWorkflowRunTimeout(other.getWorkflowRunTimeout());
}
if (other.hasWorkflowTaskTimeout()) {
mergeWorkflowTaskTimeout(other.getWorkflowTaskTimeout());
}
if (!other.getIdentity().isEmpty()) {
identity_ = other.identity_;
onChanged();
}
if (!other.getRequestId().isEmpty()) {
requestId_ = other.requestId_;
onChanged();
}
if (other.workflowIdReusePolicy_ != 0) {
setWorkflowIdReusePolicyValue(other.getWorkflowIdReusePolicyValue());
}
if (other.hasRetryPolicy()) {
mergeRetryPolicy(other.getRetryPolicy());
}
if (!other.getCronSchedule().isEmpty()) {
cronSchedule_ = other.cronSchedule_;
onChanged();
}
if (other.hasMemo()) {
mergeMemo(other.getMemo());
}
if (other.hasSearchAttributes()) {
mergeSearchAttributes(other.getSearchAttributes());
}
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.getRequestEagerExecution() != false) {
setRequestEagerExecution(other.getRequestEagerExecution());
}
if (other.hasContinuedFailure()) {
mergeContinuedFailure(other.getContinuedFailure());
}
if (other.hasLastCompletionResult()) {
mergeLastCompletionResult(other.getLastCompletionResult());
}
if (other.hasWorkflowStartDelay()) {
mergeWorkflowStartDelay(other.getWorkflowStartDelay());
}
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.workflowservice.v1.StartWorkflowExecutionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object namespace_ = "";
/**
* string namespace = 1;
* @return The namespace.
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
namespace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string namespace = 1;
* @return The bytes for namespace.
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string namespace = 1;
* @param value The namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
namespace_ = value;
onChanged();
return this;
}
/**
* string namespace = 1;
* @return This builder for chaining.
*/
public Builder clearNamespace() {
namespace_ = getDefaultInstance().getNamespace();
onChanged();
return this;
}
/**
* string namespace = 1;
* @param value The bytes for namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
namespace_ = value;
onChanged();
return this;
}
private java.lang.Object workflowId_ = "";
/**
* string workflow_id = 2;
* @return The workflowId.
*/
public java.lang.String getWorkflowId() {
java.lang.Object ref = workflowId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
workflowId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string workflow_id = 2;
* @return The bytes for workflowId.
*/
public com.google.protobuf.ByteString
getWorkflowIdBytes() {
java.lang.Object ref = workflowId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workflowId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string workflow_id = 2;
* @param value The workflowId to set.
* @return This builder for chaining.
*/
public Builder setWorkflowId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
workflowId_ = value;
onChanged();
return this;
}
/**
* string workflow_id = 2;
* @return This builder for chaining.
*/
public Builder clearWorkflowId() {
workflowId_ = getDefaultInstance().getWorkflowId();
onChanged();
return this;
}
/**
* string workflow_id = 2;
* @param value The bytes for workflowId to set.
* @return This builder for chaining.
*/
public Builder setWorkflowIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
workflowId_ = value;
onChanged();
return this;
}
private io.temporal.api.common.v1.WorkflowType workflowType_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.WorkflowType, io.temporal.api.common.v1.WorkflowType.Builder, io.temporal.api.common.v1.WorkflowTypeOrBuilder> workflowTypeBuilder_;
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 3;
* @return Whether the workflowType field is set.
*/
public boolean hasWorkflowType() {
return workflowTypeBuilder_ != null || workflowType_ != null;
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 3;
* @return The workflowType.
*/
public io.temporal.api.common.v1.WorkflowType getWorkflowType() {
if (workflowTypeBuilder_ == null) {
return workflowType_ == null ? io.temporal.api.common.v1.WorkflowType.getDefaultInstance() : workflowType_;
} else {
return workflowTypeBuilder_.getMessage();
}
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 3;
*/
public Builder setWorkflowType(io.temporal.api.common.v1.WorkflowType value) {
if (workflowTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
workflowType_ = value;
onChanged();
} else {
workflowTypeBuilder_.setMessage(value);
}
return this;
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 3;
*/
public Builder setWorkflowType(
io.temporal.api.common.v1.WorkflowType.Builder builderForValue) {
if (workflowTypeBuilder_ == null) {
workflowType_ = builderForValue.build();
onChanged();
} else {
workflowTypeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 3;
*/
public Builder mergeWorkflowType(io.temporal.api.common.v1.WorkflowType value) {
if (workflowTypeBuilder_ == null) {
if (workflowType_ != null) {
workflowType_ =
io.temporal.api.common.v1.WorkflowType.newBuilder(workflowType_).mergeFrom(value).buildPartial();
} else {
workflowType_ = value;
}
onChanged();
} else {
workflowTypeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 3;
*/
public Builder clearWorkflowType() {
if (workflowTypeBuilder_ == null) {
workflowType_ = null;
onChanged();
} else {
workflowType_ = null;
workflowTypeBuilder_ = null;
}
return this;
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 3;
*/
public io.temporal.api.common.v1.WorkflowType.Builder getWorkflowTypeBuilder() {
onChanged();
return getWorkflowTypeFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 3;
*/
public io.temporal.api.common.v1.WorkflowTypeOrBuilder getWorkflowTypeOrBuilder() {
if (workflowTypeBuilder_ != null) {
return workflowTypeBuilder_.getMessageOrBuilder();
} else {
return workflowType_ == null ?
io.temporal.api.common.v1.WorkflowType.getDefaultInstance() : workflowType_;
}
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.WorkflowType, io.temporal.api.common.v1.WorkflowType.Builder, io.temporal.api.common.v1.WorkflowTypeOrBuilder>
getWorkflowTypeFieldBuilder() {
if (workflowTypeBuilder_ == null) {
workflowTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.WorkflowType, io.temporal.api.common.v1.WorkflowType.Builder, io.temporal.api.common.v1.WorkflowTypeOrBuilder>(
getWorkflowType(),
getParentForChildren(),
isClean());
workflowType_ = null;
}
return workflowTypeBuilder_;
}
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.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_;
/**
*
* Serialized arguments to the workflow. These are passed as arguments to the workflow function.
*
*
* .temporal.api.common.v1.Payloads input = 5;
* @return Whether the input field is set.
*/
public boolean hasInput() {
return inputBuilder_ != null || input_ != null;
}
/**
*
* Serialized arguments to the workflow. These are passed as arguments to the workflow function.
*
*
* .temporal.api.common.v1.Payloads input = 5;
* @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();
}
}
/**
*
* Serialized arguments to the workflow. These are passed as arguments to the workflow function.
*
*
* .temporal.api.common.v1.Payloads input = 5;
*/
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;
}
/**
*
* Serialized arguments to the workflow. These are passed as arguments to the workflow function.
*
*
* .temporal.api.common.v1.Payloads input = 5;
*/
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;
}
/**
*
* Serialized arguments to the workflow. These are passed as arguments to the workflow function.
*
*
* .temporal.api.common.v1.Payloads input = 5;
*/
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;
}
/**
*
* Serialized arguments to the workflow. These are passed as arguments to the workflow function.
*
*
* .temporal.api.common.v1.Payloads input = 5;
*/
public Builder clearInput() {
if (inputBuilder_ == null) {
input_ = null;
onChanged();
} else {
input_ = null;
inputBuilder_ = null;
}
return this;
}
/**
*
* Serialized arguments to the workflow. These are passed as arguments to the workflow function.
*
*
* .temporal.api.common.v1.Payloads input = 5;
*/
public io.temporal.api.common.v1.Payloads.Builder getInputBuilder() {
onChanged();
return getInputFieldBuilder().getBuilder();
}
/**
*
* Serialized arguments to the workflow. These are passed as arguments to the workflow function.
*
*
* .temporal.api.common.v1.Payloads input = 5;
*/
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_;
}
}
/**
*
* Serialized arguments to the workflow. These are passed as arguments to the workflow function.
*
*
* .temporal.api.common.v1.Payloads input = 5;
*/
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 workflowExecutionTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> workflowExecutionTimeoutBuilder_;
/**
*
* Total workflow execution timeout including retries and continue as new.
*
*
* .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
* @return Whether the workflowExecutionTimeout field is set.
*/
public boolean hasWorkflowExecutionTimeout() {
return workflowExecutionTimeoutBuilder_ != null || workflowExecutionTimeout_ != null;
}
/**
*
* Total workflow execution timeout including retries and continue as new.
*
*
* .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
* @return The workflowExecutionTimeout.
*/
public com.google.protobuf.Duration getWorkflowExecutionTimeout() {
if (workflowExecutionTimeoutBuilder_ == null) {
return workflowExecutionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowExecutionTimeout_;
} else {
return workflowExecutionTimeoutBuilder_.getMessage();
}
}
/**
*
* Total workflow execution timeout including retries and continue as new.
*
*
* .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
*/
public Builder setWorkflowExecutionTimeout(com.google.protobuf.Duration value) {
if (workflowExecutionTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
workflowExecutionTimeout_ = value;
onChanged();
} else {
workflowExecutionTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
*
* Total workflow execution timeout including retries and continue as new.
*
*
* .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
*/
public Builder setWorkflowExecutionTimeout(
com.google.protobuf.Duration.Builder builderForValue) {
if (workflowExecutionTimeoutBuilder_ == null) {
workflowExecutionTimeout_ = builderForValue.build();
onChanged();
} else {
workflowExecutionTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Total workflow execution timeout including retries and continue as new.
*
*
* .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
*/
public Builder mergeWorkflowExecutionTimeout(com.google.protobuf.Duration value) {
if (workflowExecutionTimeoutBuilder_ == null) {
if (workflowExecutionTimeout_ != null) {
workflowExecutionTimeout_ =
com.google.protobuf.Duration.newBuilder(workflowExecutionTimeout_).mergeFrom(value).buildPartial();
} else {
workflowExecutionTimeout_ = value;
}
onChanged();
} else {
workflowExecutionTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Total workflow execution timeout including retries and continue as new.
*
*
* .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
*/
public Builder clearWorkflowExecutionTimeout() {
if (workflowExecutionTimeoutBuilder_ == null) {
workflowExecutionTimeout_ = null;
onChanged();
} else {
workflowExecutionTimeout_ = null;
workflowExecutionTimeoutBuilder_ = null;
}
return this;
}
/**
*
* Total workflow execution timeout including retries and continue as new.
*
*
* .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.Duration.Builder getWorkflowExecutionTimeoutBuilder() {
onChanged();
return getWorkflowExecutionTimeoutFieldBuilder().getBuilder();
}
/**
*
* Total workflow execution timeout including retries and continue as new.
*
*
* .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.DurationOrBuilder getWorkflowExecutionTimeoutOrBuilder() {
if (workflowExecutionTimeoutBuilder_ != null) {
return workflowExecutionTimeoutBuilder_.getMessageOrBuilder();
} else {
return workflowExecutionTimeout_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : workflowExecutionTimeout_;
}
}
/**
*
* Total workflow execution timeout including retries and continue as new.
*
*
* .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getWorkflowExecutionTimeoutFieldBuilder() {
if (workflowExecutionTimeoutBuilder_ == null) {
workflowExecutionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getWorkflowExecutionTimeout(),
getParentForChildren(),
isClean());
workflowExecutionTimeout_ = null;
}
return workflowExecutionTimeoutBuilder_;
}
private com.google.protobuf.Duration workflowRunTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> workflowRunTimeoutBuilder_;
/**
*
* Timeout of a single workflow run.
*
*
* .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
* @return Whether the workflowRunTimeout field is set.
*/
public boolean hasWorkflowRunTimeout() {
return workflowRunTimeoutBuilder_ != null || workflowRunTimeout_ != null;
}
/**
*
* Timeout of a single workflow run.
*
*
* .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
* @return The workflowRunTimeout.
*/
public com.google.protobuf.Duration getWorkflowRunTimeout() {
if (workflowRunTimeoutBuilder_ == null) {
return workflowRunTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowRunTimeout_;
} else {
return workflowRunTimeoutBuilder_.getMessage();
}
}
/**
*
* Timeout of a single workflow run.
*
*
* .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
*/
public Builder setWorkflowRunTimeout(com.google.protobuf.Duration value) {
if (workflowRunTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
workflowRunTimeout_ = value;
onChanged();
} else {
workflowRunTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
*
* Timeout of a single workflow run.
*
*
* .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
*/
public Builder setWorkflowRunTimeout(
com.google.protobuf.Duration.Builder builderForValue) {
if (workflowRunTimeoutBuilder_ == null) {
workflowRunTimeout_ = builderForValue.build();
onChanged();
} else {
workflowRunTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Timeout of a single workflow run.
*
*
* .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
*/
public Builder mergeWorkflowRunTimeout(com.google.protobuf.Duration value) {
if (workflowRunTimeoutBuilder_ == null) {
if (workflowRunTimeout_ != null) {
workflowRunTimeout_ =
com.google.protobuf.Duration.newBuilder(workflowRunTimeout_).mergeFrom(value).buildPartial();
} else {
workflowRunTimeout_ = value;
}
onChanged();
} else {
workflowRunTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Timeout of a single workflow run.
*
*
* .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
*/
public Builder clearWorkflowRunTimeout() {
if (workflowRunTimeoutBuilder_ == null) {
workflowRunTimeout_ = null;
onChanged();
} else {
workflowRunTimeout_ = null;
workflowRunTimeoutBuilder_ = null;
}
return this;
}
/**
*
* Timeout of a single workflow run.
*
*
* .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.Duration.Builder getWorkflowRunTimeoutBuilder() {
onChanged();
return getWorkflowRunTimeoutFieldBuilder().getBuilder();
}
/**
*
* Timeout of a single workflow run.
*
*
* .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.DurationOrBuilder getWorkflowRunTimeoutOrBuilder() {
if (workflowRunTimeoutBuilder_ != null) {
return workflowRunTimeoutBuilder_.getMessageOrBuilder();
} else {
return workflowRunTimeout_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : workflowRunTimeout_;
}
}
/**
*
* Timeout of a single workflow run.
*
*
* .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getWorkflowRunTimeoutFieldBuilder() {
if (workflowRunTimeoutBuilder_ == null) {
workflowRunTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getWorkflowRunTimeout(),
getParentForChildren(),
isClean());
workflowRunTimeout_ = null;
}
return workflowRunTimeoutBuilder_;
}
private com.google.protobuf.Duration workflowTaskTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> workflowTaskTimeoutBuilder_;
/**
*
* Timeout of a single workflow task.
*
*
* .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
* @return Whether the workflowTaskTimeout field is set.
*/
public boolean hasWorkflowTaskTimeout() {
return workflowTaskTimeoutBuilder_ != null || workflowTaskTimeout_ != null;
}
/**
*
* Timeout of a single workflow task.
*
*
* .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
* @return The workflowTaskTimeout.
*/
public com.google.protobuf.Duration getWorkflowTaskTimeout() {
if (workflowTaskTimeoutBuilder_ == null) {
return workflowTaskTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowTaskTimeout_;
} else {
return workflowTaskTimeoutBuilder_.getMessage();
}
}
/**
*
* Timeout of a single workflow task.
*
*
* .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
*/
public Builder setWorkflowTaskTimeout(com.google.protobuf.Duration value) {
if (workflowTaskTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
workflowTaskTimeout_ = value;
onChanged();
} else {
workflowTaskTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
*
* Timeout of a single workflow task.
*
*
* .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
*/
public Builder setWorkflowTaskTimeout(
com.google.protobuf.Duration.Builder builderForValue) {
if (workflowTaskTimeoutBuilder_ == null) {
workflowTaskTimeout_ = builderForValue.build();
onChanged();
} else {
workflowTaskTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Timeout of a single workflow task.
*
*
* .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
*/
public Builder mergeWorkflowTaskTimeout(com.google.protobuf.Duration value) {
if (workflowTaskTimeoutBuilder_ == null) {
if (workflowTaskTimeout_ != null) {
workflowTaskTimeout_ =
com.google.protobuf.Duration.newBuilder(workflowTaskTimeout_).mergeFrom(value).buildPartial();
} else {
workflowTaskTimeout_ = value;
}
onChanged();
} else {
workflowTaskTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Timeout of a single workflow task.
*
*
* .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
*/
public Builder clearWorkflowTaskTimeout() {
if (workflowTaskTimeoutBuilder_ == null) {
workflowTaskTimeout_ = null;
onChanged();
} else {
workflowTaskTimeout_ = null;
workflowTaskTimeoutBuilder_ = null;
}
return this;
}
/**
*
* Timeout of a single workflow task.
*
*
* .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.Duration.Builder getWorkflowTaskTimeoutBuilder() {
onChanged();
return getWorkflowTaskTimeoutFieldBuilder().getBuilder();
}
/**
*
* Timeout of a single workflow task.
*
*
* .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.DurationOrBuilder getWorkflowTaskTimeoutOrBuilder() {
if (workflowTaskTimeoutBuilder_ != null) {
return workflowTaskTimeoutBuilder_.getMessageOrBuilder();
} else {
return workflowTaskTimeout_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : workflowTaskTimeout_;
}
}
/**
*
* Timeout of a single workflow task.
*
*
* .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getWorkflowTaskTimeoutFieldBuilder() {
if (workflowTaskTimeoutBuilder_ == null) {
workflowTaskTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getWorkflowTaskTimeout(),
getParentForChildren(),
isClean());
workflowTaskTimeout_ = null;
}
return workflowTaskTimeoutBuilder_;
}
private java.lang.Object identity_ = "";
/**
*
* The identity of the client who initiated this request
*
*
* string identity = 9;
* @return The identity.
*/
public java.lang.String getIdentity() {
java.lang.Object ref = identity_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
identity_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The identity of the client who initiated this request
*
*
* string identity = 9;
* @return The bytes for identity.
*/
public com.google.protobuf.ByteString
getIdentityBytes() {
java.lang.Object ref = identity_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
identity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The identity of the client who initiated this request
*
*
* string identity = 9;
* @param value The identity to set.
* @return This builder for chaining.
*/
public Builder setIdentity(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
identity_ = value;
onChanged();
return this;
}
/**
*
* The identity of the client who initiated this request
*
*
* string identity = 9;
* @return This builder for chaining.
*/
public Builder clearIdentity() {
identity_ = getDefaultInstance().getIdentity();
onChanged();
return this;
}
/**
*
* The identity of the client who initiated this request
*
*
* string identity = 9;
* @param value The bytes for identity to set.
* @return This builder for chaining.
*/
public Builder setIdentityBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
identity_ = value;
onChanged();
return this;
}
private java.lang.Object requestId_ = "";
/**
*
* A unique identifier for this start request. Typically UUIDv4.
*
*
* string request_id = 10;
* @return The requestId.
*/
public java.lang.String getRequestId() {
java.lang.Object ref = requestId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
requestId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A unique identifier for this start request. Typically UUIDv4.
*
*
* string request_id = 10;
* @return The bytes for requestId.
*/
public com.google.protobuf.ByteString
getRequestIdBytes() {
java.lang.Object ref = requestId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
requestId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A unique identifier for this start request. Typically UUIDv4.
*
*
* string request_id = 10;
* @param value The requestId to set.
* @return This builder for chaining.
*/
public Builder setRequestId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
requestId_ = value;
onChanged();
return this;
}
/**
*
* A unique identifier for this start request. Typically UUIDv4.
*
*
* string request_id = 10;
* @return This builder for chaining.
*/
public Builder clearRequestId() {
requestId_ = getDefaultInstance().getRequestId();
onChanged();
return this;
}
/**
*
* A unique identifier for this start request. Typically UUIDv4.
*
*
* string request_id = 10;
* @param value The bytes for requestId to set.
* @return This builder for chaining.
*/
public Builder setRequestIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
requestId_ = value;
onChanged();
return this;
}
private int workflowIdReusePolicy_ = 0;
/**
*
* Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
*
*
* .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11;
* @return The enum numeric value on the wire for workflowIdReusePolicy.
*/
public int getWorkflowIdReusePolicyValue() {
return workflowIdReusePolicy_;
}
/**
*
* Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
*
*
* .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11;
* @param value The enum numeric value on the wire for workflowIdReusePolicy to set.
* @return This builder for chaining.
*/
public Builder setWorkflowIdReusePolicyValue(int value) {
workflowIdReusePolicy_ = value;
onChanged();
return this;
}
/**
*
* Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
*
*
* .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11;
* @return The workflowIdReusePolicy.
*/
public io.temporal.api.enums.v1.WorkflowIdReusePolicy getWorkflowIdReusePolicy() {
@SuppressWarnings("deprecation")
io.temporal.api.enums.v1.WorkflowIdReusePolicy result = io.temporal.api.enums.v1.WorkflowIdReusePolicy.valueOf(workflowIdReusePolicy_);
return result == null ? io.temporal.api.enums.v1.WorkflowIdReusePolicy.UNRECOGNIZED : result;
}
/**
*
* Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
*
*
* .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11;
* @param value The workflowIdReusePolicy to set.
* @return This builder for chaining.
*/
public Builder setWorkflowIdReusePolicy(io.temporal.api.enums.v1.WorkflowIdReusePolicy value) {
if (value == null) {
throw new NullPointerException();
}
workflowIdReusePolicy_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
*
*
* .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11;
* @return This builder for chaining.
*/
public Builder clearWorkflowIdReusePolicy() {
workflowIdReusePolicy_ = 0;
onChanged();
return this;
}
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_;
/**
*
* The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
*
*
* .temporal.api.common.v1.RetryPolicy retry_policy = 12;
* @return Whether the retryPolicy field is set.
*/
public boolean hasRetryPolicy() {
return retryPolicyBuilder_ != null || retryPolicy_ != null;
}
/**
*
* The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
*
*
* .temporal.api.common.v1.RetryPolicy retry_policy = 12;
* @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();
}
}
/**
*
* The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
*
*
* .temporal.api.common.v1.RetryPolicy retry_policy = 12;
*/
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;
}
/**
*
* The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
*
*
* .temporal.api.common.v1.RetryPolicy retry_policy = 12;
*/
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;
}
/**
*
* The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
*
*
* .temporal.api.common.v1.RetryPolicy retry_policy = 12;
*/
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;
}
/**
*
* The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
*
*
* .temporal.api.common.v1.RetryPolicy retry_policy = 12;
*/
public Builder clearRetryPolicy() {
if (retryPolicyBuilder_ == null) {
retryPolicy_ = null;
onChanged();
} else {
retryPolicy_ = null;
retryPolicyBuilder_ = null;
}
return this;
}
/**
*
* The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
*
*
* .temporal.api.common.v1.RetryPolicy retry_policy = 12;
*/
public io.temporal.api.common.v1.RetryPolicy.Builder getRetryPolicyBuilder() {
onChanged();
return getRetryPolicyFieldBuilder().getBuilder();
}
/**
*
* The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
*
*
* .temporal.api.common.v1.RetryPolicy retry_policy = 12;
*/
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_;
}
}
/**
*
* The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
*
*
* .temporal.api.common.v1.RetryPolicy retry_policy = 12;
*/
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 java.lang.Object cronSchedule_ = "";
/**
*
* See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
*
*
* string cron_schedule = 13;
* @return The cronSchedule.
*/
public java.lang.String getCronSchedule() {
java.lang.Object ref = cronSchedule_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cronSchedule_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
*
*
* string cron_schedule = 13;
* @return The bytes for cronSchedule.
*/
public com.google.protobuf.ByteString
getCronScheduleBytes() {
java.lang.Object ref = cronSchedule_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cronSchedule_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
*
*
* string cron_schedule = 13;
* @param value The cronSchedule to set.
* @return This builder for chaining.
*/
public Builder setCronSchedule(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cronSchedule_ = value;
onChanged();
return this;
}
/**
*
* See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
*
*
* string cron_schedule = 13;
* @return This builder for chaining.
*/
public Builder clearCronSchedule() {
cronSchedule_ = getDefaultInstance().getCronSchedule();
onChanged();
return this;
}
/**
*
* See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
*
*
* string cron_schedule = 13;
* @param value The bytes for cronSchedule to set.
* @return This builder for chaining.
*/
public Builder setCronScheduleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cronSchedule_ = value;
onChanged();
return this;
}
private io.temporal.api.common.v1.Memo memo_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Memo, io.temporal.api.common.v1.Memo.Builder, io.temporal.api.common.v1.MemoOrBuilder> memoBuilder_;
/**
* .temporal.api.common.v1.Memo memo = 14;
* @return Whether the memo field is set.
*/
public boolean hasMemo() {
return memoBuilder_ != null || memo_ != null;
}
/**
* .temporal.api.common.v1.Memo memo = 14;
* @return The memo.
*/
public io.temporal.api.common.v1.Memo getMemo() {
if (memoBuilder_ == null) {
return memo_ == null ? io.temporal.api.common.v1.Memo.getDefaultInstance() : memo_;
} else {
return memoBuilder_.getMessage();
}
}
/**
* .temporal.api.common.v1.Memo memo = 14;
*/
public Builder setMemo(io.temporal.api.common.v1.Memo value) {
if (memoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
memo_ = value;
onChanged();
} else {
memoBuilder_.setMessage(value);
}
return this;
}
/**
* .temporal.api.common.v1.Memo memo = 14;
*/
public Builder setMemo(
io.temporal.api.common.v1.Memo.Builder builderForValue) {
if (memoBuilder_ == null) {
memo_ = builderForValue.build();
onChanged();
} else {
memoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .temporal.api.common.v1.Memo memo = 14;
*/
public Builder mergeMemo(io.temporal.api.common.v1.Memo value) {
if (memoBuilder_ == null) {
if (memo_ != null) {
memo_ =
io.temporal.api.common.v1.Memo.newBuilder(memo_).mergeFrom(value).buildPartial();
} else {
memo_ = value;
}
onChanged();
} else {
memoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .temporal.api.common.v1.Memo memo = 14;
*/
public Builder clearMemo() {
if (memoBuilder_ == null) {
memo_ = null;
onChanged();
} else {
memo_ = null;
memoBuilder_ = null;
}
return this;
}
/**
* .temporal.api.common.v1.Memo memo = 14;
*/
public io.temporal.api.common.v1.Memo.Builder getMemoBuilder() {
onChanged();
return getMemoFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.Memo memo = 14;
*/
public io.temporal.api.common.v1.MemoOrBuilder getMemoOrBuilder() {
if (memoBuilder_ != null) {
return memoBuilder_.getMessageOrBuilder();
} else {
return memo_ == null ?
io.temporal.api.common.v1.Memo.getDefaultInstance() : memo_;
}
}
/**
* .temporal.api.common.v1.Memo memo = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Memo, io.temporal.api.common.v1.Memo.Builder, io.temporal.api.common.v1.MemoOrBuilder>
getMemoFieldBuilder() {
if (memoBuilder_ == null) {
memoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Memo, io.temporal.api.common.v1.Memo.Builder, io.temporal.api.common.v1.MemoOrBuilder>(
getMemo(),
getParentForChildren(),
isClean());
memo_ = null;
}
return memoBuilder_;
}
private io.temporal.api.common.v1.SearchAttributes searchAttributes_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.SearchAttributes, io.temporal.api.common.v1.SearchAttributes.Builder, io.temporal.api.common.v1.SearchAttributesOrBuilder> searchAttributesBuilder_;
/**
* .temporal.api.common.v1.SearchAttributes search_attributes = 15;
* @return Whether the searchAttributes field is set.
*/
public boolean hasSearchAttributes() {
return searchAttributesBuilder_ != null || searchAttributes_ != null;
}
/**
* .temporal.api.common.v1.SearchAttributes search_attributes = 15;
* @return The searchAttributes.
*/
public io.temporal.api.common.v1.SearchAttributes getSearchAttributes() {
if (searchAttributesBuilder_ == null) {
return searchAttributes_ == null ? io.temporal.api.common.v1.SearchAttributes.getDefaultInstance() : searchAttributes_;
} else {
return searchAttributesBuilder_.getMessage();
}
}
/**
* .temporal.api.common.v1.SearchAttributes search_attributes = 15;
*/
public Builder setSearchAttributes(io.temporal.api.common.v1.SearchAttributes value) {
if (searchAttributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
searchAttributes_ = value;
onChanged();
} else {
searchAttributesBuilder_.setMessage(value);
}
return this;
}
/**
* .temporal.api.common.v1.SearchAttributes search_attributes = 15;
*/
public Builder setSearchAttributes(
io.temporal.api.common.v1.SearchAttributes.Builder builderForValue) {
if (searchAttributesBuilder_ == null) {
searchAttributes_ = builderForValue.build();
onChanged();
} else {
searchAttributesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .temporal.api.common.v1.SearchAttributes search_attributes = 15;
*/
public Builder mergeSearchAttributes(io.temporal.api.common.v1.SearchAttributes value) {
if (searchAttributesBuilder_ == null) {
if (searchAttributes_ != null) {
searchAttributes_ =
io.temporal.api.common.v1.SearchAttributes.newBuilder(searchAttributes_).mergeFrom(value).buildPartial();
} else {
searchAttributes_ = value;
}
onChanged();
} else {
searchAttributesBuilder_.mergeFrom(value);
}
return this;
}
/**
* .temporal.api.common.v1.SearchAttributes search_attributes = 15;
*/
public Builder clearSearchAttributes() {
if (searchAttributesBuilder_ == null) {
searchAttributes_ = null;
onChanged();
} else {
searchAttributes_ = null;
searchAttributesBuilder_ = null;
}
return this;
}
/**
* .temporal.api.common.v1.SearchAttributes search_attributes = 15;
*/
public io.temporal.api.common.v1.SearchAttributes.Builder getSearchAttributesBuilder() {
onChanged();
return getSearchAttributesFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.SearchAttributes search_attributes = 15;
*/
public io.temporal.api.common.v1.SearchAttributesOrBuilder getSearchAttributesOrBuilder() {
if (searchAttributesBuilder_ != null) {
return searchAttributesBuilder_.getMessageOrBuilder();
} else {
return searchAttributes_ == null ?
io.temporal.api.common.v1.SearchAttributes.getDefaultInstance() : searchAttributes_;
}
}
/**
* .temporal.api.common.v1.SearchAttributes search_attributes = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.SearchAttributes, io.temporal.api.common.v1.SearchAttributes.Builder, io.temporal.api.common.v1.SearchAttributesOrBuilder>
getSearchAttributesFieldBuilder() {
if (searchAttributesBuilder_ == null) {
searchAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.SearchAttributes, io.temporal.api.common.v1.SearchAttributes.Builder, io.temporal.api.common.v1.SearchAttributesOrBuilder>(
getSearchAttributes(),
getParentForChildren(),
isClean());
searchAttributes_ = null;
}
return searchAttributesBuilder_;
}
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 = 16;
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return headerBuilder_ != null || header_ != null;
}
/**
* .temporal.api.common.v1.Header header = 16;
* @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 = 16;
*/
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 = 16;
*/
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 = 16;
*/
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 = 16;
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
/**
* .temporal.api.common.v1.Header header = 16;
*/
public io.temporal.api.common.v1.Header.Builder getHeaderBuilder() {
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.Header header = 16;
*/
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 = 16;
*/
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 boolean requestEagerExecution_ ;
/**
*
* Request to get the first workflow task inline in the response bypassing matching service and worker polling.
* If set to `true` the caller is expected to have a worker available and capable of processing the task.
* The returned task will be marked as started and is expected to be completed by the specified
* `workflow_task_timeout`.
*
*
* bool request_eager_execution = 17;
* @return The requestEagerExecution.
*/
public boolean getRequestEagerExecution() {
return requestEagerExecution_;
}
/**
*
* Request to get the first workflow task inline in the response bypassing matching service and worker polling.
* If set to `true` the caller is expected to have a worker available and capable of processing the task.
* The returned task will be marked as started and is expected to be completed by the specified
* `workflow_task_timeout`.
*
*
* bool request_eager_execution = 17;
* @param value The requestEagerExecution to set.
* @return This builder for chaining.
*/
public Builder setRequestEagerExecution(boolean value) {
requestEagerExecution_ = value;
onChanged();
return this;
}
/**
*
* Request to get the first workflow task inline in the response bypassing matching service and worker polling.
* If set to `true` the caller is expected to have a worker available and capable of processing the task.
* The returned task will be marked as started and is expected to be completed by the specified
* `workflow_task_timeout`.
*
*
* bool request_eager_execution = 17;
* @return This builder for chaining.
*/
public Builder clearRequestEagerExecution() {
requestEagerExecution_ = false;
onChanged();
return this;
}
private io.temporal.api.failure.v1.Failure continuedFailure_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder> continuedFailureBuilder_;
/**
*
* These values will be available as ContinuedFailure and LastCompletionResult in the
* WorkflowExecutionStarted event and through SDKs. The are currently only used by the
* server itself (for the schedules feature) and are not intended to be exposed in
* StartWorkflowExecution.
*
*
* .temporal.api.failure.v1.Failure continued_failure = 18;
* @return Whether the continuedFailure field is set.
*/
public boolean hasContinuedFailure() {
return continuedFailureBuilder_ != null || continuedFailure_ != null;
}
/**
*
* These values will be available as ContinuedFailure and LastCompletionResult in the
* WorkflowExecutionStarted event and through SDKs. The are currently only used by the
* server itself (for the schedules feature) and are not intended to be exposed in
* StartWorkflowExecution.
*
*
* .temporal.api.failure.v1.Failure continued_failure = 18;
* @return The continuedFailure.
*/
public io.temporal.api.failure.v1.Failure getContinuedFailure() {
if (continuedFailureBuilder_ == null) {
return continuedFailure_ == null ? io.temporal.api.failure.v1.Failure.getDefaultInstance() : continuedFailure_;
} else {
return continuedFailureBuilder_.getMessage();
}
}
/**
*
* These values will be available as ContinuedFailure and LastCompletionResult in the
* WorkflowExecutionStarted event and through SDKs. The are currently only used by the
* server itself (for the schedules feature) and are not intended to be exposed in
* StartWorkflowExecution.
*
*
* .temporal.api.failure.v1.Failure continued_failure = 18;
*/
public Builder setContinuedFailure(io.temporal.api.failure.v1.Failure value) {
if (continuedFailureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
continuedFailure_ = value;
onChanged();
} else {
continuedFailureBuilder_.setMessage(value);
}
return this;
}
/**
*
* These values will be available as ContinuedFailure and LastCompletionResult in the
* WorkflowExecutionStarted event and through SDKs. The are currently only used by the
* server itself (for the schedules feature) and are not intended to be exposed in
* StartWorkflowExecution.
*
*
* .temporal.api.failure.v1.Failure continued_failure = 18;
*/
public Builder setContinuedFailure(
io.temporal.api.failure.v1.Failure.Builder builderForValue) {
if (continuedFailureBuilder_ == null) {
continuedFailure_ = builderForValue.build();
onChanged();
} else {
continuedFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* These values will be available as ContinuedFailure and LastCompletionResult in the
* WorkflowExecutionStarted event and through SDKs. The are currently only used by the
* server itself (for the schedules feature) and are not intended to be exposed in
* StartWorkflowExecution.
*
*
* .temporal.api.failure.v1.Failure continued_failure = 18;
*/
public Builder mergeContinuedFailure(io.temporal.api.failure.v1.Failure value) {
if (continuedFailureBuilder_ == null) {
if (continuedFailure_ != null) {
continuedFailure_ =
io.temporal.api.failure.v1.Failure.newBuilder(continuedFailure_).mergeFrom(value).buildPartial();
} else {
continuedFailure_ = value;
}
onChanged();
} else {
continuedFailureBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* These values will be available as ContinuedFailure and LastCompletionResult in the
* WorkflowExecutionStarted event and through SDKs. The are currently only used by the
* server itself (for the schedules feature) and are not intended to be exposed in
* StartWorkflowExecution.
*
*
* .temporal.api.failure.v1.Failure continued_failure = 18;
*/
public Builder clearContinuedFailure() {
if (continuedFailureBuilder_ == null) {
continuedFailure_ = null;
onChanged();
} else {
continuedFailure_ = null;
continuedFailureBuilder_ = null;
}
return this;
}
/**
*
* These values will be available as ContinuedFailure and LastCompletionResult in the
* WorkflowExecutionStarted event and through SDKs. The are currently only used by the
* server itself (for the schedules feature) and are not intended to be exposed in
* StartWorkflowExecution.
*
*
* .temporal.api.failure.v1.Failure continued_failure = 18;
*/
public io.temporal.api.failure.v1.Failure.Builder getContinuedFailureBuilder() {
onChanged();
return getContinuedFailureFieldBuilder().getBuilder();
}
/**
*
* These values will be available as ContinuedFailure and LastCompletionResult in the
* WorkflowExecutionStarted event and through SDKs. The are currently only used by the
* server itself (for the schedules feature) and are not intended to be exposed in
* StartWorkflowExecution.
*
*
* .temporal.api.failure.v1.Failure continued_failure = 18;
*/
public io.temporal.api.failure.v1.FailureOrBuilder getContinuedFailureOrBuilder() {
if (continuedFailureBuilder_ != null) {
return continuedFailureBuilder_.getMessageOrBuilder();
} else {
return continuedFailure_ == null ?
io.temporal.api.failure.v1.Failure.getDefaultInstance() : continuedFailure_;
}
}
/**
*
* These values will be available as ContinuedFailure and LastCompletionResult in the
* WorkflowExecutionStarted event and through SDKs. The are currently only used by the
* server itself (for the schedules feature) and are not intended to be exposed in
* StartWorkflowExecution.
*
*
* .temporal.api.failure.v1.Failure continued_failure = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder>
getContinuedFailureFieldBuilder() {
if (continuedFailureBuilder_ == null) {
continuedFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder>(
getContinuedFailure(),
getParentForChildren(),
isClean());
continuedFailure_ = null;
}
return continuedFailureBuilder_;
}
private io.temporal.api.common.v1.Payloads lastCompletionResult_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Payloads, io.temporal.api.common.v1.Payloads.Builder, io.temporal.api.common.v1.PayloadsOrBuilder> lastCompletionResultBuilder_;
/**
* .temporal.api.common.v1.Payloads last_completion_result = 19;
* @return Whether the lastCompletionResult field is set.
*/
public boolean hasLastCompletionResult() {
return lastCompletionResultBuilder_ != null || lastCompletionResult_ != null;
}
/**
* .temporal.api.common.v1.Payloads last_completion_result = 19;
* @return The lastCompletionResult.
*/
public io.temporal.api.common.v1.Payloads getLastCompletionResult() {
if (lastCompletionResultBuilder_ == null) {
return lastCompletionResult_ == null ? io.temporal.api.common.v1.Payloads.getDefaultInstance() : lastCompletionResult_;
} else {
return lastCompletionResultBuilder_.getMessage();
}
}
/**
* .temporal.api.common.v1.Payloads last_completion_result = 19;
*/
public Builder setLastCompletionResult(io.temporal.api.common.v1.Payloads value) {
if (lastCompletionResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastCompletionResult_ = value;
onChanged();
} else {
lastCompletionResultBuilder_.setMessage(value);
}
return this;
}
/**
* .temporal.api.common.v1.Payloads last_completion_result = 19;
*/
public Builder setLastCompletionResult(
io.temporal.api.common.v1.Payloads.Builder builderForValue) {
if (lastCompletionResultBuilder_ == null) {
lastCompletionResult_ = builderForValue.build();
onChanged();
} else {
lastCompletionResultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .temporal.api.common.v1.Payloads last_completion_result = 19;
*/
public Builder mergeLastCompletionResult(io.temporal.api.common.v1.Payloads value) {
if (lastCompletionResultBuilder_ == null) {
if (lastCompletionResult_ != null) {
lastCompletionResult_ =
io.temporal.api.common.v1.Payloads.newBuilder(lastCompletionResult_).mergeFrom(value).buildPartial();
} else {
lastCompletionResult_ = value;
}
onChanged();
} else {
lastCompletionResultBuilder_.mergeFrom(value);
}
return this;
}
/**
* .temporal.api.common.v1.Payloads last_completion_result = 19;
*/
public Builder clearLastCompletionResult() {
if (lastCompletionResultBuilder_ == null) {
lastCompletionResult_ = null;
onChanged();
} else {
lastCompletionResult_ = null;
lastCompletionResultBuilder_ = null;
}
return this;
}
/**
* .temporal.api.common.v1.Payloads last_completion_result = 19;
*/
public io.temporal.api.common.v1.Payloads.Builder getLastCompletionResultBuilder() {
onChanged();
return getLastCompletionResultFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.Payloads last_completion_result = 19;
*/
public io.temporal.api.common.v1.PayloadsOrBuilder getLastCompletionResultOrBuilder() {
if (lastCompletionResultBuilder_ != null) {
return lastCompletionResultBuilder_.getMessageOrBuilder();
} else {
return lastCompletionResult_ == null ?
io.temporal.api.common.v1.Payloads.getDefaultInstance() : lastCompletionResult_;
}
}
/**
* .temporal.api.common.v1.Payloads last_completion_result = 19;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Payloads, io.temporal.api.common.v1.Payloads.Builder, io.temporal.api.common.v1.PayloadsOrBuilder>
getLastCompletionResultFieldBuilder() {
if (lastCompletionResultBuilder_ == null) {
lastCompletionResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Payloads, io.temporal.api.common.v1.Payloads.Builder, io.temporal.api.common.v1.PayloadsOrBuilder>(
getLastCompletionResult(),
getParentForChildren(),
isClean());
lastCompletionResult_ = null;
}
return lastCompletionResultBuilder_;
}
private com.google.protobuf.Duration workflowStartDelay_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> workflowStartDelayBuilder_;
/**
*
* Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
* If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
* of the delay will be ignored.
*
*
* .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true];
* @return Whether the workflowStartDelay field is set.
*/
public boolean hasWorkflowStartDelay() {
return workflowStartDelayBuilder_ != null || workflowStartDelay_ != null;
}
/**
*
* Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
* If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
* of the delay will be ignored.
*
*
* .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true];
* @return The workflowStartDelay.
*/
public com.google.protobuf.Duration getWorkflowStartDelay() {
if (workflowStartDelayBuilder_ == null) {
return workflowStartDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowStartDelay_;
} else {
return workflowStartDelayBuilder_.getMessage();
}
}
/**
*
* Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
* If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
* of the delay will be ignored.
*
*
* .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true];
*/
public Builder setWorkflowStartDelay(com.google.protobuf.Duration value) {
if (workflowStartDelayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
workflowStartDelay_ = value;
onChanged();
} else {
workflowStartDelayBuilder_.setMessage(value);
}
return this;
}
/**
*
* Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
* If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
* of the delay will be ignored.
*
*
* .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true];
*/
public Builder setWorkflowStartDelay(
com.google.protobuf.Duration.Builder builderForValue) {
if (workflowStartDelayBuilder_ == null) {
workflowStartDelay_ = builderForValue.build();
onChanged();
} else {
workflowStartDelayBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
* If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
* of the delay will be ignored.
*
*
* .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true];
*/
public Builder mergeWorkflowStartDelay(com.google.protobuf.Duration value) {
if (workflowStartDelayBuilder_ == null) {
if (workflowStartDelay_ != null) {
workflowStartDelay_ =
com.google.protobuf.Duration.newBuilder(workflowStartDelay_).mergeFrom(value).buildPartial();
} else {
workflowStartDelay_ = value;
}
onChanged();
} else {
workflowStartDelayBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
* If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
* of the delay will be ignored.
*
*
* .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true];
*/
public Builder clearWorkflowStartDelay() {
if (workflowStartDelayBuilder_ == null) {
workflowStartDelay_ = null;
onChanged();
} else {
workflowStartDelay_ = null;
workflowStartDelayBuilder_ = null;
}
return this;
}
/**
*
* Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
* If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
* of the delay will be ignored.
*
*
* .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.Duration.Builder getWorkflowStartDelayBuilder() {
onChanged();
return getWorkflowStartDelayFieldBuilder().getBuilder();
}
/**
*
* Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
* If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
* of the delay will be ignored.
*
*
* .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.DurationOrBuilder getWorkflowStartDelayOrBuilder() {
if (workflowStartDelayBuilder_ != null) {
return workflowStartDelayBuilder_.getMessageOrBuilder();
} else {
return workflowStartDelay_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : workflowStartDelay_;
}
}
/**
*
* Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
* If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
* of the delay will be ignored.
*
*
* .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getWorkflowStartDelayFieldBuilder() {
if (workflowStartDelayBuilder_ == null) {
workflowStartDelayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getWorkflowStartDelay(),
getParentForChildren(),
isClean());
workflowStartDelay_ = null;
}
return workflowStartDelayBuilder_;
}
@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.workflowservice.v1.StartWorkflowExecutionRequest)
}
// @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StartWorkflowExecutionRequest)
private static final io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest();
}
public static io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StartWorkflowExecutionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StartWorkflowExecutionRequest(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.workflowservice.v1.StartWorkflowExecutionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}