Enum Class TaskState

java.lang.Object
java.lang.Enum<TaskState>
org.a2aproject.sdk.compat03.grpc.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
  • Enum Constant Details

    • TASK_STATE_UNSPECIFIED

      public static final TaskState TASK_STATE_UNSPECIFIED
      TASK_STATE_UNSPECIFIED = 0;
    • TASK_STATE_SUBMITTED

      public static final TaskState TASK_STATE_SUBMITTED
       Represents the status that acknowledges a task is created
       
      TASK_STATE_SUBMITTED = 1;
    • TASK_STATE_WORKING

      public static final TaskState TASK_STATE_WORKING
       Represents the status that a task is actively being processed
       
      TASK_STATE_WORKING = 2;
    • TASK_STATE_COMPLETED

      public static final TaskState TASK_STATE_COMPLETED
       Represents the status a task is finished. This is a terminal state
       
      TASK_STATE_COMPLETED = 3;
    • TASK_STATE_FAILED

      public static final TaskState TASK_STATE_FAILED
       Represents the status a task is done but failed. This is a terminal state
       
      TASK_STATE_FAILED = 4;
    • TASK_STATE_CANCELLED

      public static final TaskState 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

      public static final TaskState 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

      public static final TaskState 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

      public static final TaskState 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

      public static final TaskState UNRECOGNIZED
  • Field Details

    • TASK_STATE_UNSPECIFIED_VALUE

      public static final int TASK_STATE_UNSPECIFIED_VALUE
      TASK_STATE_UNSPECIFIED = 0;
      See Also:
    • TASK_STATE_SUBMITTED_VALUE

      public static final int TASK_STATE_SUBMITTED_VALUE
       Represents 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_VALUE
       Represents 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_VALUE
       Represents 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_VALUE
       Represents 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_VALUE
       Represents 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_VALUE
       Represents 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_VALUE
       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;
      See Also:
    • TASK_STATE_AUTH_REQUIRED_VALUE

      public static final int TASK_STATE_AUTH_REQUIRED_VALUE
       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;
      See Also:
  • Method Details

    • values

      public static TaskState[] 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

      public static TaskState valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static TaskState valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static TaskState forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<TaskState> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static TaskState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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 name
      NullPointerException - if the argument is null