Package org.a2aproject.sdk.grpc
Interface TaskOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Task,Task.Builder
@Generated
public interface TaskOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetArtifacts(int index) A set of output artifacts for a `Task`.intA set of output artifacts for a `Task`.A set of output artifacts for a `Task`.getArtifactsOrBuilder(int index) A set of output artifacts for a `Task`.List<? extends ArtifactOrBuilder>A set of output artifacts for a `Task`.Unique identifier (e.g.com.google.protobuf.ByteStringUnique identifier (e.g.getHistory(int index) protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a `Task`.intprotolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a `Task`.protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a `Task`.getHistoryOrBuilder(int index) protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a `Task`.List<? extends MessageOrBuilder>protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a `Task`.getId()Unique identifier (e.g.com.google.protobuf.ByteStringUnique identifier (e.g.com.google.protobuf.Structprotolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to store custom metadata about a task.com.google.protobuf.StructOrBuilderprotolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to store custom metadata about a task.The current status of a `Task`, including `state` and a `message`.The current status of a `Task`, including `state` and a `message`.booleanprotolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to store custom metadata about a task.booleanThe current status of a `Task`, including `state` and a `message`.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getId
String getId()Unique identifier (e.g. UUID) for the task, generated by the server for a new task.
string id = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The id.
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()Unique identifier (e.g. UUID) for the task, generated by the server for a new task.
string id = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for id.
-
getContextId
String getContextId()Unique identifier (e.g. UUID) for the contextual collection of interactions (tasks and messages).
string context_id = 2;- Returns:
- The contextId.
-
getContextIdBytes
com.google.protobuf.ByteString getContextIdBytes()Unique identifier (e.g. UUID) for the contextual collection of interactions (tasks and messages).
string context_id = 2;- Returns:
- The bytes for contextId.
-
hasStatus
boolean hasStatus()The current status of a `Task`, including `state` and a `message`.
.lf.a2a.v1.TaskStatus status = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the status field is set.
-
getStatus
TaskStatus getStatus()The current status of a `Task`, including `state` and a `message`.
.lf.a2a.v1.TaskStatus status = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The status.
-
getStatusOrBuilder
TaskStatusOrBuilder getStatusOrBuilder()The current status of a `Task`, including `state` and a `message`.
.lf.a2a.v1.TaskStatus status = 3 [(.google.api.field_behavior) = REQUIRED]; -
getArtifactsList
A set of output artifacts for a `Task`.
repeated .lf.a2a.v1.Artifact artifacts = 4; -
getArtifacts
A set of output artifacts for a `Task`.
repeated .lf.a2a.v1.Artifact artifacts = 4; -
getArtifactsCount
int getArtifactsCount()A set of output artifacts for a `Task`.
repeated .lf.a2a.v1.Artifact artifacts = 4; -
getArtifactsOrBuilderList
List<? extends ArtifactOrBuilder> getArtifactsOrBuilderList()A set of output artifacts for a `Task`.
repeated .lf.a2a.v1.Artifact artifacts = 4; -
getArtifactsOrBuilder
A set of output artifacts for a `Task`.
repeated .lf.a2a.v1.Artifact artifacts = 4; -
getHistoryList
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a `Task`.
repeated .lf.a2a.v1.Message history = 5; -
getHistory
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a `Task`.
repeated .lf.a2a.v1.Message history = 5; -
getHistoryCount
int getHistoryCount()protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a `Task`.
repeated .lf.a2a.v1.Message history = 5; -
getHistoryOrBuilderList
List<? extends MessageOrBuilder> getHistoryOrBuilderList()protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a `Task`.
repeated .lf.a2a.v1.Message history = 5; -
getHistoryOrBuilder
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a `Task`.
repeated .lf.a2a.v1.Message history = 5; -
hasMetadata
boolean hasMetadata()protolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to store custom metadata about a task.
.google.protobuf.Struct metadata = 6;- Returns:
- Whether the metadata field is set.
-
getMetadata
com.google.protobuf.Struct getMetadata()protolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to store custom metadata about a task.
.google.protobuf.Struct metadata = 6;- Returns:
- The metadata.
-
getMetadataOrBuilder
com.google.protobuf.StructOrBuilder getMetadataOrBuilder()protolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to store custom metadata about a task.
.google.protobuf.Struct metadata = 6;
-