com.uber.cadence.WorkflowExecutionStartedEventAttributes Maven / Gradle / Ivy
/**
* Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.uber.cadence;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
import org.apache.thrift.async.AsyncMethodCallback;
import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2019-06-18")
public class WorkflowExecutionStartedEventAttributes implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WorkflowExecutionStartedEventAttributes");
private static final org.apache.thrift.protocol.TField WORKFLOW_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("workflowType", org.apache.thrift.protocol.TType.STRUCT, (short)10);
private static final org.apache.thrift.protocol.TField PARENT_WORKFLOW_DOMAIN_FIELD_DESC = new org.apache.thrift.protocol.TField("parentWorkflowDomain", org.apache.thrift.protocol.TType.STRING, (short)12);
private static final org.apache.thrift.protocol.TField PARENT_WORKFLOW_EXECUTION_FIELD_DESC = new org.apache.thrift.protocol.TField("parentWorkflowExecution", org.apache.thrift.protocol.TType.STRUCT, (short)14);
private static final org.apache.thrift.protocol.TField PARENT_INITIATED_EVENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("parentInitiatedEventId", org.apache.thrift.protocol.TType.I64, (short)16);
private static final org.apache.thrift.protocol.TField TASK_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("taskList", org.apache.thrift.protocol.TType.STRUCT, (short)20);
private static final org.apache.thrift.protocol.TField INPUT_FIELD_DESC = new org.apache.thrift.protocol.TField("input", org.apache.thrift.protocol.TType.STRING, (short)30);
private static final org.apache.thrift.protocol.TField EXECUTION_START_TO_CLOSE_TIMEOUT_SECONDS_FIELD_DESC = new org.apache.thrift.protocol.TField("executionStartToCloseTimeoutSeconds", org.apache.thrift.protocol.TType.I32, (short)40);
private static final org.apache.thrift.protocol.TField TASK_START_TO_CLOSE_TIMEOUT_SECONDS_FIELD_DESC = new org.apache.thrift.protocol.TField("taskStartToCloseTimeoutSeconds", org.apache.thrift.protocol.TType.I32, (short)50);
private static final org.apache.thrift.protocol.TField CHILD_POLICY_FIELD_DESC = new org.apache.thrift.protocol.TField("childPolicy", org.apache.thrift.protocol.TType.I32, (short)52);
private static final org.apache.thrift.protocol.TField CONTINUED_EXECUTION_RUN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("continuedExecutionRunId", org.apache.thrift.protocol.TType.STRING, (short)54);
private static final org.apache.thrift.protocol.TField INITIATOR_FIELD_DESC = new org.apache.thrift.protocol.TField("initiator", org.apache.thrift.protocol.TType.I32, (short)55);
private static final org.apache.thrift.protocol.TField CONTINUED_FAILURE_REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("continuedFailureReason", org.apache.thrift.protocol.TType.STRING, (short)56);
private static final org.apache.thrift.protocol.TField CONTINUED_FAILURE_DETAILS_FIELD_DESC = new org.apache.thrift.protocol.TField("continuedFailureDetails", org.apache.thrift.protocol.TType.STRING, (short)57);
private static final org.apache.thrift.protocol.TField LAST_COMPLETION_RESULT_FIELD_DESC = new org.apache.thrift.protocol.TField("lastCompletionResult", org.apache.thrift.protocol.TType.STRING, (short)58);
private static final org.apache.thrift.protocol.TField ORIGINAL_EXECUTION_RUN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("originalExecutionRunId", org.apache.thrift.protocol.TType.STRING, (short)59);
private static final org.apache.thrift.protocol.TField IDENTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("identity", org.apache.thrift.protocol.TType.STRING, (short)60);
private static final org.apache.thrift.protocol.TField FIRST_EXECUTION_RUN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("firstExecutionRunId", org.apache.thrift.protocol.TType.STRING, (short)61);
private static final org.apache.thrift.protocol.TField RETRY_POLICY_FIELD_DESC = new org.apache.thrift.protocol.TField("retryPolicy", org.apache.thrift.protocol.TType.STRUCT, (short)70);
private static final org.apache.thrift.protocol.TField ATTEMPT_FIELD_DESC = new org.apache.thrift.protocol.TField("attempt", org.apache.thrift.protocol.TType.I32, (short)80);
private static final org.apache.thrift.protocol.TField EXPIRATION_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("expirationTimestamp", org.apache.thrift.protocol.TType.I64, (short)90);
private static final org.apache.thrift.protocol.TField CRON_SCHEDULE_FIELD_DESC = new org.apache.thrift.protocol.TField("cronSchedule", org.apache.thrift.protocol.TType.STRING, (short)100);
private static final org.apache.thrift.protocol.TField FIRST_DECISION_TASK_BACKOFF_SECONDS_FIELD_DESC = new org.apache.thrift.protocol.TField("firstDecisionTaskBackoffSeconds", org.apache.thrift.protocol.TType.I32, (short)110);
private static final org.apache.thrift.protocol.TField MEMO_FIELD_DESC = new org.apache.thrift.protocol.TField("memo", org.apache.thrift.protocol.TType.STRUCT, (short)120);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new WorkflowExecutionStartedEventAttributesStandardSchemeFactory());
schemes.put(TupleScheme.class, new WorkflowExecutionStartedEventAttributesTupleSchemeFactory());
}
public WorkflowType workflowType; // optional
public String parentWorkflowDomain; // optional
public WorkflowExecution parentWorkflowExecution; // optional
public long parentInitiatedEventId; // optional
public TaskList taskList; // optional
public ByteBuffer input; // optional
public int executionStartToCloseTimeoutSeconds; // optional
public int taskStartToCloseTimeoutSeconds; // optional
/**
*
* @see ChildPolicy
*/
public ChildPolicy childPolicy; // optional
public String continuedExecutionRunId; // optional
public ContinueAsNewInitiator initiator; // optional
public String continuedFailureReason; // optional
public ByteBuffer continuedFailureDetails; // optional
public ByteBuffer lastCompletionResult; // optional
public String originalExecutionRunId; // optional
public String identity; // optional
public String firstExecutionRunId; // optional
public RetryPolicy retryPolicy; // optional
public int attempt; // optional
public long expirationTimestamp; // optional
public String cronSchedule; // optional
public int firstDecisionTaskBackoffSeconds; // optional
public Memo memo; // optional
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
WORKFLOW_TYPE((short)10, "workflowType"),
PARENT_WORKFLOW_DOMAIN((short)12, "parentWorkflowDomain"),
PARENT_WORKFLOW_EXECUTION((short)14, "parentWorkflowExecution"),
PARENT_INITIATED_EVENT_ID((short)16, "parentInitiatedEventId"),
TASK_LIST((short)20, "taskList"),
INPUT((short)30, "input"),
EXECUTION_START_TO_CLOSE_TIMEOUT_SECONDS((short)40, "executionStartToCloseTimeoutSeconds"),
TASK_START_TO_CLOSE_TIMEOUT_SECONDS((short)50, "taskStartToCloseTimeoutSeconds"),
/**
*
* @see ChildPolicy
*/
CHILD_POLICY((short)52, "childPolicy"),
CONTINUED_EXECUTION_RUN_ID((short)54, "continuedExecutionRunId"),
INITIATOR((short)55, "initiator"),
CONTINUED_FAILURE_REASON((short)56, "continuedFailureReason"),
CONTINUED_FAILURE_DETAILS((short)57, "continuedFailureDetails"),
LAST_COMPLETION_RESULT((short)58, "lastCompletionResult"),
ORIGINAL_EXECUTION_RUN_ID((short)59, "originalExecutionRunId"),
IDENTITY((short)60, "identity"),
FIRST_EXECUTION_RUN_ID((short)61, "firstExecutionRunId"),
RETRY_POLICY((short)70, "retryPolicy"),
ATTEMPT((short)80, "attempt"),
EXPIRATION_TIMESTAMP((short)90, "expirationTimestamp"),
CRON_SCHEDULE((short)100, "cronSchedule"),
FIRST_DECISION_TASK_BACKOFF_SECONDS((short)110, "firstDecisionTaskBackoffSeconds"),
MEMO((short)120, "memo");
private static final Map byName = new HashMap();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 10: // WORKFLOW_TYPE
return WORKFLOW_TYPE;
case 12: // PARENT_WORKFLOW_DOMAIN
return PARENT_WORKFLOW_DOMAIN;
case 14: // PARENT_WORKFLOW_EXECUTION
return PARENT_WORKFLOW_EXECUTION;
case 16: // PARENT_INITIATED_EVENT_ID
return PARENT_INITIATED_EVENT_ID;
case 20: // TASK_LIST
return TASK_LIST;
case 30: // INPUT
return INPUT;
case 40: // EXECUTION_START_TO_CLOSE_TIMEOUT_SECONDS
return EXECUTION_START_TO_CLOSE_TIMEOUT_SECONDS;
case 50: // TASK_START_TO_CLOSE_TIMEOUT_SECONDS
return TASK_START_TO_CLOSE_TIMEOUT_SECONDS;
case 52: // CHILD_POLICY
return CHILD_POLICY;
case 54: // CONTINUED_EXECUTION_RUN_ID
return CONTINUED_EXECUTION_RUN_ID;
case 55: // INITIATOR
return INITIATOR;
case 56: // CONTINUED_FAILURE_REASON
return CONTINUED_FAILURE_REASON;
case 57: // CONTINUED_FAILURE_DETAILS
return CONTINUED_FAILURE_DETAILS;
case 58: // LAST_COMPLETION_RESULT
return LAST_COMPLETION_RESULT;
case 59: // ORIGINAL_EXECUTION_RUN_ID
return ORIGINAL_EXECUTION_RUN_ID;
case 60: // IDENTITY
return IDENTITY;
case 61: // FIRST_EXECUTION_RUN_ID
return FIRST_EXECUTION_RUN_ID;
case 70: // RETRY_POLICY
return RETRY_POLICY;
case 80: // ATTEMPT
return ATTEMPT;
case 90: // EXPIRATION_TIMESTAMP
return EXPIRATION_TIMESTAMP;
case 100: // CRON_SCHEDULE
return CRON_SCHEDULE;
case 110: // FIRST_DECISION_TASK_BACKOFF_SECONDS
return FIRST_DECISION_TASK_BACKOFF_SECONDS;
case 120: // MEMO
return MEMO;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __PARENTINITIATEDEVENTID_ISSET_ID = 0;
private static final int __EXECUTIONSTARTTOCLOSETIMEOUTSECONDS_ISSET_ID = 1;
private static final int __TASKSTARTTOCLOSETIMEOUTSECONDS_ISSET_ID = 2;
private static final int __ATTEMPT_ISSET_ID = 3;
private static final int __EXPIRATIONTIMESTAMP_ISSET_ID = 4;
private static final int __FIRSTDECISIONTASKBACKOFFSECONDS_ISSET_ID = 5;
private byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.WORKFLOW_TYPE,_Fields.PARENT_WORKFLOW_DOMAIN,_Fields.PARENT_WORKFLOW_EXECUTION,_Fields.PARENT_INITIATED_EVENT_ID,_Fields.TASK_LIST,_Fields.INPUT,_Fields.EXECUTION_START_TO_CLOSE_TIMEOUT_SECONDS,_Fields.TASK_START_TO_CLOSE_TIMEOUT_SECONDS,_Fields.CHILD_POLICY,_Fields.CONTINUED_EXECUTION_RUN_ID,_Fields.INITIATOR,_Fields.CONTINUED_FAILURE_REASON,_Fields.CONTINUED_FAILURE_DETAILS,_Fields.LAST_COMPLETION_RESULT,_Fields.ORIGINAL_EXECUTION_RUN_ID,_Fields.IDENTITY,_Fields.FIRST_EXECUTION_RUN_ID,_Fields.RETRY_POLICY,_Fields.ATTEMPT,_Fields.EXPIRATION_TIMESTAMP,_Fields.CRON_SCHEDULE,_Fields.FIRST_DECISION_TASK_BACKOFF_SECONDS,_Fields.MEMO};
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.WORKFLOW_TYPE, new org.apache.thrift.meta_data.FieldMetaData("workflowType", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WorkflowType.class)));
tmpMap.put(_Fields.PARENT_WORKFLOW_DOMAIN, new org.apache.thrift.meta_data.FieldMetaData("parentWorkflowDomain", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.PARENT_WORKFLOW_EXECUTION, new org.apache.thrift.meta_data.FieldMetaData("parentWorkflowExecution", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WorkflowExecution.class)));
tmpMap.put(_Fields.PARENT_INITIATED_EVENT_ID, new org.apache.thrift.meta_data.FieldMetaData("parentInitiatedEventId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.TASK_LIST, new org.apache.thrift.meta_data.FieldMetaData("taskList", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TaskList.class)));
tmpMap.put(_Fields.INPUT, new org.apache.thrift.meta_data.FieldMetaData("input", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
tmpMap.put(_Fields.EXECUTION_START_TO_CLOSE_TIMEOUT_SECONDS, new org.apache.thrift.meta_data.FieldMetaData("executionStartToCloseTimeoutSeconds", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.TASK_START_TO_CLOSE_TIMEOUT_SECONDS, new org.apache.thrift.meta_data.FieldMetaData("taskStartToCloseTimeoutSeconds", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.CHILD_POLICY, new org.apache.thrift.meta_data.FieldMetaData("childPolicy", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ChildPolicy.class)));
tmpMap.put(_Fields.CONTINUED_EXECUTION_RUN_ID, new org.apache.thrift.meta_data.FieldMetaData("continuedExecutionRunId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.INITIATOR, new org.apache.thrift.meta_data.FieldMetaData("initiator", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.ENUM , "ContinueAsNewInitiator")));
tmpMap.put(_Fields.CONTINUED_FAILURE_REASON, new org.apache.thrift.meta_data.FieldMetaData("continuedFailureReason", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.CONTINUED_FAILURE_DETAILS, new org.apache.thrift.meta_data.FieldMetaData("continuedFailureDetails", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
tmpMap.put(_Fields.LAST_COMPLETION_RESULT, new org.apache.thrift.meta_data.FieldMetaData("lastCompletionResult", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
tmpMap.put(_Fields.ORIGINAL_EXECUTION_RUN_ID, new org.apache.thrift.meta_data.FieldMetaData("originalExecutionRunId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.IDENTITY, new org.apache.thrift.meta_data.FieldMetaData("identity", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.FIRST_EXECUTION_RUN_ID, new org.apache.thrift.meta_data.FieldMetaData("firstExecutionRunId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.RETRY_POLICY, new org.apache.thrift.meta_data.FieldMetaData("retryPolicy", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT , "RetryPolicy")));
tmpMap.put(_Fields.ATTEMPT, new org.apache.thrift.meta_data.FieldMetaData("attempt", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.EXPIRATION_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("expirationTimestamp", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.CRON_SCHEDULE, new org.apache.thrift.meta_data.FieldMetaData("cronSchedule", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.FIRST_DECISION_TASK_BACKOFF_SECONDS, new org.apache.thrift.meta_data.FieldMetaData("firstDecisionTaskBackoffSeconds", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.MEMO, new org.apache.thrift.meta_data.FieldMetaData("memo", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Memo.class)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(WorkflowExecutionStartedEventAttributes.class, metaDataMap);
}
public WorkflowExecutionStartedEventAttributes() {
}
/**
* Performs a deep copy on other.
*/
public WorkflowExecutionStartedEventAttributes(WorkflowExecutionStartedEventAttributes other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetWorkflowType()) {
this.workflowType = new WorkflowType(other.workflowType);
}
if (other.isSetParentWorkflowDomain()) {
this.parentWorkflowDomain = other.parentWorkflowDomain;
}
if (other.isSetParentWorkflowExecution()) {
this.parentWorkflowExecution = new WorkflowExecution(other.parentWorkflowExecution);
}
this.parentInitiatedEventId = other.parentInitiatedEventId;
if (other.isSetTaskList()) {
this.taskList = new TaskList(other.taskList);
}
if (other.isSetInput()) {
this.input = org.apache.thrift.TBaseHelper.copyBinary(other.input);
}
this.executionStartToCloseTimeoutSeconds = other.executionStartToCloseTimeoutSeconds;
this.taskStartToCloseTimeoutSeconds = other.taskStartToCloseTimeoutSeconds;
if (other.isSetChildPolicy()) {
this.childPolicy = other.childPolicy;
}
if (other.isSetContinuedExecutionRunId()) {
this.continuedExecutionRunId = other.continuedExecutionRunId;
}
if (other.isSetInitiator()) {
this.initiator = other.initiator;
}
if (other.isSetContinuedFailureReason()) {
this.continuedFailureReason = other.continuedFailureReason;
}
if (other.isSetContinuedFailureDetails()) {
this.continuedFailureDetails = org.apache.thrift.TBaseHelper.copyBinary(other.continuedFailureDetails);
}
if (other.isSetLastCompletionResult()) {
this.lastCompletionResult = org.apache.thrift.TBaseHelper.copyBinary(other.lastCompletionResult);
}
if (other.isSetOriginalExecutionRunId()) {
this.originalExecutionRunId = other.originalExecutionRunId;
}
if (other.isSetIdentity()) {
this.identity = other.identity;
}
if (other.isSetFirstExecutionRunId()) {
this.firstExecutionRunId = other.firstExecutionRunId;
}
if (other.isSetRetryPolicy()) {
this.retryPolicy = other.retryPolicy;
}
this.attempt = other.attempt;
this.expirationTimestamp = other.expirationTimestamp;
if (other.isSetCronSchedule()) {
this.cronSchedule = other.cronSchedule;
}
this.firstDecisionTaskBackoffSeconds = other.firstDecisionTaskBackoffSeconds;
if (other.isSetMemo()) {
this.memo = new Memo(other.memo);
}
}
public WorkflowExecutionStartedEventAttributes deepCopy() {
return new WorkflowExecutionStartedEventAttributes(this);
}
@Override
public void clear() {
this.workflowType = null;
this.parentWorkflowDomain = null;
this.parentWorkflowExecution = null;
setParentInitiatedEventIdIsSet(false);
this.parentInitiatedEventId = 0;
this.taskList = null;
this.input = null;
setExecutionStartToCloseTimeoutSecondsIsSet(false);
this.executionStartToCloseTimeoutSeconds = 0;
setTaskStartToCloseTimeoutSecondsIsSet(false);
this.taskStartToCloseTimeoutSeconds = 0;
this.childPolicy = null;
this.continuedExecutionRunId = null;
this.initiator = null;
this.continuedFailureReason = null;
this.continuedFailureDetails = null;
this.lastCompletionResult = null;
this.originalExecutionRunId = null;
this.identity = null;
this.firstExecutionRunId = null;
this.retryPolicy = null;
setAttemptIsSet(false);
this.attempt = 0;
setExpirationTimestampIsSet(false);
this.expirationTimestamp = 0;
this.cronSchedule = null;
setFirstDecisionTaskBackoffSecondsIsSet(false);
this.firstDecisionTaskBackoffSeconds = 0;
this.memo = null;
}
public WorkflowType getWorkflowType() {
return this.workflowType;
}
public WorkflowExecutionStartedEventAttributes setWorkflowType(WorkflowType workflowType) {
this.workflowType = workflowType;
return this;
}
public void unsetWorkflowType() {
this.workflowType = null;
}
/** Returns true if field workflowType is set (has been assigned a value) and false otherwise */
public boolean isSetWorkflowType() {
return this.workflowType != null;
}
public void setWorkflowTypeIsSet(boolean value) {
if (!value) {
this.workflowType = null;
}
}
public String getParentWorkflowDomain() {
return this.parentWorkflowDomain;
}
public WorkflowExecutionStartedEventAttributes setParentWorkflowDomain(String parentWorkflowDomain) {
this.parentWorkflowDomain = parentWorkflowDomain;
return this;
}
public void unsetParentWorkflowDomain() {
this.parentWorkflowDomain = null;
}
/** Returns true if field parentWorkflowDomain is set (has been assigned a value) and false otherwise */
public boolean isSetParentWorkflowDomain() {
return this.parentWorkflowDomain != null;
}
public void setParentWorkflowDomainIsSet(boolean value) {
if (!value) {
this.parentWorkflowDomain = null;
}
}
public WorkflowExecution getParentWorkflowExecution() {
return this.parentWorkflowExecution;
}
public WorkflowExecutionStartedEventAttributes setParentWorkflowExecution(WorkflowExecution parentWorkflowExecution) {
this.parentWorkflowExecution = parentWorkflowExecution;
return this;
}
public void unsetParentWorkflowExecution() {
this.parentWorkflowExecution = null;
}
/** Returns true if field parentWorkflowExecution is set (has been assigned a value) and false otherwise */
public boolean isSetParentWorkflowExecution() {
return this.parentWorkflowExecution != null;
}
public void setParentWorkflowExecutionIsSet(boolean value) {
if (!value) {
this.parentWorkflowExecution = null;
}
}
public long getParentInitiatedEventId() {
return this.parentInitiatedEventId;
}
public WorkflowExecutionStartedEventAttributes setParentInitiatedEventId(long parentInitiatedEventId) {
this.parentInitiatedEventId = parentInitiatedEventId;
setParentInitiatedEventIdIsSet(true);
return this;
}
public void unsetParentInitiatedEventId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PARENTINITIATEDEVENTID_ISSET_ID);
}
/** Returns true if field parentInitiatedEventId is set (has been assigned a value) and false otherwise */
public boolean isSetParentInitiatedEventId() {
return EncodingUtils.testBit(__isset_bitfield, __PARENTINITIATEDEVENTID_ISSET_ID);
}
public void setParentInitiatedEventIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PARENTINITIATEDEVENTID_ISSET_ID, value);
}
public TaskList getTaskList() {
return this.taskList;
}
public WorkflowExecutionStartedEventAttributes setTaskList(TaskList taskList) {
this.taskList = taskList;
return this;
}
public void unsetTaskList() {
this.taskList = null;
}
/** Returns true if field taskList is set (has been assigned a value) and false otherwise */
public boolean isSetTaskList() {
return this.taskList != null;
}
public void setTaskListIsSet(boolean value) {
if (!value) {
this.taskList = null;
}
}
public byte[] getInput() {
setInput(org.apache.thrift.TBaseHelper.rightSize(input));
return input == null ? null : input.array();
}
public ByteBuffer bufferForInput() {
return org.apache.thrift.TBaseHelper.copyBinary(input);
}
public WorkflowExecutionStartedEventAttributes setInput(byte[] input) {
this.input = input == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(input, input.length));
return this;
}
public WorkflowExecutionStartedEventAttributes setInput(ByteBuffer input) {
this.input = org.apache.thrift.TBaseHelper.copyBinary(input);
return this;
}
public void unsetInput() {
this.input = null;
}
/** Returns true if field input is set (has been assigned a value) and false otherwise */
public boolean isSetInput() {
return this.input != null;
}
public void setInputIsSet(boolean value) {
if (!value) {
this.input = null;
}
}
public int getExecutionStartToCloseTimeoutSeconds() {
return this.executionStartToCloseTimeoutSeconds;
}
public WorkflowExecutionStartedEventAttributes setExecutionStartToCloseTimeoutSeconds(int executionStartToCloseTimeoutSeconds) {
this.executionStartToCloseTimeoutSeconds = executionStartToCloseTimeoutSeconds;
setExecutionStartToCloseTimeoutSecondsIsSet(true);
return this;
}
public void unsetExecutionStartToCloseTimeoutSeconds() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __EXECUTIONSTARTTOCLOSETIMEOUTSECONDS_ISSET_ID);
}
/** Returns true if field executionStartToCloseTimeoutSeconds is set (has been assigned a value) and false otherwise */
public boolean isSetExecutionStartToCloseTimeoutSeconds() {
return EncodingUtils.testBit(__isset_bitfield, __EXECUTIONSTARTTOCLOSETIMEOUTSECONDS_ISSET_ID);
}
public void setExecutionStartToCloseTimeoutSecondsIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __EXECUTIONSTARTTOCLOSETIMEOUTSECONDS_ISSET_ID, value);
}
public int getTaskStartToCloseTimeoutSeconds() {
return this.taskStartToCloseTimeoutSeconds;
}
public WorkflowExecutionStartedEventAttributes setTaskStartToCloseTimeoutSeconds(int taskStartToCloseTimeoutSeconds) {
this.taskStartToCloseTimeoutSeconds = taskStartToCloseTimeoutSeconds;
setTaskStartToCloseTimeoutSecondsIsSet(true);
return this;
}
public void unsetTaskStartToCloseTimeoutSeconds() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TASKSTARTTOCLOSETIMEOUTSECONDS_ISSET_ID);
}
/** Returns true if field taskStartToCloseTimeoutSeconds is set (has been assigned a value) and false otherwise */
public boolean isSetTaskStartToCloseTimeoutSeconds() {
return EncodingUtils.testBit(__isset_bitfield, __TASKSTARTTOCLOSETIMEOUTSECONDS_ISSET_ID);
}
public void setTaskStartToCloseTimeoutSecondsIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TASKSTARTTOCLOSETIMEOUTSECONDS_ISSET_ID, value);
}
/**
*
* @see ChildPolicy
*/
public ChildPolicy getChildPolicy() {
return this.childPolicy;
}
/**
*
* @see ChildPolicy
*/
public WorkflowExecutionStartedEventAttributes setChildPolicy(ChildPolicy childPolicy) {
this.childPolicy = childPolicy;
return this;
}
public void unsetChildPolicy() {
this.childPolicy = null;
}
/** Returns true if field childPolicy is set (has been assigned a value) and false otherwise */
public boolean isSetChildPolicy() {
return this.childPolicy != null;
}
public void setChildPolicyIsSet(boolean value) {
if (!value) {
this.childPolicy = null;
}
}
public String getContinuedExecutionRunId() {
return this.continuedExecutionRunId;
}
public WorkflowExecutionStartedEventAttributes setContinuedExecutionRunId(String continuedExecutionRunId) {
this.continuedExecutionRunId = continuedExecutionRunId;
return this;
}
public void unsetContinuedExecutionRunId() {
this.continuedExecutionRunId = null;
}
/** Returns true if field continuedExecutionRunId is set (has been assigned a value) and false otherwise */
public boolean isSetContinuedExecutionRunId() {
return this.continuedExecutionRunId != null;
}
public void setContinuedExecutionRunIdIsSet(boolean value) {
if (!value) {
this.continuedExecutionRunId = null;
}
}
public ContinueAsNewInitiator getInitiator() {
return this.initiator;
}
public WorkflowExecutionStartedEventAttributes setInitiator(ContinueAsNewInitiator initiator) {
this.initiator = initiator;
return this;
}
public void unsetInitiator() {
this.initiator = null;
}
/** Returns true if field initiator is set (has been assigned a value) and false otherwise */
public boolean isSetInitiator() {
return this.initiator != null;
}
public void setInitiatorIsSet(boolean value) {
if (!value) {
this.initiator = null;
}
}
public String getContinuedFailureReason() {
return this.continuedFailureReason;
}
public WorkflowExecutionStartedEventAttributes setContinuedFailureReason(String continuedFailureReason) {
this.continuedFailureReason = continuedFailureReason;
return this;
}
public void unsetContinuedFailureReason() {
this.continuedFailureReason = null;
}
/** Returns true if field continuedFailureReason is set (has been assigned a value) and false otherwise */
public boolean isSetContinuedFailureReason() {
return this.continuedFailureReason != null;
}
public void setContinuedFailureReasonIsSet(boolean value) {
if (!value) {
this.continuedFailureReason = null;
}
}
public byte[] getContinuedFailureDetails() {
setContinuedFailureDetails(org.apache.thrift.TBaseHelper.rightSize(continuedFailureDetails));
return continuedFailureDetails == null ? null : continuedFailureDetails.array();
}
public ByteBuffer bufferForContinuedFailureDetails() {
return org.apache.thrift.TBaseHelper.copyBinary(continuedFailureDetails);
}
public WorkflowExecutionStartedEventAttributes setContinuedFailureDetails(byte[] continuedFailureDetails) {
this.continuedFailureDetails = continuedFailureDetails == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(continuedFailureDetails, continuedFailureDetails.length));
return this;
}
public WorkflowExecutionStartedEventAttributes setContinuedFailureDetails(ByteBuffer continuedFailureDetails) {
this.continuedFailureDetails = org.apache.thrift.TBaseHelper.copyBinary(continuedFailureDetails);
return this;
}
public void unsetContinuedFailureDetails() {
this.continuedFailureDetails = null;
}
/** Returns true if field continuedFailureDetails is set (has been assigned a value) and false otherwise */
public boolean isSetContinuedFailureDetails() {
return this.continuedFailureDetails != null;
}
public void setContinuedFailureDetailsIsSet(boolean value) {
if (!value) {
this.continuedFailureDetails = null;
}
}
public byte[] getLastCompletionResult() {
setLastCompletionResult(org.apache.thrift.TBaseHelper.rightSize(lastCompletionResult));
return lastCompletionResult == null ? null : lastCompletionResult.array();
}
public ByteBuffer bufferForLastCompletionResult() {
return org.apache.thrift.TBaseHelper.copyBinary(lastCompletionResult);
}
public WorkflowExecutionStartedEventAttributes setLastCompletionResult(byte[] lastCompletionResult) {
this.lastCompletionResult = lastCompletionResult == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(lastCompletionResult, lastCompletionResult.length));
return this;
}
public WorkflowExecutionStartedEventAttributes setLastCompletionResult(ByteBuffer lastCompletionResult) {
this.lastCompletionResult = org.apache.thrift.TBaseHelper.copyBinary(lastCompletionResult);
return this;
}
public void unsetLastCompletionResult() {
this.lastCompletionResult = null;
}
/** Returns true if field lastCompletionResult is set (has been assigned a value) and false otherwise */
public boolean isSetLastCompletionResult() {
return this.lastCompletionResult != null;
}
public void setLastCompletionResultIsSet(boolean value) {
if (!value) {
this.lastCompletionResult = null;
}
}
public String getOriginalExecutionRunId() {
return this.originalExecutionRunId;
}
public WorkflowExecutionStartedEventAttributes setOriginalExecutionRunId(String originalExecutionRunId) {
this.originalExecutionRunId = originalExecutionRunId;
return this;
}
public void unsetOriginalExecutionRunId() {
this.originalExecutionRunId = null;
}
/** Returns true if field originalExecutionRunId is set (has been assigned a value) and false otherwise */
public boolean isSetOriginalExecutionRunId() {
return this.originalExecutionRunId != null;
}
public void setOriginalExecutionRunIdIsSet(boolean value) {
if (!value) {
this.originalExecutionRunId = null;
}
}
public String getIdentity() {
return this.identity;
}
public WorkflowExecutionStartedEventAttributes setIdentity(String identity) {
this.identity = identity;
return this;
}
public void unsetIdentity() {
this.identity = null;
}
/** Returns true if field identity is set (has been assigned a value) and false otherwise */
public boolean isSetIdentity() {
return this.identity != null;
}
public void setIdentityIsSet(boolean value) {
if (!value) {
this.identity = null;
}
}
public String getFirstExecutionRunId() {
return this.firstExecutionRunId;
}
public WorkflowExecutionStartedEventAttributes setFirstExecutionRunId(String firstExecutionRunId) {
this.firstExecutionRunId = firstExecutionRunId;
return this;
}
public void unsetFirstExecutionRunId() {
this.firstExecutionRunId = null;
}
/** Returns true if field firstExecutionRunId is set (has been assigned a value) and false otherwise */
public boolean isSetFirstExecutionRunId() {
return this.firstExecutionRunId != null;
}
public void setFirstExecutionRunIdIsSet(boolean value) {
if (!value) {
this.firstExecutionRunId = null;
}
}
public RetryPolicy getRetryPolicy() {
return this.retryPolicy;
}
public WorkflowExecutionStartedEventAttributes setRetryPolicy(RetryPolicy retryPolicy) {
this.retryPolicy = retryPolicy;
return this;
}
public void unsetRetryPolicy() {
this.retryPolicy = null;
}
/** Returns true if field retryPolicy is set (has been assigned a value) and false otherwise */
public boolean isSetRetryPolicy() {
return this.retryPolicy != null;
}
public void setRetryPolicyIsSet(boolean value) {
if (!value) {
this.retryPolicy = null;
}
}
public int getAttempt() {
return this.attempt;
}
public WorkflowExecutionStartedEventAttributes setAttempt(int attempt) {
this.attempt = attempt;
setAttemptIsSet(true);
return this;
}
public void unsetAttempt() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ATTEMPT_ISSET_ID);
}
/** Returns true if field attempt is set (has been assigned a value) and false otherwise */
public boolean isSetAttempt() {
return EncodingUtils.testBit(__isset_bitfield, __ATTEMPT_ISSET_ID);
}
public void setAttemptIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ATTEMPT_ISSET_ID, value);
}
public long getExpirationTimestamp() {
return this.expirationTimestamp;
}
public WorkflowExecutionStartedEventAttributes setExpirationTimestamp(long expirationTimestamp) {
this.expirationTimestamp = expirationTimestamp;
setExpirationTimestampIsSet(true);
return this;
}
public void unsetExpirationTimestamp() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __EXPIRATIONTIMESTAMP_ISSET_ID);
}
/** Returns true if field expirationTimestamp is set (has been assigned a value) and false otherwise */
public boolean isSetExpirationTimestamp() {
return EncodingUtils.testBit(__isset_bitfield, __EXPIRATIONTIMESTAMP_ISSET_ID);
}
public void setExpirationTimestampIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __EXPIRATIONTIMESTAMP_ISSET_ID, value);
}
public String getCronSchedule() {
return this.cronSchedule;
}
public WorkflowExecutionStartedEventAttributes setCronSchedule(String cronSchedule) {
this.cronSchedule = cronSchedule;
return this;
}
public void unsetCronSchedule() {
this.cronSchedule = null;
}
/** Returns true if field cronSchedule is set (has been assigned a value) and false otherwise */
public boolean isSetCronSchedule() {
return this.cronSchedule != null;
}
public void setCronScheduleIsSet(boolean value) {
if (!value) {
this.cronSchedule = null;
}
}
public int getFirstDecisionTaskBackoffSeconds() {
return this.firstDecisionTaskBackoffSeconds;
}
public WorkflowExecutionStartedEventAttributes setFirstDecisionTaskBackoffSeconds(int firstDecisionTaskBackoffSeconds) {
this.firstDecisionTaskBackoffSeconds = firstDecisionTaskBackoffSeconds;
setFirstDecisionTaskBackoffSecondsIsSet(true);
return this;
}
public void unsetFirstDecisionTaskBackoffSeconds() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FIRSTDECISIONTASKBACKOFFSECONDS_ISSET_ID);
}
/** Returns true if field firstDecisionTaskBackoffSeconds is set (has been assigned a value) and false otherwise */
public boolean isSetFirstDecisionTaskBackoffSeconds() {
return EncodingUtils.testBit(__isset_bitfield, __FIRSTDECISIONTASKBACKOFFSECONDS_ISSET_ID);
}
public void setFirstDecisionTaskBackoffSecondsIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FIRSTDECISIONTASKBACKOFFSECONDS_ISSET_ID, value);
}
public Memo getMemo() {
return this.memo;
}
public WorkflowExecutionStartedEventAttributes setMemo(Memo memo) {
this.memo = memo;
return this;
}
public void unsetMemo() {
this.memo = null;
}
/** Returns true if field memo is set (has been assigned a value) and false otherwise */
public boolean isSetMemo() {
return this.memo != null;
}
public void setMemoIsSet(boolean value) {
if (!value) {
this.memo = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case WORKFLOW_TYPE:
if (value == null) {
unsetWorkflowType();
} else {
setWorkflowType((WorkflowType)value);
}
break;
case PARENT_WORKFLOW_DOMAIN:
if (value == null) {
unsetParentWorkflowDomain();
} else {
setParentWorkflowDomain((String)value);
}
break;
case PARENT_WORKFLOW_EXECUTION:
if (value == null) {
unsetParentWorkflowExecution();
} else {
setParentWorkflowExecution((WorkflowExecution)value);
}
break;
case PARENT_INITIATED_EVENT_ID:
if (value == null) {
unsetParentInitiatedEventId();
} else {
setParentInitiatedEventId((Long)value);
}
break;
case TASK_LIST:
if (value == null) {
unsetTaskList();
} else {
setTaskList((TaskList)value);
}
break;
case INPUT:
if (value == null) {
unsetInput();
} else {
setInput((ByteBuffer)value);
}
break;
case EXECUTION_START_TO_CLOSE_TIMEOUT_SECONDS:
if (value == null) {
unsetExecutionStartToCloseTimeoutSeconds();
} else {
setExecutionStartToCloseTimeoutSeconds((Integer)value);
}
break;
case TASK_START_TO_CLOSE_TIMEOUT_SECONDS:
if (value == null) {
unsetTaskStartToCloseTimeoutSeconds();
} else {
setTaskStartToCloseTimeoutSeconds((Integer)value);
}
break;
case CHILD_POLICY:
if (value == null) {
unsetChildPolicy();
} else {
setChildPolicy((ChildPolicy)value);
}
break;
case CONTINUED_EXECUTION_RUN_ID:
if (value == null) {
unsetContinuedExecutionRunId();
} else {
setContinuedExecutionRunId((String)value);
}
break;
case INITIATOR:
if (value == null) {
unsetInitiator();
} else {
setInitiator((ContinueAsNewInitiator)value);
}
break;
case CONTINUED_FAILURE_REASON:
if (value == null) {
unsetContinuedFailureReason();
} else {
setContinuedFailureReason((String)value);
}
break;
case CONTINUED_FAILURE_DETAILS:
if (value == null) {
unsetContinuedFailureDetails();
} else {
setContinuedFailureDetails((ByteBuffer)value);
}
break;
case LAST_COMPLETION_RESULT:
if (value == null) {
unsetLastCompletionResult();
} else {
setLastCompletionResult((ByteBuffer)value);
}
break;
case ORIGINAL_EXECUTION_RUN_ID:
if (value == null) {
unsetOriginalExecutionRunId();
} else {
setOriginalExecutionRunId((String)value);
}
break;
case IDENTITY:
if (value == null) {
unsetIdentity();
} else {
setIdentity((String)value);
}
break;
case FIRST_EXECUTION_RUN_ID:
if (value == null) {
unsetFirstExecutionRunId();
} else {
setFirstExecutionRunId((String)value);
}
break;
case RETRY_POLICY:
if (value == null) {
unsetRetryPolicy();
} else {
setRetryPolicy((RetryPolicy)value);
}
break;
case ATTEMPT:
if (value == null) {
unsetAttempt();
} else {
setAttempt((Integer)value);
}
break;
case EXPIRATION_TIMESTAMP:
if (value == null) {
unsetExpirationTimestamp();
} else {
setExpirationTimestamp((Long)value);
}
break;
case CRON_SCHEDULE:
if (value == null) {
unsetCronSchedule();
} else {
setCronSchedule((String)value);
}
break;
case FIRST_DECISION_TASK_BACKOFF_SECONDS:
if (value == null) {
unsetFirstDecisionTaskBackoffSeconds();
} else {
setFirstDecisionTaskBackoffSeconds((Integer)value);
}
break;
case MEMO:
if (value == null) {
unsetMemo();
} else {
setMemo((Memo)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case WORKFLOW_TYPE:
return getWorkflowType();
case PARENT_WORKFLOW_DOMAIN:
return getParentWorkflowDomain();
case PARENT_WORKFLOW_EXECUTION:
return getParentWorkflowExecution();
case PARENT_INITIATED_EVENT_ID:
return getParentInitiatedEventId();
case TASK_LIST:
return getTaskList();
case INPUT:
return getInput();
case EXECUTION_START_TO_CLOSE_TIMEOUT_SECONDS:
return getExecutionStartToCloseTimeoutSeconds();
case TASK_START_TO_CLOSE_TIMEOUT_SECONDS:
return getTaskStartToCloseTimeoutSeconds();
case CHILD_POLICY:
return getChildPolicy();
case CONTINUED_EXECUTION_RUN_ID:
return getContinuedExecutionRunId();
case INITIATOR:
return getInitiator();
case CONTINUED_FAILURE_REASON:
return getContinuedFailureReason();
case CONTINUED_FAILURE_DETAILS:
return getContinuedFailureDetails();
case LAST_COMPLETION_RESULT:
return getLastCompletionResult();
case ORIGINAL_EXECUTION_RUN_ID:
return getOriginalExecutionRunId();
case IDENTITY:
return getIdentity();
case FIRST_EXECUTION_RUN_ID:
return getFirstExecutionRunId();
case RETRY_POLICY:
return getRetryPolicy();
case ATTEMPT:
return getAttempt();
case EXPIRATION_TIMESTAMP:
return getExpirationTimestamp();
case CRON_SCHEDULE:
return getCronSchedule();
case FIRST_DECISION_TASK_BACKOFF_SECONDS:
return getFirstDecisionTaskBackoffSeconds();
case MEMO:
return getMemo();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case WORKFLOW_TYPE:
return isSetWorkflowType();
case PARENT_WORKFLOW_DOMAIN:
return isSetParentWorkflowDomain();
case PARENT_WORKFLOW_EXECUTION:
return isSetParentWorkflowExecution();
case PARENT_INITIATED_EVENT_ID:
return isSetParentInitiatedEventId();
case TASK_LIST:
return isSetTaskList();
case INPUT:
return isSetInput();
case EXECUTION_START_TO_CLOSE_TIMEOUT_SECONDS:
return isSetExecutionStartToCloseTimeoutSeconds();
case TASK_START_TO_CLOSE_TIMEOUT_SECONDS:
return isSetTaskStartToCloseTimeoutSeconds();
case CHILD_POLICY:
return isSetChildPolicy();
case CONTINUED_EXECUTION_RUN_ID:
return isSetContinuedExecutionRunId();
case INITIATOR:
return isSetInitiator();
case CONTINUED_FAILURE_REASON:
return isSetContinuedFailureReason();
case CONTINUED_FAILURE_DETAILS:
return isSetContinuedFailureDetails();
case LAST_COMPLETION_RESULT:
return isSetLastCompletionResult();
case ORIGINAL_EXECUTION_RUN_ID:
return isSetOriginalExecutionRunId();
case IDENTITY:
return isSetIdentity();
case FIRST_EXECUTION_RUN_ID:
return isSetFirstExecutionRunId();
case RETRY_POLICY:
return isSetRetryPolicy();
case ATTEMPT:
return isSetAttempt();
case EXPIRATION_TIMESTAMP:
return isSetExpirationTimestamp();
case CRON_SCHEDULE:
return isSetCronSchedule();
case FIRST_DECISION_TASK_BACKOFF_SECONDS:
return isSetFirstDecisionTaskBackoffSeconds();
case MEMO:
return isSetMemo();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof WorkflowExecutionStartedEventAttributes)
return this.equals((WorkflowExecutionStartedEventAttributes)that);
return false;
}
public boolean equals(WorkflowExecutionStartedEventAttributes that) {
if (that == null)
return false;
boolean this_present_workflowType = true && this.isSetWorkflowType();
boolean that_present_workflowType = true && that.isSetWorkflowType();
if (this_present_workflowType || that_present_workflowType) {
if (!(this_present_workflowType && that_present_workflowType))
return false;
if (!this.workflowType.equals(that.workflowType))
return false;
}
boolean this_present_parentWorkflowDomain = true && this.isSetParentWorkflowDomain();
boolean that_present_parentWorkflowDomain = true && that.isSetParentWorkflowDomain();
if (this_present_parentWorkflowDomain || that_present_parentWorkflowDomain) {
if (!(this_present_parentWorkflowDomain && that_present_parentWorkflowDomain))
return false;
if (!this.parentWorkflowDomain.equals(that.parentWorkflowDomain))
return false;
}
boolean this_present_parentWorkflowExecution = true && this.isSetParentWorkflowExecution();
boolean that_present_parentWorkflowExecution = true && that.isSetParentWorkflowExecution();
if (this_present_parentWorkflowExecution || that_present_parentWorkflowExecution) {
if (!(this_present_parentWorkflowExecution && that_present_parentWorkflowExecution))
return false;
if (!this.parentWorkflowExecution.equals(that.parentWorkflowExecution))
return false;
}
boolean this_present_parentInitiatedEventId = true && this.isSetParentInitiatedEventId();
boolean that_present_parentInitiatedEventId = true && that.isSetParentInitiatedEventId();
if (this_present_parentInitiatedEventId || that_present_parentInitiatedEventId) {
if (!(this_present_parentInitiatedEventId && that_present_parentInitiatedEventId))
return false;
if (this.parentInitiatedEventId != that.parentInitiatedEventId)
return false;
}
boolean this_present_taskList = true && this.isSetTaskList();
boolean that_present_taskList = true && that.isSetTaskList();
if (this_present_taskList || that_present_taskList) {
if (!(this_present_taskList && that_present_taskList))
return false;
if (!this.taskList.equals(that.taskList))
return false;
}
boolean this_present_input = true && this.isSetInput();
boolean that_present_input = true && that.isSetInput();
if (this_present_input || that_present_input) {
if (!(this_present_input && that_present_input))
return false;
if (!this.input.equals(that.input))
return false;
}
boolean this_present_executionStartToCloseTimeoutSeconds = true && this.isSetExecutionStartToCloseTimeoutSeconds();
boolean that_present_executionStartToCloseTimeoutSeconds = true && that.isSetExecutionStartToCloseTimeoutSeconds();
if (this_present_executionStartToCloseTimeoutSeconds || that_present_executionStartToCloseTimeoutSeconds) {
if (!(this_present_executionStartToCloseTimeoutSeconds && that_present_executionStartToCloseTimeoutSeconds))
return false;
if (this.executionStartToCloseTimeoutSeconds != that.executionStartToCloseTimeoutSeconds)
return false;
}
boolean this_present_taskStartToCloseTimeoutSeconds = true && this.isSetTaskStartToCloseTimeoutSeconds();
boolean that_present_taskStartToCloseTimeoutSeconds = true && that.isSetTaskStartToCloseTimeoutSeconds();
if (this_present_taskStartToCloseTimeoutSeconds || that_present_taskStartToCloseTimeoutSeconds) {
if (!(this_present_taskStartToCloseTimeoutSeconds && that_present_taskStartToCloseTimeoutSeconds))
return false;
if (this.taskStartToCloseTimeoutSeconds != that.taskStartToCloseTimeoutSeconds)
return false;
}
boolean this_present_childPolicy = true && this.isSetChildPolicy();
boolean that_present_childPolicy = true && that.isSetChildPolicy();
if (this_present_childPolicy || that_present_childPolicy) {
if (!(this_present_childPolicy && that_present_childPolicy))
return false;
if (!this.childPolicy.equals(that.childPolicy))
return false;
}
boolean this_present_continuedExecutionRunId = true && this.isSetContinuedExecutionRunId();
boolean that_present_continuedExecutionRunId = true && that.isSetContinuedExecutionRunId();
if (this_present_continuedExecutionRunId || that_present_continuedExecutionRunId) {
if (!(this_present_continuedExecutionRunId && that_present_continuedExecutionRunId))
return false;
if (!this.continuedExecutionRunId.equals(that.continuedExecutionRunId))
return false;
}
boolean this_present_initiator = true && this.isSetInitiator();
boolean that_present_initiator = true && that.isSetInitiator();
if (this_present_initiator || that_present_initiator) {
if (!(this_present_initiator && that_present_initiator))
return false;
if (!this.initiator.equals(that.initiator))
return false;
}
boolean this_present_continuedFailureReason = true && this.isSetContinuedFailureReason();
boolean that_present_continuedFailureReason = true && that.isSetContinuedFailureReason();
if (this_present_continuedFailureReason || that_present_continuedFailureReason) {
if (!(this_present_continuedFailureReason && that_present_continuedFailureReason))
return false;
if (!this.continuedFailureReason.equals(that.continuedFailureReason))
return false;
}
boolean this_present_continuedFailureDetails = true && this.isSetContinuedFailureDetails();
boolean that_present_continuedFailureDetails = true && that.isSetContinuedFailureDetails();
if (this_present_continuedFailureDetails || that_present_continuedFailureDetails) {
if (!(this_present_continuedFailureDetails && that_present_continuedFailureDetails))
return false;
if (!this.continuedFailureDetails.equals(that.continuedFailureDetails))
return false;
}
boolean this_present_lastCompletionResult = true && this.isSetLastCompletionResult();
boolean that_present_lastCompletionResult = true && that.isSetLastCompletionResult();
if (this_present_lastCompletionResult || that_present_lastCompletionResult) {
if (!(this_present_lastCompletionResult && that_present_lastCompletionResult))
return false;
if (!this.lastCompletionResult.equals(that.lastCompletionResult))
return false;
}
boolean this_present_originalExecutionRunId = true && this.isSetOriginalExecutionRunId();
boolean that_present_originalExecutionRunId = true && that.isSetOriginalExecutionRunId();
if (this_present_originalExecutionRunId || that_present_originalExecutionRunId) {
if (!(this_present_originalExecutionRunId && that_present_originalExecutionRunId))
return false;
if (!this.originalExecutionRunId.equals(that.originalExecutionRunId))
return false;
}
boolean this_present_identity = true && this.isSetIdentity();
boolean that_present_identity = true && that.isSetIdentity();
if (this_present_identity || that_present_identity) {
if (!(this_present_identity && that_present_identity))
return false;
if (!this.identity.equals(that.identity))
return false;
}
boolean this_present_firstExecutionRunId = true && this.isSetFirstExecutionRunId();
boolean that_present_firstExecutionRunId = true && that.isSetFirstExecutionRunId();
if (this_present_firstExecutionRunId || that_present_firstExecutionRunId) {
if (!(this_present_firstExecutionRunId && that_present_firstExecutionRunId))
return false;
if (!this.firstExecutionRunId.equals(that.firstExecutionRunId))
return false;
}
boolean this_present_retryPolicy = true && this.isSetRetryPolicy();
boolean that_present_retryPolicy = true && that.isSetRetryPolicy();
if (this_present_retryPolicy || that_present_retryPolicy) {
if (!(this_present_retryPolicy && that_present_retryPolicy))
return false;
if (!this.retryPolicy.equals(that.retryPolicy))
return false;
}
boolean this_present_attempt = true && this.isSetAttempt();
boolean that_present_attempt = true && that.isSetAttempt();
if (this_present_attempt || that_present_attempt) {
if (!(this_present_attempt && that_present_attempt))
return false;
if (this.attempt != that.attempt)
return false;
}
boolean this_present_expirationTimestamp = true && this.isSetExpirationTimestamp();
boolean that_present_expirationTimestamp = true && that.isSetExpirationTimestamp();
if (this_present_expirationTimestamp || that_present_expirationTimestamp) {
if (!(this_present_expirationTimestamp && that_present_expirationTimestamp))
return false;
if (this.expirationTimestamp != that.expirationTimestamp)
return false;
}
boolean this_present_cronSchedule = true && this.isSetCronSchedule();
boolean that_present_cronSchedule = true && that.isSetCronSchedule();
if (this_present_cronSchedule || that_present_cronSchedule) {
if (!(this_present_cronSchedule && that_present_cronSchedule))
return false;
if (!this.cronSchedule.equals(that.cronSchedule))
return false;
}
boolean this_present_firstDecisionTaskBackoffSeconds = true && this.isSetFirstDecisionTaskBackoffSeconds();
boolean that_present_firstDecisionTaskBackoffSeconds = true && that.isSetFirstDecisionTaskBackoffSeconds();
if (this_present_firstDecisionTaskBackoffSeconds || that_present_firstDecisionTaskBackoffSeconds) {
if (!(this_present_firstDecisionTaskBackoffSeconds && that_present_firstDecisionTaskBackoffSeconds))
return false;
if (this.firstDecisionTaskBackoffSeconds != that.firstDecisionTaskBackoffSeconds)
return false;
}
boolean this_present_memo = true && this.isSetMemo();
boolean that_present_memo = true && that.isSetMemo();
if (this_present_memo || that_present_memo) {
if (!(this_present_memo && that_present_memo))
return false;
if (!this.memo.equals(that.memo))
return false;
}
return true;
}
@Override
public int hashCode() {
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy