Package org.a2aproject.sdk.grpc
Interface MessageOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Message,Message.Builder
@Generated
public interface MessageOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOptional.com.google.protobuf.ByteStringOptional.getExtensions(int index) The URIs of extensions that are present or contributed to this Message.com.google.protobuf.ByteStringgetExtensionsBytes(int index) The URIs of extensions that are present or contributed to this Message.intThe URIs of extensions that are present or contributed to this Message.The URIs of extensions that are present or contributed to this Message.The unique identifier (e.g.com.google.protobuf.ByteStringThe unique identifier (e.g.com.google.protobuf.StructOptional.com.google.protobuf.StructOrBuilderOptional.getParts(int index) Parts is the container of the message content.intParts is the container of the message content.Parts is the container of the message content.getPartsOrBuilder(int index) Parts is the container of the message content.List<? extends PartOrBuilder>Parts is the container of the message content.getReferenceTaskIds(int index) A list of task IDs that this message references for additional context.com.google.protobuf.ByteStringgetReferenceTaskIdsBytes(int index) A list of task IDs that this message references for additional context.intA list of task IDs that this message references for additional context.A list of task IDs that this message references for additional context.getRole()Identifies the sender of the message.intIdentifies the sender of the message.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.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
-
getMessageId
String getMessageId()The unique identifier (e.g. UUID) of the message. This is created by the message creator.
string message_id = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The messageId.
-
getMessageIdBytes
com.google.protobuf.ByteString getMessageIdBytes()The unique identifier (e.g. UUID) of the message. This is created by the message creator.
string message_id = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for messageId.
-
getContextId
String getContextId()Optional. The context id of the message. If set, the message will be associated with the given context.
string context_id = 2;- Returns:
- The contextId.
-
getContextIdBytes
com.google.protobuf.ByteString getContextIdBytes()Optional. The context id of the message. If set, the message will be associated with the given context.
string context_id = 2;- Returns:
- The bytes for contextId.
-
getTaskId
String getTaskId()Optional. The task id of the message. If set, the message will be associated with the given task.
string task_id = 3;- Returns:
- The taskId.
-
getTaskIdBytes
com.google.protobuf.ByteString getTaskIdBytes()Optional. The task id of the message. If set, the message will be associated with the given task.
string task_id = 3;- Returns:
- The bytes for taskId.
-
getRoleValue
int getRoleValue()Identifies the sender of the message.
.lf.a2a.v1.Role role = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The enum numeric value on the wire for role.
-
getRole
Role getRole()Identifies the sender of the message.
.lf.a2a.v1.Role role = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The role.
-
getPartsList
Parts is the container of the message content.
repeated .lf.a2a.v1.Part parts = 5 [(.google.api.field_behavior) = REQUIRED]; -
getParts
Parts is the container of the message content.
repeated .lf.a2a.v1.Part parts = 5 [(.google.api.field_behavior) = REQUIRED]; -
getPartsCount
int getPartsCount()Parts is the container of the message content.
repeated .lf.a2a.v1.Part parts = 5 [(.google.api.field_behavior) = REQUIRED]; -
getPartsOrBuilderList
List<? extends PartOrBuilder> getPartsOrBuilderList()Parts is the container of the message content.
repeated .lf.a2a.v1.Part parts = 5 [(.google.api.field_behavior) = REQUIRED]; -
getPartsOrBuilder
Parts is the container of the message content.
repeated .lf.a2a.v1.Part parts = 5 [(.google.api.field_behavior) = REQUIRED]; -
hasMetadata
boolean hasMetadata()Optional. Any metadata to provide along with the message.
.google.protobuf.Struct metadata = 6;- Returns:
- Whether the metadata field is set.
-
getMetadata
com.google.protobuf.Struct getMetadata()Optional. Any metadata to provide along with the message.
.google.protobuf.Struct metadata = 6;- Returns:
- The metadata.
-
getMetadataOrBuilder
com.google.protobuf.StructOrBuilder getMetadataOrBuilder()Optional. Any metadata to provide along with the message.
.google.protobuf.Struct metadata = 6; -
getExtensionsList
The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7;- Returns:
- A list containing the extensions.
-
getExtensionsCount
int getExtensionsCount()The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7;- Returns:
- The count of extensions.
-
getExtensions
The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7;- Parameters:
index- The index of the element to return.- Returns:
- The extensions at the given index.
-
getExtensionsBytes
com.google.protobuf.ByteString getExtensionsBytes(int index) The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the extensions at the given index.
-
getReferenceTaskIdsList
A list of task IDs that this message references for additional context.
repeated string reference_task_ids = 8;- Returns:
- A list containing the referenceTaskIds.
-
getReferenceTaskIdsCount
int getReferenceTaskIdsCount()A list of task IDs that this message references for additional context.
repeated string reference_task_ids = 8;- Returns:
- The count of referenceTaskIds.
-
getReferenceTaskIds
A list of task IDs that this message references for additional context.
repeated string reference_task_ids = 8;- Parameters:
index- The index of the element to return.- Returns:
- The referenceTaskIds at the given index.
-
getReferenceTaskIdsBytes
com.google.protobuf.ByteString getReferenceTaskIdsBytes(int index) A list of task IDs that this message references for additional context.
repeated string reference_task_ids = 8;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the referenceTaskIds at the given index.
-