public final class A2aV1Task
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
A2aV1Task() |
| Modifier and Type | Method and Description |
|---|---|
A2aV1Task |
clone() |
List<A2aV1Artifact> |
getArtifacts()
A set of output artifacts for a Task.
|
String |
getContextId()
Unique identifier (e.g.
|
List<A2aV1Message> |
getHistory()
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a task.
|
String |
getId()
Unique identifier (e.g.
|
Map<String,Object> |
getMetadata()
protolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to store custom metadata
about a task.
|
A2aV1TaskStatus |
getStatus()
The current status of a Task, including state and a message.
|
A2aV1Task |
set(String fieldName,
Object value) |
A2aV1Task |
setArtifacts(List<A2aV1Artifact> artifacts)
A set of output artifacts for a Task.
|
A2aV1Task |
setContextId(String contextId)
Unique identifier (e.g.
|
A2aV1Task |
setHistory(List<A2aV1Message> history)
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a task.
|
A2aV1Task |
setId(String id)
Unique identifier (e.g.
|
A2aV1Task |
setMetadata(Map<String,Object> metadata)
protolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to store custom metadata
about a task.
|
A2aV1Task |
setStatus(A2aV1TaskStatus status)
The current status of a Task, including state and a message.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic List<A2aV1Artifact> getArtifacts()
null for nonepublic A2aV1Task setArtifacts(List<A2aV1Artifact> artifacts)
artifacts - artifacts or null for nonepublic String getContextId()
null for nonepublic A2aV1Task setContextId(String contextId)
contextId - contextId or null for nonepublic List<A2aV1Message> getHistory()
null for nonepublic A2aV1Task setHistory(List<A2aV1Message> history)
history - history or null for nonepublic String getId()
null for nonepublic A2aV1Task setId(String id)
id - id or null for nonepublic Map<String,Object> getMetadata()
null for nonepublic A2aV1Task setMetadata(Map<String,Object> metadata)
metadata - metadata or null for nonepublic A2aV1TaskStatus getStatus()
null for nonepublic A2aV1Task setStatus(A2aV1TaskStatus status)
status - status or null for nonepublic A2aV1Task set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic A2aV1Task clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.