Package org.a2aproject.sdk.grpc
Class ListTasksRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListTasksRequest.Builder>
org.a2aproject.sdk.grpc.ListTasksRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,ListTasksRequestOrBuilder
- Enclosing class:
- ListTasksRequest
public static final class ListTasksRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ListTasksRequest.Builder>
implements ListTasksRequestOrBuilder
Parameters for listing tasks with optional filtering criteria.Protobuf type
lf.a2a.v1.ListTasksRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Filter tasks by context ID to get tasks from a specific conversation or session.The maximum number of messages to include in each task's history.Whether to include artifacts in the returned tasks.The maximum number of tasks to return.A page token, received from a previous `ListTasks` call.Filter tasks by their current status state.Filter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., "2023-10-27T10:00:00Z").Tenant ID, provided as a path parameter.Filter tasks by context ID to get tasks from a specific conversation or session.com.google.protobuf.ByteStringFilter tasks by context ID to get tasks from a specific conversation or session.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe maximum number of messages to include in each task's history.booleanWhether to include artifacts in the returned tasks.intThe maximum number of tasks to return.A page token, received from a previous `ListTasks` call.com.google.protobuf.ByteStringA page token, received from a previous `ListTasks` call.Filter tasks by their current status state.com.google.protobuf.TimestampFilter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., "2023-10-27T10:00:00Z").com.google.protobuf.Timestamp.BuilderFilter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., "2023-10-27T10:00:00Z").com.google.protobuf.TimestampOrBuilderFilter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., "2023-10-27T10:00:00Z").intFilter tasks by their current status state.Tenant ID, provided as a path parameter.com.google.protobuf.ByteStringTenant ID, provided as a path parameter.booleanThe maximum number of messages to include in each task's history.booleanWhether to include artifacts in the returned tasks.booleanThe maximum number of tasks to return.booleanFilter 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.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ListTasksRequest other) mergeStatusTimestampAfter(com.google.protobuf.Timestamp value) Filter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., "2023-10-27T10:00:00Z").setContextId(String value) Filter tasks by context ID to get tasks from a specific conversation or session.setContextIdBytes(com.google.protobuf.ByteString value) Filter tasks by context ID to get tasks from a specific conversation or session.setHistoryLength(int value) The maximum number of messages to include in each task's history.setIncludeArtifacts(boolean value) Whether to include artifacts in the returned tasks.setPageSize(int value) The maximum number of tasks to return.setPageToken(String value) A page token, received from a previous `ListTasks` call.setPageTokenBytes(com.google.protobuf.ByteString value) A page token, received from a previous `ListTasks` call.Filter tasks by their current status state.setStatusTimestampAfter(com.google.protobuf.Timestamp value) Filter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., "2023-10-27T10:00:00Z").setStatusTimestampAfter(com.google.protobuf.Timestamp.Builder builderForValue) Filter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., "2023-10-27T10:00:00Z").setStatusValue(int value) Filter tasks by their current status state.Tenant ID, provided as a path parameter.setTenantBytes(com.google.protobuf.ByteString value) Tenant ID, provided as a path parameter.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ListTasksRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ListTasksRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ListTasksRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ListTasksRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ListTasksRequest.Builder>
-
mergeFrom
public ListTasksRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ListTasksRequest.Builder>- Throws:
IOException
-
getTenant
Tenant ID, provided as a path parameter.
string tenant = 1;- Specified by:
getTenantin interfaceListTasksRequestOrBuilder- Returns:
- The tenant.
-
getTenantBytes
public com.google.protobuf.ByteString getTenantBytes()Tenant ID, provided as a path parameter.
string tenant = 1;- Specified by:
getTenantBytesin interfaceListTasksRequestOrBuilder- Returns:
- The bytes for tenant.
-
setTenant
Tenant ID, provided as a path parameter.
string tenant = 1;- Parameters:
value- The tenant to set.- Returns:
- This builder for chaining.
-
clearTenant
Tenant ID, provided as a path parameter.
string tenant = 1;- Returns:
- This builder for chaining.
-
setTenantBytes
Tenant ID, provided as a path parameter.
string tenant = 1;- Parameters:
value- The bytes for tenant to set.- Returns:
- This builder for chaining.
-
getContextId
Filter tasks by context ID to get tasks from a specific conversation or session.
string context_id = 2;- Specified by:
getContextIdin interfaceListTasksRequestOrBuilder- 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:
getContextIdBytesin interfaceListTasksRequestOrBuilder- Returns:
- The bytes for contextId.
-
setContextId
Filter tasks by context ID to get tasks from a specific conversation or session.
string context_id = 2;- Parameters:
value- The contextId to set.- Returns:
- This builder for chaining.
-
clearContextId
Filter tasks by context ID to get tasks from a specific conversation or session.
string context_id = 2;- Returns:
- This builder for chaining.
-
setContextIdBytes
Filter tasks by context ID to get tasks from a specific conversation or session.
string context_id = 2;- Parameters:
value- The bytes for contextId to set.- Returns:
- This builder for chaining.
-
getStatusValue
public int getStatusValue()Filter tasks by their current status state.
.lf.a2a.v1.TaskState status = 3;- Specified by:
getStatusValuein interfaceListTasksRequestOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
Filter tasks by their current status state.
.lf.a2a.v1.TaskState status = 3;- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
Filter tasks by their current status state.
.lf.a2a.v1.TaskState status = 3;- Specified by:
getStatusin interfaceListTasksRequestOrBuilder- Returns:
- The status.
-
setStatus
Filter tasks by their current status state.
.lf.a2a.v1.TaskState status = 3;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
Filter tasks by their current status state.
.lf.a2a.v1.TaskState status = 3;- Returns:
- This builder for chaining.
-
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:
hasPageSizein interfaceListTasksRequestOrBuilder- 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:
getPageSizein interfaceListTasksRequestOrBuilder- Returns:
- The pageSize.
-
setPageSize
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;- Parameters:
value- The pageSize to set.- Returns:
- This builder for chaining.
-
clearPageSize
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;- Returns:
- This builder for chaining.
-
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:
getPageTokenin interfaceListTasksRequestOrBuilder- 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:
getPageTokenBytesin interfaceListTasksRequestOrBuilder- Returns:
- The bytes for pageToken.
-
setPageToken
A page token, received from a previous `ListTasks` call. `ListTasksResponse.next_page_token`. Provide this to retrieve the subsequent page.
string page_token = 5;- Parameters:
value- The pageToken to set.- Returns:
- This builder for chaining.
-
clearPageToken
A page token, received from a previous `ListTasks` call. `ListTasksResponse.next_page_token`. Provide this to retrieve the subsequent page.
string page_token = 5;- Returns:
- This builder for chaining.
-
setPageTokenBytes
A page token, received from a previous `ListTasks` call. `ListTasksResponse.next_page_token`. Provide this to retrieve the subsequent page.
string page_token = 5;- Parameters:
value- The bytes for pageToken to set.- Returns:
- This builder for chaining.
-
hasHistoryLength
public boolean hasHistoryLength()The maximum number of messages to include in each task's history.
optional int32 history_length = 6;- Specified by:
hasHistoryLengthin interfaceListTasksRequestOrBuilder- 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:
getHistoryLengthin interfaceListTasksRequestOrBuilder- Returns:
- The historyLength.
-
setHistoryLength
The maximum number of messages to include in each task's history.
optional int32 history_length = 6;- Parameters:
value- The historyLength to set.- Returns:
- This builder for chaining.
-
clearHistoryLength
The maximum number of messages to include in each task's history.
optional int32 history_length = 6;- Returns:
- This builder for chaining.
-
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:
hasStatusTimestampAfterin interfaceListTasksRequestOrBuilder- 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:
getStatusTimestampAfterin interfaceListTasksRequestOrBuilder- Returns:
- The statusTimestampAfter.
-
setStatusTimestampAfter
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; -
setStatusTimestampAfter
public ListTasksRequest.Builder setStatusTimestampAfter(com.google.protobuf.Timestamp.Builder builderForValue) 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; -
mergeStatusTimestampAfter
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; -
clearStatusTimestampAfter
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; -
getStatusTimestampAfterBuilder
public com.google.protobuf.Timestamp.Builder getStatusTimestampAfterBuilder()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; -
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:
getStatusTimestampAfterOrBuilderin interfaceListTasksRequestOrBuilder
-
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:
hasIncludeArtifactsin interfaceListTasksRequestOrBuilder- 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:
getIncludeArtifactsin interfaceListTasksRequestOrBuilder- Returns:
- The includeArtifacts.
-
setIncludeArtifacts
Whether to include artifacts in the returned tasks. Defaults to false to reduce payload size.
optional bool include_artifacts = 8;- Parameters:
value- The includeArtifacts to set.- Returns:
- This builder for chaining.
-
clearIncludeArtifacts
Whether to include artifacts in the returned tasks. Defaults to false to reduce payload size.
optional bool include_artifacts = 8;- Returns:
- This builder for chaining.
-