Package com.uber.cadence
Class PollForActivityTaskResponse
- java.lang.Object
-
- com.uber.cadence.PollForActivityTaskResponse
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable<PollForActivityTaskResponse>
,org.apache.thrift.TBase<PollForActivityTaskResponse,PollForActivityTaskResponse._Fields>
@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2022-12-02") public class PollForActivityTaskResponse extends java.lang.Object implements org.apache.thrift.TBase<PollForActivityTaskResponse,PollForActivityTaskResponse._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<PollForActivityTaskResponse>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PollForActivityTaskResponse._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
activityId
ActivityType
activityType
int
attempt
Header
header
java.nio.ByteBuffer
heartbeatDetails
int
heartbeatTimeoutSeconds
java.nio.ByteBuffer
input
static java.util.Map<PollForActivityTaskResponse._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
long
scheduledTimestamp
long
scheduledTimestampOfThisAttempt
int
scheduleToCloseTimeoutSeconds
long
startedTimestamp
int
startToCloseTimeoutSeconds
java.nio.ByteBuffer
taskToken
java.lang.String
workflowDomain
WorkflowExecution
workflowExecution
WorkflowType
workflowType
-
Constructor Summary
Constructors Constructor Description PollForActivityTaskResponse()
PollForActivityTaskResponse(PollForActivityTaskResponse other)
Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
bufferForHeartbeatDetails()
java.nio.ByteBuffer
bufferForInput()
java.nio.ByteBuffer
bufferForTaskToken()
void
clear()
int
compareTo(PollForActivityTaskResponse other)
PollForActivityTaskResponse
deepCopy()
boolean
equals(PollForActivityTaskResponse that)
boolean
equals(java.lang.Object that)
PollForActivityTaskResponse._Fields
fieldForId(int fieldId)
java.lang.String
getActivityId()
ActivityType
getActivityType()
int
getAttempt()
java.lang.Object
getFieldValue(PollForActivityTaskResponse._Fields field)
Header
getHeader()
byte[]
getHeartbeatDetails()
int
getHeartbeatTimeoutSeconds()
byte[]
getInput()
long
getScheduledTimestamp()
long
getScheduledTimestampOfThisAttempt()
int
getScheduleToCloseTimeoutSeconds()
long
getStartedTimestamp()
int
getStartToCloseTimeoutSeconds()
byte[]
getTaskToken()
java.lang.String
getWorkflowDomain()
WorkflowExecution
getWorkflowExecution()
WorkflowType
getWorkflowType()
int
hashCode()
boolean
isSet(PollForActivityTaskResponse._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwiseboolean
isSetActivityId()
Returns true if field activityId is set (has been assigned a value) and false otherwiseboolean
isSetActivityType()
Returns true if field activityType is set (has been assigned a value) and false otherwiseboolean
isSetAttempt()
Returns true if field attempt is set (has been assigned a value) and false otherwiseboolean
isSetHeader()
Returns true if field header is set (has been assigned a value) and false otherwiseboolean
isSetHeartbeatDetails()
Returns true if field heartbeatDetails is set (has been assigned a value) and false otherwiseboolean
isSetHeartbeatTimeoutSeconds()
Returns true if field heartbeatTimeoutSeconds is set (has been assigned a value) and false otherwiseboolean
isSetInput()
Returns true if field input is set (has been assigned a value) and false otherwiseboolean
isSetScheduledTimestamp()
Returns true if field scheduledTimestamp is set (has been assigned a value) and false otherwiseboolean
isSetScheduledTimestampOfThisAttempt()
Returns true if field scheduledTimestampOfThisAttempt is set (has been assigned a value) and false otherwiseboolean
isSetScheduleToCloseTimeoutSeconds()
Returns true if field scheduleToCloseTimeoutSeconds is set (has been assigned a value) and false otherwiseboolean
isSetStartedTimestamp()
Returns true if field startedTimestamp is set (has been assigned a value) and false otherwiseboolean
isSetStartToCloseTimeoutSeconds()
Returns true if field startToCloseTimeoutSeconds is set (has been assigned a value) and false otherwiseboolean
isSetTaskToken()
Returns true if field taskToken is set (has been assigned a value) and false otherwiseboolean
isSetWorkflowDomain()
Returns true if field workflowDomain is set (has been assigned a value) and false otherwiseboolean
isSetWorkflowExecution()
Returns true if field workflowExecution is set (has been assigned a value) and false otherwiseboolean
isSetWorkflowType()
Returns true if field workflowType is set (has been assigned a value) and false otherwisevoid
read(org.apache.thrift.protocol.TProtocol iprot)
PollForActivityTaskResponse
setActivityId(java.lang.String activityId)
void
setActivityIdIsSet(boolean value)
PollForActivityTaskResponse
setActivityType(ActivityType activityType)
void
setActivityTypeIsSet(boolean value)
PollForActivityTaskResponse
setAttempt(int attempt)
void
setAttemptIsSet(boolean value)
void
setFieldValue(PollForActivityTaskResponse._Fields field, java.lang.Object value)
PollForActivityTaskResponse
setHeader(Header header)
void
setHeaderIsSet(boolean value)
PollForActivityTaskResponse
setHeartbeatDetails(byte[] heartbeatDetails)
PollForActivityTaskResponse
setHeartbeatDetails(java.nio.ByteBuffer heartbeatDetails)
void
setHeartbeatDetailsIsSet(boolean value)
PollForActivityTaskResponse
setHeartbeatTimeoutSeconds(int heartbeatTimeoutSeconds)
void
setHeartbeatTimeoutSecondsIsSet(boolean value)
PollForActivityTaskResponse
setInput(byte[] input)
PollForActivityTaskResponse
setInput(java.nio.ByteBuffer input)
void
setInputIsSet(boolean value)
PollForActivityTaskResponse
setScheduledTimestamp(long scheduledTimestamp)
void
setScheduledTimestampIsSet(boolean value)
PollForActivityTaskResponse
setScheduledTimestampOfThisAttempt(long scheduledTimestampOfThisAttempt)
void
setScheduledTimestampOfThisAttemptIsSet(boolean value)
PollForActivityTaskResponse
setScheduleToCloseTimeoutSeconds(int scheduleToCloseTimeoutSeconds)
void
setScheduleToCloseTimeoutSecondsIsSet(boolean value)
PollForActivityTaskResponse
setStartedTimestamp(long startedTimestamp)
void
setStartedTimestampIsSet(boolean value)
PollForActivityTaskResponse
setStartToCloseTimeoutSeconds(int startToCloseTimeoutSeconds)
void
setStartToCloseTimeoutSecondsIsSet(boolean value)
PollForActivityTaskResponse
setTaskToken(byte[] taskToken)
PollForActivityTaskResponse
setTaskToken(java.nio.ByteBuffer taskToken)
void
setTaskTokenIsSet(boolean value)
PollForActivityTaskResponse
setWorkflowDomain(java.lang.String workflowDomain)
void
setWorkflowDomainIsSet(boolean value)
PollForActivityTaskResponse
setWorkflowExecution(WorkflowExecution workflowExecution)
void
setWorkflowExecutionIsSet(boolean value)
PollForActivityTaskResponse
setWorkflowType(WorkflowType workflowType)
void
setWorkflowTypeIsSet(boolean value)
java.lang.String
toString()
void
unsetActivityId()
void
unsetActivityType()
void
unsetAttempt()
void
unsetHeader()
void
unsetHeartbeatDetails()
void
unsetHeartbeatTimeoutSeconds()
void
unsetInput()
void
unsetScheduledTimestamp()
void
unsetScheduledTimestampOfThisAttempt()
void
unsetScheduleToCloseTimeoutSeconds()
void
unsetStartedTimestamp()
void
unsetStartToCloseTimeoutSeconds()
void
unsetTaskToken()
void
unsetWorkflowDomain()
void
unsetWorkflowExecution()
void
unsetWorkflowType()
void
validate()
void
write(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
taskToken
public java.nio.ByteBuffer taskToken
-
workflowExecution
public WorkflowExecution workflowExecution
-
activityId
public java.lang.String activityId
-
activityType
public ActivityType activityType
-
input
public java.nio.ByteBuffer input
-
scheduledTimestamp
public long scheduledTimestamp
-
scheduleToCloseTimeoutSeconds
public int scheduleToCloseTimeoutSeconds
-
startedTimestamp
public long startedTimestamp
-
startToCloseTimeoutSeconds
public int startToCloseTimeoutSeconds
-
heartbeatTimeoutSeconds
public int heartbeatTimeoutSeconds
-
attempt
public int attempt
-
scheduledTimestampOfThisAttempt
public long scheduledTimestampOfThisAttempt
-
heartbeatDetails
public java.nio.ByteBuffer heartbeatDetails
-
workflowType
public WorkflowType workflowType
-
workflowDomain
public java.lang.String workflowDomain
-
header
public Header header
-
metaDataMap
public static final java.util.Map<PollForActivityTaskResponse._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
PollForActivityTaskResponse
public PollForActivityTaskResponse()
-
PollForActivityTaskResponse
public PollForActivityTaskResponse(PollForActivityTaskResponse other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public PollForActivityTaskResponse deepCopy()
- Specified by:
deepCopy
in interfaceorg.apache.thrift.TBase<PollForActivityTaskResponse,PollForActivityTaskResponse._Fields>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.apache.thrift.TBase<PollForActivityTaskResponse,PollForActivityTaskResponse._Fields>
-
getTaskToken
public byte[] getTaskToken()
-
bufferForTaskToken
public java.nio.ByteBuffer bufferForTaskToken()
-
setTaskToken
public PollForActivityTaskResponse setTaskToken(byte[] taskToken)
-
setTaskToken
public PollForActivityTaskResponse setTaskToken(java.nio.ByteBuffer taskToken)
-
unsetTaskToken
public void unsetTaskToken()
-
isSetTaskToken
public boolean isSetTaskToken()
Returns true if field taskToken is set (has been assigned a value) and false otherwise
-
setTaskTokenIsSet
public void setTaskTokenIsSet(boolean value)
-
getWorkflowExecution
public WorkflowExecution getWorkflowExecution()
-
setWorkflowExecution
public PollForActivityTaskResponse setWorkflowExecution(WorkflowExecution workflowExecution)
-
unsetWorkflowExecution
public void unsetWorkflowExecution()
-
isSetWorkflowExecution
public boolean isSetWorkflowExecution()
Returns true if field workflowExecution is set (has been assigned a value) and false otherwise
-
setWorkflowExecutionIsSet
public void setWorkflowExecutionIsSet(boolean value)
-
getActivityId
public java.lang.String getActivityId()
-
setActivityId
public PollForActivityTaskResponse setActivityId(java.lang.String activityId)
-
unsetActivityId
public void unsetActivityId()
-
isSetActivityId
public boolean isSetActivityId()
Returns true if field activityId is set (has been assigned a value) and false otherwise
-
setActivityIdIsSet
public void setActivityIdIsSet(boolean value)
-
getActivityType
public ActivityType getActivityType()
-
setActivityType
public PollForActivityTaskResponse setActivityType(ActivityType activityType)
-
unsetActivityType
public void unsetActivityType()
-
isSetActivityType
public boolean isSetActivityType()
Returns true if field activityType is set (has been assigned a value) and false otherwise
-
setActivityTypeIsSet
public void setActivityTypeIsSet(boolean value)
-
getInput
public byte[] getInput()
-
bufferForInput
public java.nio.ByteBuffer bufferForInput()
-
setInput
public PollForActivityTaskResponse setInput(byte[] input)
-
setInput
public PollForActivityTaskResponse setInput(java.nio.ByteBuffer input)
-
unsetInput
public void unsetInput()
-
isSetInput
public boolean isSetInput()
Returns true if field input is set (has been assigned a value) and false otherwise
-
setInputIsSet
public void setInputIsSet(boolean value)
-
getScheduledTimestamp
public long getScheduledTimestamp()
-
setScheduledTimestamp
public PollForActivityTaskResponse setScheduledTimestamp(long scheduledTimestamp)
-
unsetScheduledTimestamp
public void unsetScheduledTimestamp()
-
isSetScheduledTimestamp
public boolean isSetScheduledTimestamp()
Returns true if field scheduledTimestamp is set (has been assigned a value) and false otherwise
-
setScheduledTimestampIsSet
public void setScheduledTimestampIsSet(boolean value)
-
getScheduleToCloseTimeoutSeconds
public int getScheduleToCloseTimeoutSeconds()
-
setScheduleToCloseTimeoutSeconds
public PollForActivityTaskResponse setScheduleToCloseTimeoutSeconds(int scheduleToCloseTimeoutSeconds)
-
unsetScheduleToCloseTimeoutSeconds
public void unsetScheduleToCloseTimeoutSeconds()
-
isSetScheduleToCloseTimeoutSeconds
public boolean isSetScheduleToCloseTimeoutSeconds()
Returns true if field scheduleToCloseTimeoutSeconds is set (has been assigned a value) and false otherwise
-
setScheduleToCloseTimeoutSecondsIsSet
public void setScheduleToCloseTimeoutSecondsIsSet(boolean value)
-
getStartedTimestamp
public long getStartedTimestamp()
-
setStartedTimestamp
public PollForActivityTaskResponse setStartedTimestamp(long startedTimestamp)
-
unsetStartedTimestamp
public void unsetStartedTimestamp()
-
isSetStartedTimestamp
public boolean isSetStartedTimestamp()
Returns true if field startedTimestamp is set (has been assigned a value) and false otherwise
-
setStartedTimestampIsSet
public void setStartedTimestampIsSet(boolean value)
-
getStartToCloseTimeoutSeconds
public int getStartToCloseTimeoutSeconds()
-
setStartToCloseTimeoutSeconds
public PollForActivityTaskResponse setStartToCloseTimeoutSeconds(int startToCloseTimeoutSeconds)
-
unsetStartToCloseTimeoutSeconds
public void unsetStartToCloseTimeoutSeconds()
-
isSetStartToCloseTimeoutSeconds
public boolean isSetStartToCloseTimeoutSeconds()
Returns true if field startToCloseTimeoutSeconds is set (has been assigned a value) and false otherwise
-
setStartToCloseTimeoutSecondsIsSet
public void setStartToCloseTimeoutSecondsIsSet(boolean value)
-
getHeartbeatTimeoutSeconds
public int getHeartbeatTimeoutSeconds()
-
setHeartbeatTimeoutSeconds
public PollForActivityTaskResponse setHeartbeatTimeoutSeconds(int heartbeatTimeoutSeconds)
-
unsetHeartbeatTimeoutSeconds
public void unsetHeartbeatTimeoutSeconds()
-
isSetHeartbeatTimeoutSeconds
public boolean isSetHeartbeatTimeoutSeconds()
Returns true if field heartbeatTimeoutSeconds is set (has been assigned a value) and false otherwise
-
setHeartbeatTimeoutSecondsIsSet
public void setHeartbeatTimeoutSecondsIsSet(boolean value)
-
getAttempt
public int getAttempt()
-
setAttempt
public PollForActivityTaskResponse setAttempt(int attempt)
-
unsetAttempt
public void unsetAttempt()
-
isSetAttempt
public boolean isSetAttempt()
Returns true if field attempt is set (has been assigned a value) and false otherwise
-
setAttemptIsSet
public void setAttemptIsSet(boolean value)
-
getScheduledTimestampOfThisAttempt
public long getScheduledTimestampOfThisAttempt()
-
setScheduledTimestampOfThisAttempt
public PollForActivityTaskResponse setScheduledTimestampOfThisAttempt(long scheduledTimestampOfThisAttempt)
-
unsetScheduledTimestampOfThisAttempt
public void unsetScheduledTimestampOfThisAttempt()
-
isSetScheduledTimestampOfThisAttempt
public boolean isSetScheduledTimestampOfThisAttempt()
Returns true if field scheduledTimestampOfThisAttempt is set (has been assigned a value) and false otherwise
-
setScheduledTimestampOfThisAttemptIsSet
public void setScheduledTimestampOfThisAttemptIsSet(boolean value)
-
getHeartbeatDetails
public byte[] getHeartbeatDetails()
-
bufferForHeartbeatDetails
public java.nio.ByteBuffer bufferForHeartbeatDetails()
-
setHeartbeatDetails
public PollForActivityTaskResponse setHeartbeatDetails(byte[] heartbeatDetails)
-
setHeartbeatDetails
public PollForActivityTaskResponse setHeartbeatDetails(java.nio.ByteBuffer heartbeatDetails)
-
unsetHeartbeatDetails
public void unsetHeartbeatDetails()
-
isSetHeartbeatDetails
public boolean isSetHeartbeatDetails()
Returns true if field heartbeatDetails is set (has been assigned a value) and false otherwise
-
setHeartbeatDetailsIsSet
public void setHeartbeatDetailsIsSet(boolean value)
-
getWorkflowType
public WorkflowType getWorkflowType()
-
setWorkflowType
public PollForActivityTaskResponse setWorkflowType(WorkflowType workflowType)
-
unsetWorkflowType
public void unsetWorkflowType()
-
isSetWorkflowType
public boolean isSetWorkflowType()
Returns true if field workflowType is set (has been assigned a value) and false otherwise
-
setWorkflowTypeIsSet
public void setWorkflowTypeIsSet(boolean value)
-
getWorkflowDomain
public java.lang.String getWorkflowDomain()
-
setWorkflowDomain
public PollForActivityTaskResponse setWorkflowDomain(java.lang.String workflowDomain)
-
unsetWorkflowDomain
public void unsetWorkflowDomain()
-
isSetWorkflowDomain
public boolean isSetWorkflowDomain()
Returns true if field workflowDomain is set (has been assigned a value) and false otherwise
-
setWorkflowDomainIsSet
public void setWorkflowDomainIsSet(boolean value)
-
getHeader
public Header getHeader()
-
setHeader
public PollForActivityTaskResponse setHeader(Header header)
-
unsetHeader
public void unsetHeader()
-
isSetHeader
public boolean isSetHeader()
Returns true if field header is set (has been assigned a value) and false otherwise
-
setHeaderIsSet
public void setHeaderIsSet(boolean value)
-
setFieldValue
public void setFieldValue(PollForActivityTaskResponse._Fields field, java.lang.Object value)
- Specified by:
setFieldValue
in interfaceorg.apache.thrift.TBase<PollForActivityTaskResponse,PollForActivityTaskResponse._Fields>
-
getFieldValue
public java.lang.Object getFieldValue(PollForActivityTaskResponse._Fields field)
- Specified by:
getFieldValue
in interfaceorg.apache.thrift.TBase<PollForActivityTaskResponse,PollForActivityTaskResponse._Fields>
-
isSet
public boolean isSet(PollForActivityTaskResponse._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSet
in interfaceorg.apache.thrift.TBase<PollForActivityTaskResponse,PollForActivityTaskResponse._Fields>
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in classjava.lang.Object
-
equals
public boolean equals(PollForActivityTaskResponse that)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(PollForActivityTaskResponse other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<PollForActivityTaskResponse>
-
fieldForId
public PollForActivityTaskResponse._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.apache.thrift.TBase<PollForActivityTaskResponse,PollForActivityTaskResponse._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
- Specified by:
read
in interfaceorg.apache.thrift.TBase<PollForActivityTaskResponse,PollForActivityTaskResponse._Fields>
- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
- Specified by:
write
in interfaceorg.apache.thrift.TBase<PollForActivityTaskResponse,PollForActivityTaskResponse._Fields>
- Throws:
org.apache.thrift.TException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-