com.uber.cadence.WorkflowExecutionContinuedAsNewEventAttributes 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 WorkflowExecutionContinuedAsNewEventAttributes 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("WorkflowExecutionContinuedAsNewEventAttributes");
private static final org.apache.thrift.protocol.TField NEW_EXECUTION_RUN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("newExecutionRunId", org.apache.thrift.protocol.TType.STRING, (short)10);
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)20);
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)30);
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)40);
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)50);
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)60);
private static final org.apache.thrift.protocol.TField DECISION_TASK_COMPLETED_EVENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("decisionTaskCompletedEventId", org.apache.thrift.protocol.TType.I64, (short)70);
private static final org.apache.thrift.protocol.TField BACKOFF_START_INTERVAL_IN_SECONDS_FIELD_DESC = new org.apache.thrift.protocol.TField("backoffStartIntervalInSeconds", org.apache.thrift.protocol.TType.I32, (short)80);
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)90);
private static final org.apache.thrift.protocol.TField FAILURE_REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("failureReason", org.apache.thrift.protocol.TType.STRING, (short)100);
private static final org.apache.thrift.protocol.TField FAILURE_DETAILS_FIELD_DESC = new org.apache.thrift.protocol.TField("failureDetails", org.apache.thrift.protocol.TType.STRING, (short)110);
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)120);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new WorkflowExecutionContinuedAsNewEventAttributesStandardSchemeFactory());
schemes.put(TupleScheme.class, new WorkflowExecutionContinuedAsNewEventAttributesTupleSchemeFactory());
}
public String newExecutionRunId; // optional
public WorkflowType workflowType; // optional
public TaskList taskList; // optional
public ByteBuffer input; // optional
public int executionStartToCloseTimeoutSeconds; // optional
public int taskStartToCloseTimeoutSeconds; // optional
public long decisionTaskCompletedEventId; // optional
public int backoffStartIntervalInSeconds; // optional
/**
*
* @see ContinueAsNewInitiator
*/
public ContinueAsNewInitiator initiator; // optional
public String failureReason; // optional
public ByteBuffer failureDetails; // optional
public ByteBuffer lastCompletionResult; // 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 {
NEW_EXECUTION_RUN_ID((short)10, "newExecutionRunId"),
WORKFLOW_TYPE((short)20, "workflowType"),
TASK_LIST((short)30, "taskList"),
INPUT((short)40, "input"),
EXECUTION_START_TO_CLOSE_TIMEOUT_SECONDS((short)50, "executionStartToCloseTimeoutSeconds"),
TASK_START_TO_CLOSE_TIMEOUT_SECONDS((short)60, "taskStartToCloseTimeoutSeconds"),
DECISION_TASK_COMPLETED_EVENT_ID((short)70, "decisionTaskCompletedEventId"),
BACKOFF_START_INTERVAL_IN_SECONDS((short)80, "backoffStartIntervalInSeconds"),
/**
*
* @see ContinueAsNewInitiator
*/
INITIATOR((short)90, "initiator"),
FAILURE_REASON((short)100, "failureReason"),
FAILURE_DETAILS((short)110, "failureDetails"),
LAST_COMPLETION_RESULT((short)120, "lastCompletionResult");
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: // NEW_EXECUTION_RUN_ID
return NEW_EXECUTION_RUN_ID;
case 20: // WORKFLOW_TYPE
return WORKFLOW_TYPE;
case 30: // TASK_LIST
return TASK_LIST;
case 40: // INPUT
return INPUT;
case 50: // EXECUTION_START_TO_CLOSE_TIMEOUT_SECONDS
return EXECUTION_START_TO_CLOSE_TIMEOUT_SECONDS;
case 60: // TASK_START_TO_CLOSE_TIMEOUT_SECONDS
return TASK_START_TO_CLOSE_TIMEOUT_SECONDS;
case 70: // DECISION_TASK_COMPLETED_EVENT_ID
return DECISION_TASK_COMPLETED_EVENT_ID;
case 80: // BACKOFF_START_INTERVAL_IN_SECONDS
return BACKOFF_START_INTERVAL_IN_SECONDS;
case 90: // INITIATOR
return INITIATOR;
case 100: // FAILURE_REASON
return FAILURE_REASON;
case 110: // FAILURE_DETAILS
return FAILURE_DETAILS;
case 120: // LAST_COMPLETION_RESULT
return LAST_COMPLETION_RESULT;
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 __EXECUTIONSTARTTOCLOSETIMEOUTSECONDS_ISSET_ID = 0;
private static final int __TASKSTARTTOCLOSETIMEOUTSECONDS_ISSET_ID = 1;
private static final int __DECISIONTASKCOMPLETEDEVENTID_ISSET_ID = 2;
private static final int __BACKOFFSTARTINTERVALINSECONDS_ISSET_ID = 3;
private byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.NEW_EXECUTION_RUN_ID,_Fields.WORKFLOW_TYPE,_Fields.TASK_LIST,_Fields.INPUT,_Fields.EXECUTION_START_TO_CLOSE_TIMEOUT_SECONDS,_Fields.TASK_START_TO_CLOSE_TIMEOUT_SECONDS,_Fields.DECISION_TASK_COMPLETED_EVENT_ID,_Fields.BACKOFF_START_INTERVAL_IN_SECONDS,_Fields.INITIATOR,_Fields.FAILURE_REASON,_Fields.FAILURE_DETAILS,_Fields.LAST_COMPLETION_RESULT};
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.NEW_EXECUTION_RUN_ID, new org.apache.thrift.meta_data.FieldMetaData("newExecutionRunId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
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.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.DECISION_TASK_COMPLETED_EVENT_ID, new org.apache.thrift.meta_data.FieldMetaData("decisionTaskCompletedEventId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.BACKOFF_START_INTERVAL_IN_SECONDS, new org.apache.thrift.meta_data.FieldMetaData("backoffStartIntervalInSeconds", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.INITIATOR, new org.apache.thrift.meta_data.FieldMetaData("initiator", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ContinueAsNewInitiator.class)));
tmpMap.put(_Fields.FAILURE_REASON, new org.apache.thrift.meta_data.FieldMetaData("failureReason", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.FAILURE_DETAILS, new org.apache.thrift.meta_data.FieldMetaData("failureDetails", 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)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(WorkflowExecutionContinuedAsNewEventAttributes.class, metaDataMap);
}
public WorkflowExecutionContinuedAsNewEventAttributes() {
}
/**
* Performs a deep copy on other.
*/
public WorkflowExecutionContinuedAsNewEventAttributes(WorkflowExecutionContinuedAsNewEventAttributes other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetNewExecutionRunId()) {
this.newExecutionRunId = other.newExecutionRunId;
}
if (other.isSetWorkflowType()) {
this.workflowType = new WorkflowType(other.workflowType);
}
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;
this.decisionTaskCompletedEventId = other.decisionTaskCompletedEventId;
this.backoffStartIntervalInSeconds = other.backoffStartIntervalInSeconds;
if (other.isSetInitiator()) {
this.initiator = other.initiator;
}
if (other.isSetFailureReason()) {
this.failureReason = other.failureReason;
}
if (other.isSetFailureDetails()) {
this.failureDetails = org.apache.thrift.TBaseHelper.copyBinary(other.failureDetails);
}
if (other.isSetLastCompletionResult()) {
this.lastCompletionResult = org.apache.thrift.TBaseHelper.copyBinary(other.lastCompletionResult);
}
}
public WorkflowExecutionContinuedAsNewEventAttributes deepCopy() {
return new WorkflowExecutionContinuedAsNewEventAttributes(this);
}
@Override
public void clear() {
this.newExecutionRunId = null;
this.workflowType = null;
this.taskList = null;
this.input = null;
setExecutionStartToCloseTimeoutSecondsIsSet(false);
this.executionStartToCloseTimeoutSeconds = 0;
setTaskStartToCloseTimeoutSecondsIsSet(false);
this.taskStartToCloseTimeoutSeconds = 0;
setDecisionTaskCompletedEventIdIsSet(false);
this.decisionTaskCompletedEventId = 0;
setBackoffStartIntervalInSecondsIsSet(false);
this.backoffStartIntervalInSeconds = 0;
this.initiator = null;
this.failureReason = null;
this.failureDetails = null;
this.lastCompletionResult = null;
}
public String getNewExecutionRunId() {
return this.newExecutionRunId;
}
public WorkflowExecutionContinuedAsNewEventAttributes setNewExecutionRunId(String newExecutionRunId) {
this.newExecutionRunId = newExecutionRunId;
return this;
}
public void unsetNewExecutionRunId() {
this.newExecutionRunId = null;
}
/** Returns true if field newExecutionRunId is set (has been assigned a value) and false otherwise */
public boolean isSetNewExecutionRunId() {
return this.newExecutionRunId != null;
}
public void setNewExecutionRunIdIsSet(boolean value) {
if (!value) {
this.newExecutionRunId = null;
}
}
public WorkflowType getWorkflowType() {
return this.workflowType;
}
public WorkflowExecutionContinuedAsNewEventAttributes 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 TaskList getTaskList() {
return this.taskList;
}
public WorkflowExecutionContinuedAsNewEventAttributes 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 WorkflowExecutionContinuedAsNewEventAttributes setInput(byte[] input) {
this.input = input == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(input, input.length));
return this;
}
public WorkflowExecutionContinuedAsNewEventAttributes 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 WorkflowExecutionContinuedAsNewEventAttributes 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 WorkflowExecutionContinuedAsNewEventAttributes 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);
}
public long getDecisionTaskCompletedEventId() {
return this.decisionTaskCompletedEventId;
}
public WorkflowExecutionContinuedAsNewEventAttributes setDecisionTaskCompletedEventId(long decisionTaskCompletedEventId) {
this.decisionTaskCompletedEventId = decisionTaskCompletedEventId;
setDecisionTaskCompletedEventIdIsSet(true);
return this;
}
public void unsetDecisionTaskCompletedEventId() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DECISIONTASKCOMPLETEDEVENTID_ISSET_ID);
}
/** Returns true if field decisionTaskCompletedEventId is set (has been assigned a value) and false otherwise */
public boolean isSetDecisionTaskCompletedEventId() {
return EncodingUtils.testBit(__isset_bitfield, __DECISIONTASKCOMPLETEDEVENTID_ISSET_ID);
}
public void setDecisionTaskCompletedEventIdIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DECISIONTASKCOMPLETEDEVENTID_ISSET_ID, value);
}
public int getBackoffStartIntervalInSeconds() {
return this.backoffStartIntervalInSeconds;
}
public WorkflowExecutionContinuedAsNewEventAttributes setBackoffStartIntervalInSeconds(int backoffStartIntervalInSeconds) {
this.backoffStartIntervalInSeconds = backoffStartIntervalInSeconds;
setBackoffStartIntervalInSecondsIsSet(true);
return this;
}
public void unsetBackoffStartIntervalInSeconds() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __BACKOFFSTARTINTERVALINSECONDS_ISSET_ID);
}
/** Returns true if field backoffStartIntervalInSeconds is set (has been assigned a value) and false otherwise */
public boolean isSetBackoffStartIntervalInSeconds() {
return EncodingUtils.testBit(__isset_bitfield, __BACKOFFSTARTINTERVALINSECONDS_ISSET_ID);
}
public void setBackoffStartIntervalInSecondsIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __BACKOFFSTARTINTERVALINSECONDS_ISSET_ID, value);
}
/**
*
* @see ContinueAsNewInitiator
*/
public ContinueAsNewInitiator getInitiator() {
return this.initiator;
}
/**
*
* @see ContinueAsNewInitiator
*/
public WorkflowExecutionContinuedAsNewEventAttributes 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 getFailureReason() {
return this.failureReason;
}
public WorkflowExecutionContinuedAsNewEventAttributes setFailureReason(String failureReason) {
this.failureReason = failureReason;
return this;
}
public void unsetFailureReason() {
this.failureReason = null;
}
/** Returns true if field failureReason is set (has been assigned a value) and false otherwise */
public boolean isSetFailureReason() {
return this.failureReason != null;
}
public void setFailureReasonIsSet(boolean value) {
if (!value) {
this.failureReason = null;
}
}
public byte[] getFailureDetails() {
setFailureDetails(org.apache.thrift.TBaseHelper.rightSize(failureDetails));
return failureDetails == null ? null : failureDetails.array();
}
public ByteBuffer bufferForFailureDetails() {
return org.apache.thrift.TBaseHelper.copyBinary(failureDetails);
}
public WorkflowExecutionContinuedAsNewEventAttributes setFailureDetails(byte[] failureDetails) {
this.failureDetails = failureDetails == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(failureDetails, failureDetails.length));
return this;
}
public WorkflowExecutionContinuedAsNewEventAttributes setFailureDetails(ByteBuffer failureDetails) {
this.failureDetails = org.apache.thrift.TBaseHelper.copyBinary(failureDetails);
return this;
}
public void unsetFailureDetails() {
this.failureDetails = null;
}
/** Returns true if field failureDetails is set (has been assigned a value) and false otherwise */
public boolean isSetFailureDetails() {
return this.failureDetails != null;
}
public void setFailureDetailsIsSet(boolean value) {
if (!value) {
this.failureDetails = 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 WorkflowExecutionContinuedAsNewEventAttributes setLastCompletionResult(byte[] lastCompletionResult) {
this.lastCompletionResult = lastCompletionResult == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(lastCompletionResult, lastCompletionResult.length));
return this;
}
public WorkflowExecutionContinuedAsNewEventAttributes 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 void setFieldValue(_Fields field, Object value) {
switch (field) {
case NEW_EXECUTION_RUN_ID:
if (value == null) {
unsetNewExecutionRunId();
} else {
setNewExecutionRunId((String)value);
}
break;
case WORKFLOW_TYPE:
if (value == null) {
unsetWorkflowType();
} else {
setWorkflowType((WorkflowType)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 DECISION_TASK_COMPLETED_EVENT_ID:
if (value == null) {
unsetDecisionTaskCompletedEventId();
} else {
setDecisionTaskCompletedEventId((Long)value);
}
break;
case BACKOFF_START_INTERVAL_IN_SECONDS:
if (value == null) {
unsetBackoffStartIntervalInSeconds();
} else {
setBackoffStartIntervalInSeconds((Integer)value);
}
break;
case INITIATOR:
if (value == null) {
unsetInitiator();
} else {
setInitiator((ContinueAsNewInitiator)value);
}
break;
case FAILURE_REASON:
if (value == null) {
unsetFailureReason();
} else {
setFailureReason((String)value);
}
break;
case FAILURE_DETAILS:
if (value == null) {
unsetFailureDetails();
} else {
setFailureDetails((ByteBuffer)value);
}
break;
case LAST_COMPLETION_RESULT:
if (value == null) {
unsetLastCompletionResult();
} else {
setLastCompletionResult((ByteBuffer)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case NEW_EXECUTION_RUN_ID:
return getNewExecutionRunId();
case WORKFLOW_TYPE:
return getWorkflowType();
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 DECISION_TASK_COMPLETED_EVENT_ID:
return getDecisionTaskCompletedEventId();
case BACKOFF_START_INTERVAL_IN_SECONDS:
return getBackoffStartIntervalInSeconds();
case INITIATOR:
return getInitiator();
case FAILURE_REASON:
return getFailureReason();
case FAILURE_DETAILS:
return getFailureDetails();
case LAST_COMPLETION_RESULT:
return getLastCompletionResult();
}
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 NEW_EXECUTION_RUN_ID:
return isSetNewExecutionRunId();
case WORKFLOW_TYPE:
return isSetWorkflowType();
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 DECISION_TASK_COMPLETED_EVENT_ID:
return isSetDecisionTaskCompletedEventId();
case BACKOFF_START_INTERVAL_IN_SECONDS:
return isSetBackoffStartIntervalInSeconds();
case INITIATOR:
return isSetInitiator();
case FAILURE_REASON:
return isSetFailureReason();
case FAILURE_DETAILS:
return isSetFailureDetails();
case LAST_COMPLETION_RESULT:
return isSetLastCompletionResult();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof WorkflowExecutionContinuedAsNewEventAttributes)
return this.equals((WorkflowExecutionContinuedAsNewEventAttributes)that);
return false;
}
public boolean equals(WorkflowExecutionContinuedAsNewEventAttributes that) {
if (that == null)
return false;
boolean this_present_newExecutionRunId = true && this.isSetNewExecutionRunId();
boolean that_present_newExecutionRunId = true && that.isSetNewExecutionRunId();
if (this_present_newExecutionRunId || that_present_newExecutionRunId) {
if (!(this_present_newExecutionRunId && that_present_newExecutionRunId))
return false;
if (!this.newExecutionRunId.equals(that.newExecutionRunId))
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_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_decisionTaskCompletedEventId = true && this.isSetDecisionTaskCompletedEventId();
boolean that_present_decisionTaskCompletedEventId = true && that.isSetDecisionTaskCompletedEventId();
if (this_present_decisionTaskCompletedEventId || that_present_decisionTaskCompletedEventId) {
if (!(this_present_decisionTaskCompletedEventId && that_present_decisionTaskCompletedEventId))
return false;
if (this.decisionTaskCompletedEventId != that.decisionTaskCompletedEventId)
return false;
}
boolean this_present_backoffStartIntervalInSeconds = true && this.isSetBackoffStartIntervalInSeconds();
boolean that_present_backoffStartIntervalInSeconds = true && that.isSetBackoffStartIntervalInSeconds();
if (this_present_backoffStartIntervalInSeconds || that_present_backoffStartIntervalInSeconds) {
if (!(this_present_backoffStartIntervalInSeconds && that_present_backoffStartIntervalInSeconds))
return false;
if (this.backoffStartIntervalInSeconds != that.backoffStartIntervalInSeconds)
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_failureReason = true && this.isSetFailureReason();
boolean that_present_failureReason = true && that.isSetFailureReason();
if (this_present_failureReason || that_present_failureReason) {
if (!(this_present_failureReason && that_present_failureReason))
return false;
if (!this.failureReason.equals(that.failureReason))
return false;
}
boolean this_present_failureDetails = true && this.isSetFailureDetails();
boolean that_present_failureDetails = true && that.isSetFailureDetails();
if (this_present_failureDetails || that_present_failureDetails) {
if (!(this_present_failureDetails && that_present_failureDetails))
return false;
if (!this.failureDetails.equals(that.failureDetails))
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;
}
return true;
}
@Override
public int hashCode() {
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy