Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes 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.StartChildWorkflowExecutionCommandAttributes}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:StartChildWorkflowExecutionCommandAttributes.java.pb.meta")
public final class StartChildWorkflowExecutionCommandAttributes extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes)
StartChildWorkflowExecutionCommandAttributesOrBuilder {
private static final long serialVersionUID = 0L;
// Use StartChildWorkflowExecutionCommandAttributes.newBuilder() to construct.
private StartChildWorkflowExecutionCommandAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private StartChildWorkflowExecutionCommandAttributes() {
namespace_ = "";
workflowId_ = "";
parentClosePolicy_ = 0;
control_ = "";
workflowIdReusePolicy_ = 0;
cronSchedule_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StartChildWorkflowExecutionCommandAttributes();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StartChildWorkflowExecutionCommandAttributes(
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();
namespace_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
workflowId_ = s;
break;
}
case 26: {
io.temporal.api.common.v1.WorkflowType.Builder subBuilder = null;
if (workflowType_ != null) {
subBuilder = workflowType_.toBuilder();
}
workflowType_ = input.readMessage(io.temporal.api.common.v1.WorkflowType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(workflowType_);
workflowType_ = 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.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 50: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (workflowExecutionTimeout_ != null) {
subBuilder = workflowExecutionTimeout_.toBuilder();
}
workflowExecutionTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(workflowExecutionTimeout_);
workflowExecutionTimeout_ = subBuilder.buildPartial();
}
break;
}
case 58: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (workflowRunTimeout_ != null) {
subBuilder = workflowRunTimeout_.toBuilder();
}
workflowRunTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(workflowRunTimeout_);
workflowRunTimeout_ = subBuilder.buildPartial();
}
break;
}
case 66: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (workflowTaskTimeout_ != null) {
subBuilder = workflowTaskTimeout_.toBuilder();
}
workflowTaskTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(workflowTaskTimeout_);
workflowTaskTimeout_ = subBuilder.buildPartial();
}
break;
}
case 72: {
int rawValue = input.readEnum();
parentClosePolicy_ = rawValue;
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
control_ = s;
break;
}
case 88: {
int rawValue = input.readEnum();
workflowIdReusePolicy_ = rawValue;
break;
}
case 98: {
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 106: {
java.lang.String s = input.readStringRequireUtf8();
cronSchedule_ = s;
break;
}
case 114: {
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 122: {
io.temporal.api.common.v1.Memo.Builder subBuilder = null;
if (memo_ != null) {
subBuilder = memo_.toBuilder();
}
memo_ = input.readMessage(io.temporal.api.common.v1.Memo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(memo_);
memo_ = subBuilder.buildPartial();
}
break;
}
case 130: {
io.temporal.api.common.v1.SearchAttributes.Builder subBuilder = null;
if (searchAttributes_ != null) {
subBuilder = searchAttributes_.toBuilder();
}
searchAttributes_ = input.readMessage(io.temporal.api.common.v1.SearchAttributes.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(searchAttributes_);
searchAttributes_ = subBuilder.buildPartial();
}
break;
}
case 136: {
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_StartChildWorkflowExecutionCommandAttributes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.command.v1.MessageProto.internal_static_temporal_api_command_v1_StartChildWorkflowExecutionCommandAttributes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.class, io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.Builder.class);
}
public static final int NAMESPACE_FIELD_NUMBER = 1;
private volatile 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) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
namespace_ = s;
return s;
}
}
/**
* string namespace = 1;
* @return The bytes for namespace.
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.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;
}
}
public static final int WORKFLOW_ID_FIELD_NUMBER = 2;
private volatile 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) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
workflowId_ = s;
return s;
}
}
/**
* string workflow_id = 2;
* @return The bytes for workflowId.
*/
public com.google.protobuf.ByteString
getWorkflowIdBytes() {
java.lang.Object ref = workflowId_;
if (ref instanceof java.lang.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;
}
}
public static final int WORKFLOW_TYPE_FIELD_NUMBER = 3;
private io.temporal.api.common.v1.WorkflowType workflowType_;
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 3;
* @return Whether the workflowType field is set.
*/
public boolean hasWorkflowType() {
return workflowType_ != null;
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 3;
* @return The workflowType.
*/
public io.temporal.api.common.v1.WorkflowType getWorkflowType() {
return workflowType_ == null ? io.temporal.api.common.v1.WorkflowType.getDefaultInstance() : workflowType_;
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 3;
*/
public io.temporal.api.common.v1.WorkflowTypeOrBuilder getWorkflowTypeOrBuilder() {
return getWorkflowType();
}
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 INPUT_FIELD_NUMBER = 5;
private io.temporal.api.common.v1.Payloads input_;
/**
* .temporal.api.common.v1.Payloads input = 5;
* @return Whether the input field is set.
*/
public boolean hasInput() {
return input_ != null;
}
/**
* .temporal.api.common.v1.Payloads input = 5;
* @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 = 5;
*/
public io.temporal.api.common.v1.PayloadsOrBuilder getInputOrBuilder() {
return getInput();
}
public static final int WORKFLOW_EXECUTION_TIMEOUT_FIELD_NUMBER = 6;
private com.google.protobuf.Duration workflowExecutionTimeout_;
/**
*
* 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 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() {
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];
*/
public com.google.protobuf.DurationOrBuilder getWorkflowExecutionTimeoutOrBuilder() {
return getWorkflowExecutionTimeout();
}
public static final int WORKFLOW_RUN_TIMEOUT_FIELD_NUMBER = 7;
private com.google.protobuf.Duration workflowRunTimeout_;
/**
*
* 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 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() {
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];
*/
public com.google.protobuf.DurationOrBuilder getWorkflowRunTimeoutOrBuilder() {
return getWorkflowRunTimeout();
}
public static final int WORKFLOW_TASK_TIMEOUT_FIELD_NUMBER = 8;
private com.google.protobuf.Duration workflowTaskTimeout_;
/**
*
* 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 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() {
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];
*/
public com.google.protobuf.DurationOrBuilder getWorkflowTaskTimeoutOrBuilder() {
return getWorkflowTaskTimeout();
}
public static final int PARENT_CLOSE_POLICY_FIELD_NUMBER = 9;
private int parentClosePolicy_;
/**
*
* Default: PARENT_CLOSE_POLICY_TERMINATE.
*
*
* .temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 9;
* @return The enum numeric value on the wire for parentClosePolicy.
*/
public int getParentClosePolicyValue() {
return parentClosePolicy_;
}
/**
*
* Default: PARENT_CLOSE_POLICY_TERMINATE.
*
*
* .temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 9;
* @return The parentClosePolicy.
*/
public io.temporal.api.enums.v1.ParentClosePolicy getParentClosePolicy() {
@SuppressWarnings("deprecation")
io.temporal.api.enums.v1.ParentClosePolicy result = io.temporal.api.enums.v1.ParentClosePolicy.valueOf(parentClosePolicy_);
return result == null ? io.temporal.api.enums.v1.ParentClosePolicy.UNRECOGNIZED : result;
}
public static final int CONTROL_FIELD_NUMBER = 10;
private volatile java.lang.Object control_;
/**
* string control = 10;
* @return The control.
*/
public java.lang.String getControl() {
java.lang.Object ref = control_;
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();
control_ = s;
return s;
}
}
/**
* string control = 10;
* @return The bytes for control.
*/
public com.google.protobuf.ByteString
getControlBytes() {
java.lang.Object ref = control_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
control_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WORKFLOW_ID_REUSE_POLICY_FIELD_NUMBER = 11;
private int workflowIdReusePolicy_;
/**
*
* 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;
* @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;
}
public static final int RETRY_POLICY_FIELD_NUMBER = 12;
private io.temporal.api.common.v1.RetryPolicy retryPolicy_;
/**
* .temporal.api.common.v1.RetryPolicy retry_policy = 12;
* @return Whether the retryPolicy field is set.
*/
public boolean hasRetryPolicy() {
return retryPolicy_ != null;
}
/**
* .temporal.api.common.v1.RetryPolicy retry_policy = 12;
* @return The retryPolicy.
*/
public io.temporal.api.common.v1.RetryPolicy getRetryPolicy() {
return retryPolicy_ == null ? io.temporal.api.common.v1.RetryPolicy.getDefaultInstance() : retryPolicy_;
}
/**
* .temporal.api.common.v1.RetryPolicy retry_policy = 12;
*/
public io.temporal.api.common.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
return getRetryPolicy();
}
public static final int CRON_SCHEDULE_FIELD_NUMBER = 13;
private volatile java.lang.Object cronSchedule_;
/**
*
* Establish a cron schedule for the child workflow.
*
*
* string cron_schedule = 13;
* @return The cronSchedule.
*/
public java.lang.String getCronSchedule() {
java.lang.Object ref = cronSchedule_;
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();
cronSchedule_ = s;
return s;
}
}
/**
*
* Establish a cron schedule for the child workflow.
*
*
* string cron_schedule = 13;
* @return The bytes for cronSchedule.
*/
public com.google.protobuf.ByteString
getCronScheduleBytes() {
java.lang.Object ref = cronSchedule_;
if (ref instanceof java.lang.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;
}
}
public static final int HEADER_FIELD_NUMBER = 14;
private io.temporal.api.common.v1.Header header_;
/**
* .temporal.api.common.v1.Header header = 14;
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return header_ != null;
}
/**
* .temporal.api.common.v1.Header header = 14;
* @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 = 14;
*/
public io.temporal.api.common.v1.HeaderOrBuilder getHeaderOrBuilder() {
return getHeader();
}
public static final int MEMO_FIELD_NUMBER = 15;
private io.temporal.api.common.v1.Memo memo_;
/**
* .temporal.api.common.v1.Memo memo = 15;
* @return Whether the memo field is set.
*/
public boolean hasMemo() {
return memo_ != null;
}
/**
* .temporal.api.common.v1.Memo memo = 15;
* @return The memo.
*/
public io.temporal.api.common.v1.Memo getMemo() {
return memo_ == null ? io.temporal.api.common.v1.Memo.getDefaultInstance() : memo_;
}
/**
* .temporal.api.common.v1.Memo memo = 15;
*/
public io.temporal.api.common.v1.MemoOrBuilder getMemoOrBuilder() {
return getMemo();
}
public static final int SEARCH_ATTRIBUTES_FIELD_NUMBER = 16;
private io.temporal.api.common.v1.SearchAttributes searchAttributes_;
/**
* .temporal.api.common.v1.SearchAttributes search_attributes = 16;
* @return Whether the searchAttributes field is set.
*/
public boolean hasSearchAttributes() {
return searchAttributes_ != null;
}
/**
* .temporal.api.common.v1.SearchAttributes search_attributes = 16;
* @return The searchAttributes.
*/
public io.temporal.api.common.v1.SearchAttributes getSearchAttributes() {
return searchAttributes_ == null ? io.temporal.api.common.v1.SearchAttributes.getDefaultInstance() : searchAttributes_;
}
/**
* .temporal.api.common.v1.SearchAttributes search_attributes = 16;
*/
public io.temporal.api.common.v1.SearchAttributesOrBuilder getSearchAttributesOrBuilder() {
return getSearchAttributes();
}
public static final int USE_COMPATIBLE_VERSION_FIELD_NUMBER = 17;
private boolean useCompatibleVersion_;
/**
*
* If this is set, the workflow executing this command wishes to start the child workflow using
* a version compatible with the version that this workflow most recently ran on, if such
* behavior is possible.
*
*
* bool use_compatible_version = 17;
* @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 (!getNamespaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_);
}
if (!getWorkflowIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workflowId_);
}
if (workflowType_ != null) {
output.writeMessage(3, getWorkflowType());
}
if (taskQueue_ != null) {
output.writeMessage(4, getTaskQueue());
}
if (input_ != null) {
output.writeMessage(5, getInput());
}
if (workflowExecutionTimeout_ != null) {
output.writeMessage(6, getWorkflowExecutionTimeout());
}
if (workflowRunTimeout_ != null) {
output.writeMessage(7, getWorkflowRunTimeout());
}
if (workflowTaskTimeout_ != null) {
output.writeMessage(8, getWorkflowTaskTimeout());
}
if (parentClosePolicy_ != io.temporal.api.enums.v1.ParentClosePolicy.PARENT_CLOSE_POLICY_UNSPECIFIED.getNumber()) {
output.writeEnum(9, parentClosePolicy_);
}
if (!getControlBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, control_);
}
if (workflowIdReusePolicy_ != io.temporal.api.enums.v1.WorkflowIdReusePolicy.WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED.getNumber()) {
output.writeEnum(11, workflowIdReusePolicy_);
}
if (retryPolicy_ != null) {
output.writeMessage(12, getRetryPolicy());
}
if (!getCronScheduleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, cronSchedule_);
}
if (header_ != null) {
output.writeMessage(14, getHeader());
}
if (memo_ != null) {
output.writeMessage(15, getMemo());
}
if (searchAttributes_ != null) {
output.writeMessage(16, getSearchAttributes());
}
if (useCompatibleVersion_ != false) {
output.writeBool(17, useCompatibleVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNamespaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_);
}
if (!getWorkflowIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workflowId_);
}
if (workflowType_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getWorkflowType());
}
if (taskQueue_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getTaskQueue());
}
if (input_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getInput());
}
if (workflowExecutionTimeout_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getWorkflowExecutionTimeout());
}
if (workflowRunTimeout_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getWorkflowRunTimeout());
}
if (workflowTaskTimeout_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getWorkflowTaskTimeout());
}
if (parentClosePolicy_ != io.temporal.api.enums.v1.ParentClosePolicy.PARENT_CLOSE_POLICY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, parentClosePolicy_);
}
if (!getControlBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, control_);
}
if (workflowIdReusePolicy_ != io.temporal.api.enums.v1.WorkflowIdReusePolicy.WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(11, workflowIdReusePolicy_);
}
if (retryPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getRetryPolicy());
}
if (!getCronScheduleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, cronSchedule_);
}
if (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getHeader());
}
if (memo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getMemo());
}
if (searchAttributes_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getSearchAttributes());
}
if (useCompatibleVersion_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(17, 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.StartChildWorkflowExecutionCommandAttributes)) {
return super.equals(obj);
}
io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes other = (io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes) obj;
if (!getNamespace()
.equals(other.getNamespace())) return false;
if (!getWorkflowId()
.equals(other.getWorkflowId())) return false;
if (hasWorkflowType() != other.hasWorkflowType()) return false;
if (hasWorkflowType()) {
if (!getWorkflowType()
.equals(other.getWorkflowType())) return false;
}
if (hasTaskQueue() != other.hasTaskQueue()) return false;
if (hasTaskQueue()) {
if (!getTaskQueue()
.equals(other.getTaskQueue())) return false;
}
if (hasInput() != other.hasInput()) return false;
if (hasInput()) {
if (!getInput()
.equals(other.getInput())) return false;
}
if (hasWorkflowExecutionTimeout() != other.hasWorkflowExecutionTimeout()) return false;
if (hasWorkflowExecutionTimeout()) {
if (!getWorkflowExecutionTimeout()
.equals(other.getWorkflowExecutionTimeout())) return false;
}
if (hasWorkflowRunTimeout() != other.hasWorkflowRunTimeout()) return false;
if (hasWorkflowRunTimeout()) {
if (!getWorkflowRunTimeout()
.equals(other.getWorkflowRunTimeout())) return false;
}
if (hasWorkflowTaskTimeout() != other.hasWorkflowTaskTimeout()) return false;
if (hasWorkflowTaskTimeout()) {
if (!getWorkflowTaskTimeout()
.equals(other.getWorkflowTaskTimeout())) return false;
}
if (parentClosePolicy_ != other.parentClosePolicy_) return false;
if (!getControl()
.equals(other.getControl())) return false;
if (workflowIdReusePolicy_ != other.workflowIdReusePolicy_) return false;
if (hasRetryPolicy() != other.hasRetryPolicy()) return false;
if (hasRetryPolicy()) {
if (!getRetryPolicy()
.equals(other.getRetryPolicy())) return false;
}
if (!getCronSchedule()
.equals(other.getCronSchedule())) return false;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (hasMemo() != other.hasMemo()) return false;
if (hasMemo()) {
if (!getMemo()
.equals(other.getMemo())) return false;
}
if (hasSearchAttributes() != other.hasSearchAttributes()) return false;
if (hasSearchAttributes()) {
if (!getSearchAttributes()
.equals(other.getSearchAttributes())) 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) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowId().hashCode();
if (hasWorkflowType()) {
hash = (37 * hash) + WORKFLOW_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowType().hashCode();
}
if (hasTaskQueue()) {
hash = (37 * hash) + TASK_QUEUE_FIELD_NUMBER;
hash = (53 * hash) + getTaskQueue().hashCode();
}
if (hasInput()) {
hash = (37 * hash) + INPUT_FIELD_NUMBER;
hash = (53 * hash) + getInput().hashCode();
}
if (hasWorkflowExecutionTimeout()) {
hash = (37 * hash) + WORKFLOW_EXECUTION_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowExecutionTimeout().hashCode();
}
if (hasWorkflowRunTimeout()) {
hash = (37 * hash) + WORKFLOW_RUN_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowRunTimeout().hashCode();
}
if (hasWorkflowTaskTimeout()) {
hash = (37 * hash) + WORKFLOW_TASK_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowTaskTimeout().hashCode();
}
hash = (37 * hash) + PARENT_CLOSE_POLICY_FIELD_NUMBER;
hash = (53 * hash) + parentClosePolicy_;
hash = (37 * hash) + CONTROL_FIELD_NUMBER;
hash = (53 * hash) + getControl().hashCode();
hash = (37 * hash) + WORKFLOW_ID_REUSE_POLICY_FIELD_NUMBER;
hash = (53 * hash) + workflowIdReusePolicy_;
if (hasRetryPolicy()) {
hash = (37 * hash) + RETRY_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getRetryPolicy().hashCode();
}
hash = (37 * hash) + CRON_SCHEDULE_FIELD_NUMBER;
hash = (53 * hash) + getCronSchedule().hashCode();
if (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
if (hasMemo()) {
hash = (37 * hash) + MEMO_FIELD_NUMBER;
hash = (53 * hash) + getMemo().hashCode();
}
if (hasSearchAttributes()) {
hash = (37 * hash) + SEARCH_ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + getSearchAttributes().hashCode();
}
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.StartChildWorkflowExecutionCommandAttributes parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes 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.StartChildWorkflowExecutionCommandAttributes parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes 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.StartChildWorkflowExecutionCommandAttributes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes 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.StartChildWorkflowExecutionCommandAttributes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes 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.StartChildWorkflowExecutionCommandAttributes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes 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.StartChildWorkflowExecutionCommandAttributes 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.StartChildWorkflowExecutionCommandAttributes 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.StartChildWorkflowExecutionCommandAttributes 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.StartChildWorkflowExecutionCommandAttributes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes)
io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.command.v1.MessageProto.internal_static_temporal_api_command_v1_StartChildWorkflowExecutionCommandAttributes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.command.v1.MessageProto.internal_static_temporal_api_command_v1_StartChildWorkflowExecutionCommandAttributes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.class, io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.Builder.class);
}
// Construct using io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.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;
}
parentClosePolicy_ = 0;
control_ = "";
workflowIdReusePolicy_ = 0;
if (retryPolicyBuilder_ == null) {
retryPolicy_ = null;
} else {
retryPolicy_ = null;
retryPolicyBuilder_ = null;
}
cronSchedule_ = "";
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
if (memoBuilder_ == null) {
memo_ = null;
} else {
memo_ = null;
memoBuilder_ = null;
}
if (searchAttributesBuilder_ == null) {
searchAttributes_ = null;
} else {
searchAttributes_ = null;
searchAttributesBuilder_ = null;
}
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_StartChildWorkflowExecutionCommandAttributes_descriptor;
}
@java.lang.Override
public io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes getDefaultInstanceForType() {
return io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes build() {
io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes buildPartial() {
io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes result = new io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes(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.parentClosePolicy_ = parentClosePolicy_;
result.control_ = control_;
result.workflowIdReusePolicy_ = workflowIdReusePolicy_;
if (retryPolicyBuilder_ == null) {
result.retryPolicy_ = retryPolicy_;
} else {
result.retryPolicy_ = retryPolicyBuilder_.build();
}
result.cronSchedule_ = cronSchedule_;
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
if (memoBuilder_ == null) {
result.memo_ = memo_;
} else {
result.memo_ = memoBuilder_.build();
}
if (searchAttributesBuilder_ == null) {
result.searchAttributes_ = searchAttributes_;
} else {
result.searchAttributes_ = searchAttributesBuilder_.build();
}
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.StartChildWorkflowExecutionCommandAttributes) {
return mergeFrom((io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes other) {
if (other == io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.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.parentClosePolicy_ != 0) {
setParentClosePolicyValue(other.getParentClosePolicyValue());
}
if (!other.getControl().isEmpty()) {
control_ = other.control_;
onChanged();
}
if (other.workflowIdReusePolicy_ != 0) {
setWorkflowIdReusePolicyValue(other.getWorkflowIdReusePolicyValue());
}
if (other.hasRetryPolicy()) {
mergeRetryPolicy(other.getRetryPolicy());
}
if (!other.getCronSchedule().isEmpty()) {
cronSchedule_ = other.cronSchedule_;
onChanged();
}
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.hasMemo()) {
mergeMemo(other.getMemo());
}
if (other.hasSearchAttributes()) {
mergeSearchAttributes(other.getSearchAttributes());
}
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.StartChildWorkflowExecutionCommandAttributes parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes) 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_;
/**
* .temporal.api.common.v1.Payloads input = 5;
* @return Whether the input field is set.
*/
public boolean hasInput() {
return inputBuilder_ != null || input_ != null;
}
/**
* .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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .temporal.api.common.v1.Payloads input = 5;
*/
public Builder clearInput() {
if (inputBuilder_ == null) {
input_ = null;
onChanged();
} else {
input_ = null;
inputBuilder_ = null;
}
return this;
}
/**
* .temporal.api.common.v1.Payloads input = 5;
*/
public io.temporal.api.common.v1.Payloads.Builder getInputBuilder() {
onChanged();
return getInputFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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 int parentClosePolicy_ = 0;
/**
*
* Default: PARENT_CLOSE_POLICY_TERMINATE.
*
*
* .temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 9;
* @return The enum numeric value on the wire for parentClosePolicy.
*/
public int getParentClosePolicyValue() {
return parentClosePolicy_;
}
/**
*
* Default: PARENT_CLOSE_POLICY_TERMINATE.
*
*
* .temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 9;
* @param value The enum numeric value on the wire for parentClosePolicy to set.
* @return This builder for chaining.
*/
public Builder setParentClosePolicyValue(int value) {
parentClosePolicy_ = value;
onChanged();
return this;
}
/**
*
* Default: PARENT_CLOSE_POLICY_TERMINATE.
*
*
* .temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 9;
* @return The parentClosePolicy.
*/
public io.temporal.api.enums.v1.ParentClosePolicy getParentClosePolicy() {
@SuppressWarnings("deprecation")
io.temporal.api.enums.v1.ParentClosePolicy result = io.temporal.api.enums.v1.ParentClosePolicy.valueOf(parentClosePolicy_);
return result == null ? io.temporal.api.enums.v1.ParentClosePolicy.UNRECOGNIZED : result;
}
/**
*
* Default: PARENT_CLOSE_POLICY_TERMINATE.
*
*
* .temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 9;
* @param value The parentClosePolicy to set.
* @return This builder for chaining.
*/
public Builder setParentClosePolicy(io.temporal.api.enums.v1.ParentClosePolicy value) {
if (value == null) {
throw new NullPointerException();
}
parentClosePolicy_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Default: PARENT_CLOSE_POLICY_TERMINATE.
*
*
* .temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 9;
* @return This builder for chaining.
*/
public Builder clearParentClosePolicy() {
parentClosePolicy_ = 0;
onChanged();
return this;
}
private java.lang.Object control_ = "";
/**
* string control = 10;
* @return The control.
*/
public java.lang.String getControl() {
java.lang.Object ref = control_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
control_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string control = 10;
* @return The bytes for control.
*/
public com.google.protobuf.ByteString
getControlBytes() {
java.lang.Object ref = control_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
control_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string control = 10;
* @param value The control to set.
* @return This builder for chaining.
*/
public Builder setControl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
control_ = value;
onChanged();
return this;
}
/**
* string control = 10;
* @return This builder for chaining.
*/
public Builder clearControl() {
control_ = getDefaultInstance().getControl();
onChanged();
return this;
}
/**
* string control = 10;
* @param value The bytes for control to set.
* @return This builder for chaining.
*/
public Builder setControlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
control_ = 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_;
/**
* .temporal.api.common.v1.RetryPolicy retry_policy = 12;
* @return Whether the retryPolicy field is set.
*/
public boolean hasRetryPolicy() {
return retryPolicyBuilder_ != null || retryPolicy_ != null;
}
/**
* .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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .temporal.api.common.v1.RetryPolicy retry_policy = 12;
*/
public Builder clearRetryPolicy() {
if (retryPolicyBuilder_ == null) {
retryPolicy_ = null;
onChanged();
} else {
retryPolicy_ = null;
retryPolicyBuilder_ = null;
}
return this;
}
/**
* .temporal.api.common.v1.RetryPolicy retry_policy = 12;
*/
public io.temporal.api.common.v1.RetryPolicy.Builder getRetryPolicyBuilder() {
onChanged();
return getRetryPolicyFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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_ = "";
/**
*
* Establish a cron schedule for the child workflow.
*
*
* 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;
}
}
/**
*
* Establish a cron schedule for the child workflow.
*
*
* 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;
}
}
/**
*
* Establish a cron schedule for the child workflow.
*
*
* 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;
}
/**
*
* Establish a cron schedule for the child workflow.
*
*
* string cron_schedule = 13;
* @return This builder for chaining.
*/
public Builder clearCronSchedule() {
cronSchedule_ = getDefaultInstance().getCronSchedule();
onChanged();
return this;
}
/**
*
* Establish a cron schedule for the child workflow.
*
*
* 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.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 = 14;
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return headerBuilder_ != null || header_ != null;
}
/**
* .temporal.api.common.v1.Header header = 14;
* @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 = 14;
*/
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 = 14;
*/
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 = 14;
*/
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 = 14;
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
/**
* .temporal.api.common.v1.Header header = 14;
*/
public io.temporal.api.common.v1.Header.Builder getHeaderBuilder() {
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.Header header = 14;
*/
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 = 14;
*/
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.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 = 15;
* @return Whether the memo field is set.
*/
public boolean hasMemo() {
return memoBuilder_ != null || memo_ != null;
}
/**
* .temporal.api.common.v1.Memo memo = 15;
* @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 = 15;
*/
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 = 15;
*/
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 = 15;
*/
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 = 15;
*/
public Builder clearMemo() {
if (memoBuilder_ == null) {
memo_ = null;
onChanged();
} else {
memo_ = null;
memoBuilder_ = null;
}
return this;
}
/**
* .temporal.api.common.v1.Memo memo = 15;
*/
public io.temporal.api.common.v1.Memo.Builder getMemoBuilder() {
onChanged();
return getMemoFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.Memo memo = 15;
*/
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 = 15;
*/
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 = 16;
* @return Whether the searchAttributes field is set.
*/
public boolean hasSearchAttributes() {
return searchAttributesBuilder_ != null || searchAttributes_ != null;
}
/**
* .temporal.api.common.v1.SearchAttributes search_attributes = 16;
* @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 = 16;
*/
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 = 16;
*/
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 = 16;
*/
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 = 16;
*/
public Builder clearSearchAttributes() {
if (searchAttributesBuilder_ == null) {
searchAttributes_ = null;
onChanged();
} else {
searchAttributes_ = null;
searchAttributesBuilder_ = null;
}
return this;
}
/**
* .temporal.api.common.v1.SearchAttributes search_attributes = 16;
*/
public io.temporal.api.common.v1.SearchAttributes.Builder getSearchAttributesBuilder() {
onChanged();
return getSearchAttributesFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.SearchAttributes search_attributes = 16;
*/
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 = 16;
*/
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 boolean useCompatibleVersion_ ;
/**
*
* If this is set, the workflow executing this command wishes to start the child workflow using
* a version compatible with the version that this workflow most recently ran on, if such
* behavior is possible.
*
*
* bool use_compatible_version = 17;
* @return The useCompatibleVersion.
*/
public boolean getUseCompatibleVersion() {
return useCompatibleVersion_;
}
/**
*
* If this is set, the workflow executing this command wishes to start the child workflow using
* a version compatible with the version that this workflow most recently ran on, if such
* behavior is possible.
*
*
* bool use_compatible_version = 17;
* @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 child workflow using
* a version compatible with the version that this workflow most recently ran on, if such
* behavior is possible.
*
*
* bool use_compatible_version = 17;
* @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.StartChildWorkflowExecutionCommandAttributes)
}
// @@protoc_insertion_point(class_scope:temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes)
private static final io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes();
}
public static io.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StartChildWorkflowExecutionCommandAttributes parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StartChildWorkflowExecutionCommandAttributes(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.StartChildWorkflowExecutionCommandAttributes getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}