Package com.uber.cadence
Class PollForDecisionTaskResponse
- java.lang.Object
-
- com.uber.cadence.PollForDecisionTaskResponse
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable<PollForDecisionTaskResponse>
,org.apache.thrift.TBase<PollForDecisionTaskResponse,PollForDecisionTaskResponse._Fields>
@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2023-05-19") public class PollForDecisionTaskResponse extends java.lang.Object implements org.apache.thrift.TBase<PollForDecisionTaskResponse,PollForDecisionTaskResponse._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<PollForDecisionTaskResponse>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PollForDecisionTaskResponse._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 long
attempt
long
backlogCountHint
History
history
static java.util.Map<PollForDecisionTaskResponse._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
long
nextEventId
java.nio.ByteBuffer
nextPageToken
long
previousStartedEventId
java.util.Map<java.lang.String,WorkflowQuery>
queries
WorkflowQuery
query
long
scheduledTimestamp
long
startedEventId
long
startedTimestamp
java.nio.ByteBuffer
taskToken
WorkflowExecution
workflowExecution
TaskList
WorkflowExecutionTaskList
WorkflowType
workflowType
-
Constructor Summary
Constructors Constructor Description PollForDecisionTaskResponse()
PollForDecisionTaskResponse(PollForDecisionTaskResponse other)
Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
bufferForNextPageToken()
java.nio.ByteBuffer
bufferForTaskToken()
void
clear()
int
compareTo(PollForDecisionTaskResponse other)
PollForDecisionTaskResponse
deepCopy()
boolean
equals(PollForDecisionTaskResponse that)
boolean
equals(java.lang.Object that)
PollForDecisionTaskResponse._Fields
fieldForId(int fieldId)
long
getAttempt()
long
getBacklogCountHint()
java.lang.Object
getFieldValue(PollForDecisionTaskResponse._Fields field)
History
getHistory()
long
getNextEventId()
byte[]
getNextPageToken()
long
getPreviousStartedEventId()
java.util.Map<java.lang.String,WorkflowQuery>
getQueries()
int
getQueriesSize()
WorkflowQuery
getQuery()
long
getScheduledTimestamp()
long
getStartedEventId()
long
getStartedTimestamp()
byte[]
getTaskToken()
WorkflowExecution
getWorkflowExecution()
TaskList
getWorkflowExecutionTaskList()
WorkflowType
getWorkflowType()
int
hashCode()
boolean
isSet(PollForDecisionTaskResponse._Fields field)
Returns true if field corresponding to fieldID 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
isSetBacklogCountHint()
Returns true if field backlogCountHint is set (has been assigned a value) and false otherwiseboolean
isSetHistory()
Returns true if field history is set (has been assigned a value) and false otherwiseboolean
isSetNextEventId()
Returns true if field nextEventId is set (has been assigned a value) and false otherwiseboolean
isSetNextPageToken()
Returns true if field nextPageToken is set (has been assigned a value) and false otherwiseboolean
isSetPreviousStartedEventId()
Returns true if field previousStartedEventId is set (has been assigned a value) and false otherwiseboolean
isSetQueries()
Returns true if field queries is set (has been assigned a value) and false otherwiseboolean
isSetQuery()
Returns true if field query 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
isSetStartedEventId()
Returns true if field startedEventId 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
isSetTaskToken()
Returns true if field taskToken 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
isSetWorkflowExecutionTaskList()
Returns true if field WorkflowExecutionTaskList 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
putToQueries(java.lang.String key, WorkflowQuery val)
void
read(org.apache.thrift.protocol.TProtocol iprot)
PollForDecisionTaskResponse
setAttempt(long attempt)
void
setAttemptIsSet(boolean value)
PollForDecisionTaskResponse
setBacklogCountHint(long backlogCountHint)
void
setBacklogCountHintIsSet(boolean value)
void
setFieldValue(PollForDecisionTaskResponse._Fields field, java.lang.Object value)
PollForDecisionTaskResponse
setHistory(History history)
void
setHistoryIsSet(boolean value)
PollForDecisionTaskResponse
setNextEventId(long nextEventId)
void
setNextEventIdIsSet(boolean value)
PollForDecisionTaskResponse
setNextPageToken(byte[] nextPageToken)
PollForDecisionTaskResponse
setNextPageToken(java.nio.ByteBuffer nextPageToken)
void
setNextPageTokenIsSet(boolean value)
PollForDecisionTaskResponse
setPreviousStartedEventId(long previousStartedEventId)
void
setPreviousStartedEventIdIsSet(boolean value)
PollForDecisionTaskResponse
setQueries(java.util.Map<java.lang.String,WorkflowQuery> queries)
void
setQueriesIsSet(boolean value)
PollForDecisionTaskResponse
setQuery(WorkflowQuery query)
void
setQueryIsSet(boolean value)
PollForDecisionTaskResponse
setScheduledTimestamp(long scheduledTimestamp)
void
setScheduledTimestampIsSet(boolean value)
PollForDecisionTaskResponse
setStartedEventId(long startedEventId)
void
setStartedEventIdIsSet(boolean value)
PollForDecisionTaskResponse
setStartedTimestamp(long startedTimestamp)
void
setStartedTimestampIsSet(boolean value)
PollForDecisionTaskResponse
setTaskToken(byte[] taskToken)
PollForDecisionTaskResponse
setTaskToken(java.nio.ByteBuffer taskToken)
void
setTaskTokenIsSet(boolean value)
PollForDecisionTaskResponse
setWorkflowExecution(WorkflowExecution workflowExecution)
void
setWorkflowExecutionIsSet(boolean value)
PollForDecisionTaskResponse
setWorkflowExecutionTaskList(TaskList WorkflowExecutionTaskList)
void
setWorkflowExecutionTaskListIsSet(boolean value)
PollForDecisionTaskResponse
setWorkflowType(WorkflowType workflowType)
void
setWorkflowTypeIsSet(boolean value)
java.lang.String
toString()
void
unsetAttempt()
void
unsetBacklogCountHint()
void
unsetHistory()
void
unsetNextEventId()
void
unsetNextPageToken()
void
unsetPreviousStartedEventId()
void
unsetQueries()
void
unsetQuery()
void
unsetScheduledTimestamp()
void
unsetStartedEventId()
void
unsetStartedTimestamp()
void
unsetTaskToken()
void
unsetWorkflowExecution()
void
unsetWorkflowExecutionTaskList()
void
unsetWorkflowType()
void
validate()
void
write(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
taskToken
public java.nio.ByteBuffer taskToken
-
workflowExecution
public WorkflowExecution workflowExecution
-
workflowType
public WorkflowType workflowType
-
previousStartedEventId
public long previousStartedEventId
-
startedEventId
public long startedEventId
-
attempt
public long attempt
-
backlogCountHint
public long backlogCountHint
-
history
public History history
-
nextPageToken
public java.nio.ByteBuffer nextPageToken
-
query
public WorkflowQuery query
-
WorkflowExecutionTaskList
public TaskList WorkflowExecutionTaskList
-
scheduledTimestamp
public long scheduledTimestamp
-
startedTimestamp
public long startedTimestamp
-
queries
public java.util.Map<java.lang.String,WorkflowQuery> queries
-
nextEventId
public long nextEventId
-
metaDataMap
public static final java.util.Map<PollForDecisionTaskResponse._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
PollForDecisionTaskResponse
public PollForDecisionTaskResponse()
-
PollForDecisionTaskResponse
public PollForDecisionTaskResponse(PollForDecisionTaskResponse other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public PollForDecisionTaskResponse deepCopy()
- Specified by:
deepCopy
in interfaceorg.apache.thrift.TBase<PollForDecisionTaskResponse,PollForDecisionTaskResponse._Fields>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.apache.thrift.TBase<PollForDecisionTaskResponse,PollForDecisionTaskResponse._Fields>
-
getTaskToken
public byte[] getTaskToken()
-
bufferForTaskToken
public java.nio.ByteBuffer bufferForTaskToken()
-
setTaskToken
public PollForDecisionTaskResponse setTaskToken(byte[] taskToken)
-
setTaskToken
public PollForDecisionTaskResponse 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 PollForDecisionTaskResponse 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)
-
getWorkflowType
public WorkflowType getWorkflowType()
-
setWorkflowType
public PollForDecisionTaskResponse 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)
-
getPreviousStartedEventId
public long getPreviousStartedEventId()
-
setPreviousStartedEventId
public PollForDecisionTaskResponse setPreviousStartedEventId(long previousStartedEventId)
-
unsetPreviousStartedEventId
public void unsetPreviousStartedEventId()
-
isSetPreviousStartedEventId
public boolean isSetPreviousStartedEventId()
Returns true if field previousStartedEventId is set (has been assigned a value) and false otherwise
-
setPreviousStartedEventIdIsSet
public void setPreviousStartedEventIdIsSet(boolean value)
-
getStartedEventId
public long getStartedEventId()
-
setStartedEventId
public PollForDecisionTaskResponse setStartedEventId(long startedEventId)
-
unsetStartedEventId
public void unsetStartedEventId()
-
isSetStartedEventId
public boolean isSetStartedEventId()
Returns true if field startedEventId is set (has been assigned a value) and false otherwise
-
setStartedEventIdIsSet
public void setStartedEventIdIsSet(boolean value)
-
getAttempt
public long getAttempt()
-
setAttempt
public PollForDecisionTaskResponse setAttempt(long 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)
-
getBacklogCountHint
public long getBacklogCountHint()
-
setBacklogCountHint
public PollForDecisionTaskResponse setBacklogCountHint(long backlogCountHint)
-
unsetBacklogCountHint
public void unsetBacklogCountHint()
-
isSetBacklogCountHint
public boolean isSetBacklogCountHint()
Returns true if field backlogCountHint is set (has been assigned a value) and false otherwise
-
setBacklogCountHintIsSet
public void setBacklogCountHintIsSet(boolean value)
-
getHistory
public History getHistory()
-
setHistory
public PollForDecisionTaskResponse setHistory(History history)
-
unsetHistory
public void unsetHistory()
-
isSetHistory
public boolean isSetHistory()
Returns true if field history is set (has been assigned a value) and false otherwise
-
setHistoryIsSet
public void setHistoryIsSet(boolean value)
-
getNextPageToken
public byte[] getNextPageToken()
-
bufferForNextPageToken
public java.nio.ByteBuffer bufferForNextPageToken()
-
setNextPageToken
public PollForDecisionTaskResponse setNextPageToken(byte[] nextPageToken)
-
setNextPageToken
public PollForDecisionTaskResponse setNextPageToken(java.nio.ByteBuffer nextPageToken)
-
unsetNextPageToken
public void unsetNextPageToken()
-
isSetNextPageToken
public boolean isSetNextPageToken()
Returns true if field nextPageToken is set (has been assigned a value) and false otherwise
-
setNextPageTokenIsSet
public void setNextPageTokenIsSet(boolean value)
-
getQuery
public WorkflowQuery getQuery()
-
setQuery
public PollForDecisionTaskResponse setQuery(WorkflowQuery query)
-
unsetQuery
public void unsetQuery()
-
isSetQuery
public boolean isSetQuery()
Returns true if field query is set (has been assigned a value) and false otherwise
-
setQueryIsSet
public void setQueryIsSet(boolean value)
-
getWorkflowExecutionTaskList
public TaskList getWorkflowExecutionTaskList()
-
setWorkflowExecutionTaskList
public PollForDecisionTaskResponse setWorkflowExecutionTaskList(TaskList WorkflowExecutionTaskList)
-
unsetWorkflowExecutionTaskList
public void unsetWorkflowExecutionTaskList()
-
isSetWorkflowExecutionTaskList
public boolean isSetWorkflowExecutionTaskList()
Returns true if field WorkflowExecutionTaskList is set (has been assigned a value) and false otherwise
-
setWorkflowExecutionTaskListIsSet
public void setWorkflowExecutionTaskListIsSet(boolean value)
-
getScheduledTimestamp
public long getScheduledTimestamp()
-
setScheduledTimestamp
public PollForDecisionTaskResponse 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)
-
getStartedTimestamp
public long getStartedTimestamp()
-
setStartedTimestamp
public PollForDecisionTaskResponse 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)
-
getQueriesSize
public int getQueriesSize()
-
putToQueries
public void putToQueries(java.lang.String key, WorkflowQuery val)
-
getQueries
public java.util.Map<java.lang.String,WorkflowQuery> getQueries()
-
setQueries
public PollForDecisionTaskResponse setQueries(java.util.Map<java.lang.String,WorkflowQuery> queries)
-
unsetQueries
public void unsetQueries()
-
isSetQueries
public boolean isSetQueries()
Returns true if field queries is set (has been assigned a value) and false otherwise
-
setQueriesIsSet
public void setQueriesIsSet(boolean value)
-
getNextEventId
public long getNextEventId()
-
setNextEventId
public PollForDecisionTaskResponse setNextEventId(long nextEventId)
-
unsetNextEventId
public void unsetNextEventId()
-
isSetNextEventId
public boolean isSetNextEventId()
Returns true if field nextEventId is set (has been assigned a value) and false otherwise
-
setNextEventIdIsSet
public void setNextEventIdIsSet(boolean value)
-
setFieldValue
public void setFieldValue(PollForDecisionTaskResponse._Fields field, java.lang.Object value)
- Specified by:
setFieldValue
in interfaceorg.apache.thrift.TBase<PollForDecisionTaskResponse,PollForDecisionTaskResponse._Fields>
-
getFieldValue
public java.lang.Object getFieldValue(PollForDecisionTaskResponse._Fields field)
- Specified by:
getFieldValue
in interfaceorg.apache.thrift.TBase<PollForDecisionTaskResponse,PollForDecisionTaskResponse._Fields>
-
isSet
public boolean isSet(PollForDecisionTaskResponse._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<PollForDecisionTaskResponse,PollForDecisionTaskResponse._Fields>
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in classjava.lang.Object
-
equals
public boolean equals(PollForDecisionTaskResponse that)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(PollForDecisionTaskResponse other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<PollForDecisionTaskResponse>
-
fieldForId
public PollForDecisionTaskResponse._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.apache.thrift.TBase<PollForDecisionTaskResponse,PollForDecisionTaskResponse._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
- Specified by:
read
in interfaceorg.apache.thrift.TBase<PollForDecisionTaskResponse,PollForDecisionTaskResponse._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<PollForDecisionTaskResponse,PollForDecisionTaskResponse._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
-
-