Class ListTasksRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.a2aproject.sdk.grpc.ListTasksRequest
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, ListTasksRequestOrBuilder

@Generated public final class ListTasksRequest extends com.google.protobuf.GeneratedMessage implements ListTasksRequestOrBuilder
 Parameters for listing tasks with optional filtering criteria.
 
Protobuf type lf.a2a.v1.ListTasksRequest
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Parameters for listing tasks with optional filtering criteria.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Filter tasks by context ID to get tasks from a specific conversation or session.
    com.google.protobuf.ByteString
    Filter tasks by context ID to get tasks from a specific conversation or session.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    int
    The maximum number of messages to include in each task's history.
    boolean
    Whether to include artifacts in the returned tasks.
    int
    The maximum number of tasks to return.
    A page token, received from a previous `ListTasks` call.
    com.google.protobuf.ByteString
    A page token, received from a previous `ListTasks` call.
    com.google.protobuf.Parser<ListTasksRequest>
     
    int
     
    Filter tasks by their current status state.
    com.google.protobuf.Timestamp
    Filter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., "2023-10-27T10:00:00Z").
    com.google.protobuf.TimestampOrBuilder
    Filter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., "2023-10-27T10:00:00Z").
    int
    Filter tasks by their current status state.
    Tenant ID, provided as a path parameter.
    com.google.protobuf.ByteString
    Tenant ID, provided as a path parameter.
    int
     
    boolean
    The maximum number of messages to include in each task's history.
    boolean
    Whether to include artifacts in the returned tasks.
    boolean
    The maximum number of tasks to return.
    boolean
    Filter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., "2023-10-27T10:00:00Z").
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<ListTasksRequest>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • TENANT_FIELD_NUMBER

      public static final int TENANT_FIELD_NUMBER
      See Also:
    • CONTEXT_ID_FIELD_NUMBER

      public static final int CONTEXT_ID_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • PAGE_SIZE_FIELD_NUMBER

      public static final int PAGE_SIZE_FIELD_NUMBER
      See Also:
    • PAGE_TOKEN_FIELD_NUMBER

      public static final int PAGE_TOKEN_FIELD_NUMBER
      See Also:
    • HISTORY_LENGTH_FIELD_NUMBER

      public static final int HISTORY_LENGTH_FIELD_NUMBER
      See Also:
    • STATUS_TIMESTAMP_AFTER_FIELD_NUMBER

      public static final int STATUS_TIMESTAMP_AFTER_FIELD_NUMBER
      See Also:
    • INCLUDE_ARTIFACTS_FIELD_NUMBER

      public static final int INCLUDE_ARTIFACTS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getTenant

      public String getTenant()
       Tenant ID, provided as a path parameter.
       
      string tenant = 1;
      Specified by:
      getTenant in interface ListTasksRequestOrBuilder
      Returns:
      The tenant.
    • getTenantBytes

      public com.google.protobuf.ByteString getTenantBytes()
       Tenant ID, provided as a path parameter.
       
      string tenant = 1;
      Specified by:
      getTenantBytes in interface ListTasksRequestOrBuilder
      Returns:
      The bytes for tenant.
    • getContextId

      public String getContextId()
       Filter tasks by context ID to get tasks from a specific conversation or session.
       
      string context_id = 2;
      Specified by:
      getContextId in interface ListTasksRequestOrBuilder
      Returns:
      The contextId.
    • getContextIdBytes

      public com.google.protobuf.ByteString getContextIdBytes()
       Filter tasks by context ID to get tasks from a specific conversation or session.
       
      string context_id = 2;
      Specified by:
      getContextIdBytes in interface ListTasksRequestOrBuilder
      Returns:
      The bytes for contextId.
    • getStatusValue

      public int getStatusValue()
       Filter tasks by their current status state.
       
      .lf.a2a.v1.TaskState status = 3;
      Specified by:
      getStatusValue in interface ListTasksRequestOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • getStatus

      public TaskState getStatus()
       Filter tasks by their current status state.
       
      .lf.a2a.v1.TaskState status = 3;
      Specified by:
      getStatus in interface ListTasksRequestOrBuilder
      Returns:
      The status.
    • hasPageSize

      public boolean hasPageSize()
       The maximum number of tasks to return. The service may return fewer than this value.
       If unspecified, at most 50 tasks will be returned.
       The minimum value is 1.
       The maximum value is 100.
       
      optional int32 page_size = 4;
      Specified by:
      hasPageSize in interface ListTasksRequestOrBuilder
      Returns:
      Whether the pageSize field is set.
    • getPageSize

      public int getPageSize()
       The maximum number of tasks to return. The service may return fewer than this value.
       If unspecified, at most 50 tasks will be returned.
       The minimum value is 1.
       The maximum value is 100.
       
      optional int32 page_size = 4;
      Specified by:
      getPageSize in interface ListTasksRequestOrBuilder
      Returns:
      The pageSize.
    • getPageToken

      public String getPageToken()
       A page token, received from a previous `ListTasks` call.
       `ListTasksResponse.next_page_token`.
       Provide this to retrieve the subsequent page.
       
      string page_token = 5;
      Specified by:
      getPageToken in interface ListTasksRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       A page token, received from a previous `ListTasks` call.
       `ListTasksResponse.next_page_token`.
       Provide this to retrieve the subsequent page.
       
      string page_token = 5;
      Specified by:
      getPageTokenBytes in interface ListTasksRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • hasHistoryLength

      public boolean hasHistoryLength()
       The maximum number of messages to include in each task's history.
       
      optional int32 history_length = 6;
      Specified by:
      hasHistoryLength in interface ListTasksRequestOrBuilder
      Returns:
      Whether the historyLength field is set.
    • getHistoryLength

      public int getHistoryLength()
       The maximum number of messages to include in each task's history.
       
      optional int32 history_length = 6;
      Specified by:
      getHistoryLength in interface ListTasksRequestOrBuilder
      Returns:
      The historyLength.
    • hasStatusTimestampAfter

      public boolean hasStatusTimestampAfter()
       Filter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., "2023-10-27T10:00:00Z").
       Only tasks with a status timestamp time greater than or equal to this value will be returned.
       
      .google.protobuf.Timestamp status_timestamp_after = 7;
      Specified by:
      hasStatusTimestampAfter in interface ListTasksRequestOrBuilder
      Returns:
      Whether the statusTimestampAfter field is set.
    • getStatusTimestampAfter

      public com.google.protobuf.Timestamp getStatusTimestampAfter()
       Filter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., "2023-10-27T10:00:00Z").
       Only tasks with a status timestamp time greater than or equal to this value will be returned.
       
      .google.protobuf.Timestamp status_timestamp_after = 7;
      Specified by:
      getStatusTimestampAfter in interface ListTasksRequestOrBuilder
      Returns:
      The statusTimestampAfter.
    • getStatusTimestampAfterOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStatusTimestampAfterOrBuilder()
       Filter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., "2023-10-27T10:00:00Z").
       Only tasks with a status timestamp time greater than or equal to this value will be returned.
       
      .google.protobuf.Timestamp status_timestamp_after = 7;
      Specified by:
      getStatusTimestampAfterOrBuilder in interface ListTasksRequestOrBuilder
    • hasIncludeArtifacts

      public boolean hasIncludeArtifacts()
       Whether to include artifacts in the returned tasks.
       Defaults to false to reduce payload size.
       
      optional bool include_artifacts = 8;
      Specified by:
      hasIncludeArtifacts in interface ListTasksRequestOrBuilder
      Returns:
      Whether the includeArtifacts field is set.
    • getIncludeArtifacts

      public boolean getIncludeArtifacts()
       Whether to include artifacts in the returned tasks.
       Defaults to false to reduce payload size.
       
      optional bool include_artifacts = 8;
      Specified by:
      getIncludeArtifacts in interface ListTasksRequestOrBuilder
      Returns:
      The includeArtifacts.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ListTasksRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ListTasksRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ListTasksRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ListTasksRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ListTasksRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ListTasksRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ListTasksRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ListTasksRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ListTasksRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ListTasksRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ListTasksRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ListTasksRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ListTasksRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ListTasksRequest.Builder newBuilder()
    • newBuilder

      public static ListTasksRequest.Builder newBuilder(ListTasksRequest prototype)
    • toBuilder

      public ListTasksRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ListTasksRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ListTasksRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ListTasksRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<ListTasksRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ListTasksRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder