public final class A2aV1Message
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 |
|---|
A2aV1Message() |
| Modifier and Type | Method and Description |
|---|---|
A2aV1Message |
clone() |
List<A2aV1Part> |
getContent()
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message
content.
|
String |
getContextId()
The context id of the message.
|
List<String> |
getExtensions()
The URIs of extensions that are present or contributed to this Message.
|
String |
getMessageId()
The unique identifier (e.g.
|
Map<String,Object> |
getMetadata()
protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with
the message.
|
String |
getRole()
A role for the message.
|
String |
getTaskId()
The task id of the message.
|
A2aV1Message |
set(String fieldName,
Object value) |
A2aV1Message |
setContent(List<A2aV1Part> content)
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message
content.
|
A2aV1Message |
setContextId(String contextId)
The context id of the message.
|
A2aV1Message |
setExtensions(List<String> extensions)
The URIs of extensions that are present or contributed to this Message.
|
A2aV1Message |
setMessageId(String messageId)
The unique identifier (e.g.
|
A2aV1Message |
setMetadata(Map<String,Object> metadata)
protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with
the message.
|
A2aV1Message |
setRole(String role)
A role for the message.
|
A2aV1Message |
setTaskId(String taskId)
The task id of the 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<A2aV1Part> getContent()
null for nonepublic A2aV1Message setContent(List<A2aV1Part> content)
content - content or null for nonepublic String getContextId()
null for nonepublic A2aV1Message setContextId(String contextId)
contextId - contextId or null for nonepublic List<String> getExtensions()
null for nonepublic A2aV1Message setExtensions(List<String> extensions)
extensions - extensions or null for nonepublic String getMessageId()
null for nonepublic A2aV1Message setMessageId(String messageId)
messageId - messageId or null for nonepublic Map<String,Object> getMetadata()
null for nonepublic A2aV1Message setMetadata(Map<String,Object> metadata)
metadata - metadata or null for nonepublic String getRole()
null for nonepublic A2aV1Message setRole(String role)
role - role or null for nonepublic String getTaskId()
null for nonepublic A2aV1Message setTaskId(String taskId)
taskId - taskId or null for nonepublic A2aV1Message set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic A2aV1Message clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.