Package org.a2aproject.sdk.compat03.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
The set of states a Task can be in.Protobuf enum
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 ConstantDescriptionRepresents the state that some authentication is needed from the upstream client.Represents the status a task was cancelled before it finished.Represents the status a task is finished.Represents the status a task is done but failed.Represents the status that the task requires information to complete.Represents the status that the agent has decided to not perform the task.Represents the status that acknowledges a task is createdTASK_STATE_UNSPECIFIED = 0;Represents the status that a task is actively being processed -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intRepresents the state that some authentication is needed from the upstream client.static final intRepresents the status a task was cancelled before it finished.static final intRepresents the status a task is finished.static final intRepresents the status a task is done but failed.static final intRepresents the status that the task requires information to complete.static final intRepresents the status that the agent has decided to not perform the task.static final intRepresents the status that acknowledges a task is createdstatic final intTASK_STATE_UNSPECIFIED = 0;static final intRepresents the status that a task is actively being processed -
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
TASK_STATE_UNSPECIFIED = 0; -
TASK_STATE_SUBMITTED
Represents the status that acknowledges a task is created
TASK_STATE_SUBMITTED = 1; -
TASK_STATE_WORKING
Represents the status that a task is actively being processed
TASK_STATE_WORKING = 2; -
TASK_STATE_COMPLETED
Represents the status a task is finished. This is a terminal state
TASK_STATE_COMPLETED = 3; -
TASK_STATE_FAILED
Represents the status a task is done but failed. This is a terminal state
TASK_STATE_FAILED = 4; -
TASK_STATE_CANCELLED
Represents the status a task was cancelled before it finished. This is a terminal state.
TASK_STATE_CANCELLED = 5; -
TASK_STATE_INPUT_REQUIRED
Represents the status that the task requires information to complete. This is an interrupted state.
TASK_STATE_INPUT_REQUIRED = 6; -
TASK_STATE_REJECTED
Represents the status 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
Represents the state that some authentication is needed from the upstream client. Authentication is expected to come out-of-band thus this is not an interrupted or terminal state.
TASK_STATE_AUTH_REQUIRED = 8; -
UNRECOGNIZED
-
-
Field Details
-
TASK_STATE_UNSPECIFIED_VALUE
public static final int TASK_STATE_UNSPECIFIED_VALUETASK_STATE_UNSPECIFIED = 0;- See Also:
-
TASK_STATE_SUBMITTED_VALUE
public static final int TASK_STATE_SUBMITTED_VALUERepresents the status that acknowledges a task is created
TASK_STATE_SUBMITTED = 1;- See Also:
-
TASK_STATE_WORKING_VALUE
public static final int TASK_STATE_WORKING_VALUERepresents the status that a task is actively being processed
TASK_STATE_WORKING = 2;- See Also:
-
TASK_STATE_COMPLETED_VALUE
public static final int TASK_STATE_COMPLETED_VALUERepresents the status a task is finished. This is a terminal state
TASK_STATE_COMPLETED = 3;- See Also:
-
TASK_STATE_FAILED_VALUE
public static final int TASK_STATE_FAILED_VALUERepresents the status a task is done but failed. This is a terminal state
TASK_STATE_FAILED = 4;- See Also:
-
TASK_STATE_CANCELLED_VALUE
public static final int TASK_STATE_CANCELLED_VALUERepresents the status a task was cancelled before it finished. This is a terminal state.
TASK_STATE_CANCELLED = 5;- See Also:
-
TASK_STATE_INPUT_REQUIRED_VALUE
public static final int TASK_STATE_INPUT_REQUIRED_VALUERepresents the status that the task requires information to complete. This is an interrupted state.
TASK_STATE_INPUT_REQUIRED = 6;- See Also:
-
TASK_STATE_REJECTED_VALUE
public static final int TASK_STATE_REJECTED_VALUERepresents the status 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_VALUERepresents the state that some authentication is needed from the upstream client. Authentication is expected to come out-of-band thus this is not an interrupted or terminal 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
-