public interface A2AMessageOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getContent(int index)
public abstract Part getContent(int index)Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Part |
|
getContentCount()
public abstract int getContentCount()Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getContentList()
public abstract List<Part> getContentList()Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Part> |
|
getContentOrBuilder(int index)
public abstract PartOrBuilder getContentOrBuilder(int index)Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
PartOrBuilder |
|
getContentOrBuilderList()
public abstract List<? extends PartOrBuilder> getContentOrBuilderList()Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.geminidataanalytics.v1beta.PartOrBuilder> |
|
getContextId()
public abstract String getContextId()Optional. The context id of the message.
string context_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The contextId. |
getContextIdBytes()
public abstract ByteString getContextIdBytes()Optional. The context id of the message.
string context_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for contextId. |
getExtensions(int index)
public abstract String getExtensions(int index)Optional. The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The extensions at the given index. |
getExtensionsBytes(int index)
public abstract ByteString getExtensionsBytes(int index)Optional. The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the extensions at the given index. |
getExtensionsCount()
public abstract int getExtensionsCount()Optional. The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of extensions. |
getExtensionsList()
public abstract List<String> getExtensionsList()Optional. The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<String> |
A list containing the extensions. |
getMessageId()
public abstract String getMessageId()Optional. The unique identifier (e.g. UUID) of the message.
string message_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The messageId. |
getMessageIdBytes()
public abstract ByteString getMessageIdBytes()Optional. The unique identifier (e.g. UUID) of the message.
string message_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for messageId. |
getMetadata()
public abstract Struct getMetadata()Optional. Any optional metadata to provide along with the message.
.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Struct |
The metadata. |
getMetadataOrBuilder()
public abstract StructOrBuilder getMetadataOrBuilder()Optional. Any optional metadata to provide along with the message.
.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
getRole()
public abstract Role getRole()Optional. A role for the message.
.google.cloud.geminidataanalytics.v1beta.Role role = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Role |
The role. |
getRoleValue()
public abstract int getRoleValue()Optional. A role for the message.
.google.cloud.geminidataanalytics.v1beta.Role role = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for role. |
getTaskId()
public abstract String getTaskId()Optional. The task id of the message.
string task_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The taskId. |
getTaskIdBytes()
public abstract ByteString getTaskIdBytes()Optional. The task id of the message.
string task_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for taskId. |
hasMetadata()
public abstract boolean hasMetadata()Optional. Any optional metadata to provide along with the message.
.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the metadata field is set. |