Class A2ATask (0.27.0)

public final class A2ATask extends GeneratedMessage implements A2ATaskOrBuilder

A2ATask is the core unit of action for A2A. It has a current status and when results are created for the task they are stored in the artifact. If there are multiple turns for a task, these are stored in history.

Protobuf type google.cloud.geminidataanalytics.v1beta.A2ATask

Implements

A2ATaskOrBuilder

Static Fields

ARTIFACTS_FIELD_NUMBER

public static final int ARTIFACTS_FIELD_NUMBER
Field Value
Type Description
int

CONTEXT_ID_FIELD_NUMBER

public static final int CONTEXT_ID_FIELD_NUMBER
Field Value
Type Description
int

HISTORY_FIELD_NUMBER

public static final int HISTORY_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

METADATA_FIELD_NUMBER

public static final int METADATA_FIELD_NUMBER
Field Value
Type Description
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static A2ATask getDefaultInstance()
Returns
Type Description
A2ATask

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static A2ATask.Builder newBuilder()
Returns
Type Description
A2ATask.Builder

newBuilder(A2ATask prototype)

public static A2ATask.Builder newBuilder(A2ATask prototype)
Parameter
Name Description
prototype A2ATask
Returns
Type Description
A2ATask.Builder

parseDelimitedFrom(InputStream input)

public static A2ATask parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
A2ATask
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static A2ATask parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
A2ATask
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static A2ATask parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
A2ATask
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static A2ATask parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
A2ATask
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static A2ATask parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
A2ATask
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static A2ATask parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
A2ATask
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static A2ATask parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
A2ATask
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static A2ATask parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
A2ATask
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static A2ATask parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
A2ATask
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static A2ATask parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
A2ATask
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static A2ATask parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
A2ATask
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static A2ATask parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
A2ATask
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<A2ATask> parser()
Returns
Type Description
Parser<A2ATask>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getArtifacts(int index)

public A2AArtifact getArtifacts(int index)

Optional. A set of output artifacts for a Task.

repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
A2AArtifact

getArtifactsCount()

public int getArtifactsCount()

Optional. A set of output artifacts for a Task.

repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getArtifactsList()

public List<A2AArtifact> getArtifactsList()

Optional. A set of output artifacts for a Task.

repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<A2AArtifact>

getArtifactsOrBuilder(int index)

public A2AArtifactOrBuilder getArtifactsOrBuilder(int index)

Optional. A set of output artifacts for a Task.

repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
A2AArtifactOrBuilder

getArtifactsOrBuilderList()

public List<? extends A2AArtifactOrBuilder> getArtifactsOrBuilderList()

Optional. A set of output artifacts for a Task.

repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.geminidataanalytics.v1beta.A2AArtifactOrBuilder>

getContextId()

public String getContextId()

Optional. Unique identifier (e.g. UUID) for the contextual collection of interactions (tasks and messages). Created by the A2A server.

string context_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The contextId.

getContextIdBytes()

public ByteString getContextIdBytes()

Optional. Unique identifier (e.g. UUID) for the contextual collection of interactions (tasks and messages). Created by the A2A server.

string context_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for contextId.

getDefaultInstanceForType()

public A2ATask getDefaultInstanceForType()
Returns
Type Description
A2ATask

getHistory(int index)

public A2AMessage getHistory(int index)

Optional. The history of interactions from a task.

repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
A2AMessage

getHistoryCount()

public int getHistoryCount()

Optional. The history of interactions from a task.

repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getHistoryList()

public List<A2AMessage> getHistoryList()

Optional. The history of interactions from a task.

repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<A2AMessage>

getHistoryOrBuilder(int index)

public A2AMessageOrBuilder getHistoryOrBuilder(int index)

Optional. The history of interactions from a task.

repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
A2AMessageOrBuilder

getHistoryOrBuilderList()

public List<? extends A2AMessageOrBuilder> getHistoryOrBuilderList()

Optional. The history of interactions from a task.

repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder>

getId()

public String getId()

Optional. Unique identifier (e.g. UUID) for the task, generated by the server for a new task.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Optional. Unique identifier (e.g. UUID) for the task, generated by the server for a new task.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for id.

getMetadata()

public Struct getMetadata()

Optional. A key/value object to store custom metadata about a task.

.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The metadata.

getMetadataOrBuilder()

public StructOrBuilder getMetadataOrBuilder()

Optional. A key/value object to store custom metadata about a task.

.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getParserForType()

public Parser<A2ATask> getParserForType()
Returns
Type Description
Parser<A2ATask>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStatus()

public TaskStatus getStatus()

Optional. The current status of a Task, including state and a message.

.google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TaskStatus

The status.

getStatusOrBuilder()

public TaskStatusOrBuilder getStatusOrBuilder()

Optional. The current status of a Task, including state and a message.

.google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TaskStatusOrBuilder

hasMetadata()

public boolean hasMetadata()

Optional. A key/value object to store custom metadata about a task.

.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the metadata field is set.

hasStatus()

public boolean hasStatus()

Optional. The current status of a Task, including state and a message.

.google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the status field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public A2ATask.Builder newBuilderForType()
Returns
Type Description
A2ATask.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected A2ATask.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
A2ATask.Builder
Overrides

toBuilder()

public A2ATask.Builder toBuilder()
Returns
Type Description
A2ATask.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException