Package org.a2aproject.sdk.grpc
Enum Class TaskState
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<TaskState>,Constable
@Generated
public enum TaskState
extends Enum<TaskState>
implements com.google.protobuf.ProtocolMessageEnum
Defines the possible lifecycle states of a `Task`.Protobuf enum
lf.a2a.v1.TaskState-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that authentication is required to proceed.Indicates that a task was canceled before completion.Indicates that a task has finished successfully.Indicates that a task has finished with an error.Indicates that the agent requires additional user input to proceed.Indicates that the agent has decided to not perform the task.Indicates that a task has been successfully submitted and acknowledged.The task is in an unknown or indeterminate state.Indicates that a task is actively being processed by the agent. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates that authentication is required to proceed.static final intIndicates that a task was canceled before completion.static final intIndicates that a task has finished successfully.static final intIndicates that a task has finished with an error.static final intIndicates that the agent requires additional user input to proceed.static final intIndicates that the agent has decided to not perform the task.static final intIndicates that a task has been successfully submitted and acknowledged.static final intThe task is in an unknown or indeterminate state.static final intIndicates that a task is actively being processed by the agent. -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskStateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<TaskState>static TaskStatevalueOf(int value) Deprecated.static TaskStatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static TaskStateReturns the enum constant of this class with the specified name.static TaskState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TASK_STATE_UNSPECIFIED
The task is in an unknown or indeterminate state.
TASK_STATE_UNSPECIFIED = 0; -
TASK_STATE_SUBMITTED
Indicates that a task has been successfully submitted and acknowledged.
TASK_STATE_SUBMITTED = 1; -
TASK_STATE_WORKING
Indicates that a task is actively being processed by the agent.
TASK_STATE_WORKING = 2; -
TASK_STATE_COMPLETED
Indicates that a task has finished successfully. This is a terminal state.
TASK_STATE_COMPLETED = 3; -
TASK_STATE_FAILED
Indicates that a task has finished with an error. This is a terminal state.
TASK_STATE_FAILED = 4; -
TASK_STATE_CANCELED
Indicates that a task was canceled before completion. This is a terminal state.
TASK_STATE_CANCELED = 5; -
TASK_STATE_INPUT_REQUIRED
Indicates that the agent requires additional user input to proceed. This is an interrupted state.
TASK_STATE_INPUT_REQUIRED = 6; -
TASK_STATE_REJECTED
Indicates that the agent has decided to not perform the task. This may be done during initial task creation or later once an agent has determined it can't or won't proceed. This is a terminal state.
TASK_STATE_REJECTED = 7; -
TASK_STATE_AUTH_REQUIRED
Indicates that authentication is required to proceed. This is an interrupted state.
TASK_STATE_AUTH_REQUIRED = 8; -
UNRECOGNIZED
-
-
Field Details
-
TASK_STATE_UNSPECIFIED_VALUE
public static final int TASK_STATE_UNSPECIFIED_VALUEThe task is in an unknown or indeterminate state.
TASK_STATE_UNSPECIFIED = 0;- See Also:
-
TASK_STATE_SUBMITTED_VALUE
public static final int TASK_STATE_SUBMITTED_VALUEIndicates that a task has been successfully submitted and acknowledged.
TASK_STATE_SUBMITTED = 1;- See Also:
-
TASK_STATE_WORKING_VALUE
public static final int TASK_STATE_WORKING_VALUEIndicates that a task is actively being processed by the agent.
TASK_STATE_WORKING = 2;- See Also:
-
TASK_STATE_COMPLETED_VALUE
public static final int TASK_STATE_COMPLETED_VALUEIndicates that a task has finished successfully. This is a terminal state.
TASK_STATE_COMPLETED = 3;- See Also:
-
TASK_STATE_FAILED_VALUE
public static final int TASK_STATE_FAILED_VALUEIndicates that a task has finished with an error. This is a terminal state.
TASK_STATE_FAILED = 4;- See Also:
-
TASK_STATE_CANCELED_VALUE
public static final int TASK_STATE_CANCELED_VALUEIndicates that a task was canceled before completion. This is a terminal state.
TASK_STATE_CANCELED = 5;- See Also:
-
TASK_STATE_INPUT_REQUIRED_VALUE
public static final int TASK_STATE_INPUT_REQUIRED_VALUEIndicates that the agent requires additional user input to proceed. This is an interrupted state.
TASK_STATE_INPUT_REQUIRED = 6;- See Also:
-
TASK_STATE_REJECTED_VALUE
public static final int TASK_STATE_REJECTED_VALUEIndicates that the agent has decided to not perform the task. This may be done during initial task creation or later once an agent has determined it can't or won't proceed. This is a terminal state.
TASK_STATE_REJECTED = 7;- See Also:
-
TASK_STATE_AUTH_REQUIRED_VALUE
public static final int TASK_STATE_AUTH_REQUIRED_VALUEIndicates that authentication is required to proceed. This is an interrupted state.
TASK_STATE_AUTH_REQUIRED = 8;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-