public static final class A2ATask.Builder extends GeneratedMessage.Builder<A2ATask.Builder> implements A2ATaskOrBuilderA2ATask 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > A2ATask.BuilderImplements
A2ATaskOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllArtifacts(Iterable<? extends A2AArtifact> values)
public A2ATask.Builder addAllArtifacts(Iterable<? extends A2AArtifact> values)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 |
values |
Iterable<? extends com.google.cloud.geminidataanalytics.v1beta.A2AArtifact> |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
addAllHistory(Iterable<? extends A2AMessage> values)
public A2ATask.Builder addAllHistory(Iterable<? extends A2AMessage> values)Optional. The history of interactions from a task.
repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.geminidataanalytics.v1beta.A2AMessage> |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
addArtifacts(A2AArtifact value)
public A2ATask.Builder addArtifacts(A2AArtifact value)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 |
value |
A2AArtifact |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
addArtifacts(A2AArtifact.Builder builderForValue)
public A2ATask.Builder addArtifacts(A2AArtifact.Builder builderForValue)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 |
builderForValue |
A2AArtifact.Builder |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
addArtifacts(int index, A2AArtifact value)
public A2ATask.Builder addArtifacts(int index, A2AArtifact value)Optional. A set of output artifacts for a Task.
repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
A2AArtifact |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
addArtifacts(int index, A2AArtifact.Builder builderForValue)
public A2ATask.Builder addArtifacts(int index, A2AArtifact.Builder builderForValue)Optional. A set of output artifacts for a Task.
repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
A2AArtifact.Builder |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
addArtifactsBuilder()
public A2AArtifact.Builder addArtifactsBuilder()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 |
A2AArtifact.Builder |
|
addArtifactsBuilder(int index)
public A2AArtifact.Builder addArtifactsBuilder(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.Builder |
|
addHistory(A2AMessage value)
public A2ATask.Builder addHistory(A2AMessage value)Optional. The history of interactions from a task.
repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
A2AMessage |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
addHistory(A2AMessage.Builder builderForValue)
public A2ATask.Builder addHistory(A2AMessage.Builder builderForValue)Optional. The history of interactions from a task.
repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
A2AMessage.Builder |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
addHistory(int index, A2AMessage value)
public A2ATask.Builder addHistory(int index, A2AMessage value)Optional. The history of interactions from a task.
repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
A2AMessage |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
addHistory(int index, A2AMessage.Builder builderForValue)
public A2ATask.Builder addHistory(int index, A2AMessage.Builder builderForValue)Optional. The history of interactions from a task.
repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
A2AMessage.Builder |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
addHistoryBuilder()
public A2AMessage.Builder addHistoryBuilder()Optional. The history of interactions from a task.
repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
addHistoryBuilder(int index)
public A2AMessage.Builder addHistoryBuilder(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.Builder |
|
build()
public A2ATask build()| Returns | |
|---|---|
| Type | Description |
A2ATask |
|
buildPartial()
public A2ATask buildPartial()| Returns | |
|---|---|
| Type | Description |
A2ATask |
|
clear()
public A2ATask.Builder clear()| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
clearArtifacts()
public A2ATask.Builder clearArtifacts()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 |
A2ATask.Builder |
|
clearContextId()
public A2ATask.Builder clearContextId()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 |
A2ATask.Builder |
This builder for chaining. |
clearHistory()
public A2ATask.Builder clearHistory()Optional. The history of interactions from a task.
repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
clearId()
public A2ATask.Builder clearId()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 |
A2ATask.Builder |
This builder for chaining. |
clearMetadata()
public A2ATask.Builder clearMetadata()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 |
A2ATask.Builder |
|
clearStatus()
public A2ATask.Builder clearStatus()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 |
A2ATask.Builder |
|
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 |
|
getArtifactsBuilder(int index)
public A2AArtifact.Builder getArtifactsBuilder(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.Builder |
|
getArtifactsBuilderList()
public List<A2AArtifact.Builder> getArtifactsBuilderList()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<Builder> |
|
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
|
getHistoryBuilder(int index)
public A2AMessage.Builder getHistoryBuilder(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.Builder |
|
getHistoryBuilderList()
public List<A2AMessage.Builder> getHistoryBuilderList()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<Builder> |
|
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. |
getMetadataBuilder()
public Struct.Builder getMetadataBuilder()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 |
Builder |
|
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 |
|
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. |
getStatusBuilder()
public TaskStatus.Builder getStatusBuilder()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.Builder |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(A2ATask other)
public A2ATask.Builder mergeFrom(A2ATask other)| Parameter | |
|---|---|
| Name | Description |
other |
A2ATask |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public A2ATask.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public A2ATask.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
mergeMetadata(Struct value)
public A2ATask.Builder mergeMetadata(Struct value)Optional. A key/value object to store custom metadata about a task.
.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
mergeStatus(TaskStatus value)
public A2ATask.Builder mergeStatus(TaskStatus value)Optional. The current status of a Task, including state and a message.
.google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
TaskStatus |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
removeArtifacts(int index)
public A2ATask.Builder removeArtifacts(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 |
A2ATask.Builder |
|
removeHistory(int index)
public A2ATask.Builder removeHistory(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 |
A2ATask.Builder |
|
setArtifacts(int index, A2AArtifact value)
public A2ATask.Builder setArtifacts(int index, A2AArtifact value)Optional. A set of output artifacts for a Task.
repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
A2AArtifact |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
setArtifacts(int index, A2AArtifact.Builder builderForValue)
public A2ATask.Builder setArtifacts(int index, A2AArtifact.Builder builderForValue)Optional. A set of output artifacts for a Task.
repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
A2AArtifact.Builder |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
setContextId(String value)
public A2ATask.Builder setContextId(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe contextId to set. |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
This builder for chaining. |
setContextIdBytes(ByteString value)
public A2ATask.Builder setContextIdBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for contextId to set. |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
This builder for chaining. |
setHistory(int index, A2AMessage value)
public A2ATask.Builder setHistory(int index, A2AMessage value)Optional. The history of interactions from a task.
repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
A2AMessage |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
setHistory(int index, A2AMessage.Builder builderForValue)
public A2ATask.Builder setHistory(int index, A2AMessage.Builder builderForValue)Optional. The history of interactions from a task.
repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
A2AMessage.Builder |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
setId(String value)
public A2ATask.Builder setId(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe id to set. |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
This builder for chaining. |
setIdBytes(ByteString value)
public A2ATask.Builder setIdBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for id to set. |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
This builder for chaining. |
setMetadata(Struct value)
public A2ATask.Builder setMetadata(Struct value)Optional. A key/value object to store custom metadata about a task.
.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
setMetadata(Struct.Builder builderForValue)
public A2ATask.Builder setMetadata(Struct.Builder builderForValue)Optional. A key/value object to store custom metadata about a task.
.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
setStatus(TaskStatus value)
public A2ATask.Builder setStatus(TaskStatus value)Optional. The current status of a Task, including state and a message.
.google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
TaskStatus |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|
setStatus(TaskStatus.Builder builderForValue)
public A2ATask.Builder setStatus(TaskStatus.Builder builderForValue)Optional. The current status of a Task, including state and a message.
.google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
TaskStatus.Builder |
| Returns | |
|---|---|
| Type | Description |
A2ATask.Builder |
|