Package org.a2aproject.sdk.compat03.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 TypeMethodDescriptiongetContent(int index) protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.intprotolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.getContentOrBuilder(int index) protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.List<? extends PartOrBuilder>protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.The context id of the message.com.google.protobuf.ByteStringThe context id of the message.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 message id of the message.com.google.protobuf.ByteStringThe message id of the message.com.google.protobuf.Structprotolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with the message.com.google.protobuf.StructOrBuilderprotolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with the message.getRole()A role for the message.intA role for the message.The task id of the message.com.google.protobuf.ByteStringThe task id of the message.booleanprotolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with the 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
-
getMessageId
String getMessageId()The message id of the message. This is required and created by the message creator.
string message_id = 1;- Returns:
- The messageId.
-
getMessageIdBytes
com.google.protobuf.ByteString getMessageIdBytes()The message id of the message. This is required and created by the message creator.
string message_id = 1;- Returns:
- The bytes for messageId.
-
getContextId
String getContextId()The context id of the message. This is optional and if set, the message will be associated with the given context.
string context_id = 2;- Returns:
- The contextId.
-
getContextIdBytes
com.google.protobuf.ByteString getContextIdBytes()The context id of the message. This is optional and if set, the message will be associated with the given context.
string context_id = 2;- Returns:
- The bytes for contextId.
-
getTaskId
String getTaskId()The task id of the message. This is optional and if set, the message will be associated with the given task.
string task_id = 3;- Returns:
- The taskId.
-
getTaskIdBytes
com.google.protobuf.ByteString getTaskIdBytes()The task id of the message. This is optional and if set, the message will be associated with the given task.
string task_id = 3;- Returns:
- The bytes for taskId.
-
getRoleValue
int getRoleValue()A role for the message.
.a2a.v1.Role role = 4;- Returns:
- The enum numeric value on the wire for role.
-
getRole
Role getRole()A role for the message.
.a2a.v1.Role role = 4;- Returns:
- The role.
-
getContentList
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
repeated .a2a.v1.Part content = 5; -
getContent
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
repeated .a2a.v1.Part content = 5; -
getContentCount
int getContentCount()protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
repeated .a2a.v1.Part content = 5; -
getContentOrBuilderList
List<? extends PartOrBuilder> getContentOrBuilderList()protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
repeated .a2a.v1.Part content = 5; -
getContentOrBuilder
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
repeated .a2a.v1.Part content = 5; -
hasMetadata
boolean hasMetadata()protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional 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()protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with the message.
.google.protobuf.Struct metadata = 6;- Returns:
- The metadata.
-
getMetadataOrBuilder
com.google.protobuf.StructOrBuilder getMetadataOrBuilder()protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional 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.
-