Package ai.reveng.model
Class WorkflowProgress
java.lang.Object
ai.reveng.model.WorkflowProgress
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class WorkflowProgress
extends Object
WorkflowProgress
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumCurrent workflow status -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMessagesItem(ProgressMessage messagesItem) booleanstatic WorkflowProgressCreate an instance of WorkflowProgress given an JSON stringLog messages emitted during executionCurrent workflow statusgetStep()Name of the current stepZero-based index of the current stepTotal number of steps in the workflowinthashCode()messages(List<ProgressMessage> messages) voidsetMessages(List<ProgressMessage> messages) voidsetStatus(WorkflowProgress.StatusEnum status) voidvoidsetStepIndex(Long stepIndex) voidsetStepsTotal(Long stepsTotal) status(WorkflowProgress.StatusEnum status) stepsTotal(Long stepsTotal) toJson()Convert an instance of WorkflowProgress to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_MESSAGES
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_STEP
- See Also:
-
SERIALIZED_NAME_STEP_INDEX
- See Also:
-
SERIALIZED_NAME_STEPS_TOTAL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
WorkflowProgress
public WorkflowProgress()
-
-
Method Details
-
messages
-
addMessagesItem
-
getMessages
Log messages emitted during execution- Returns:
- messages
-
setMessages
-
status
-
getStatus
Current workflow status- Returns:
- status
-
setStatus
-
step
-
getStep
Name of the current step- Returns:
- step
-
setStep
-
stepIndex
-
getStepIndex
Zero-based index of the current step- Returns:
- stepIndex
-
setStepIndex
-
stepsTotal
-
getStepsTotal
Total number of steps in the workflow- Returns:
- stepsTotal
-
setStepsTotal
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to WorkflowProgress
-
fromJson
Create an instance of WorkflowProgress given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of WorkflowProgress
- Throws:
IOException- if the JSON string is invalid with respect to WorkflowProgress
-
toJson
Convert an instance of WorkflowProgress to an JSON string- Returns:
- JSON string
-