public interface AssistantMessageOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getAttachedGcsUris(int index)
public abstract String getAttachedGcsUris(int index)Optional. Cloud Storage URIs for files uploaded by the user during this turn. This allows attachments to be persisted and rendered in the session history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The attachedGcsUris at the given index. |
getAttachedGcsUrisBytes(int index)
public abstract ByteString getAttachedGcsUrisBytes(int index)Optional. Cloud Storage URIs for files uploaded by the user during this turn. This allows attachments to be persisted and rendered in the session history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the attachedGcsUris at the given index. |
getAttachedGcsUrisCount()
public abstract int getAttachedGcsUrisCount()Optional. Cloud Storage URIs for files uploaded by the user during this turn. This allows attachments to be persisted and rendered in the session history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of attachedGcsUris. |
getAttachedGcsUrisList()
public abstract List<String> getAttachedGcsUrisList()Optional. Cloud Storage URIs for files uploaded by the user during this turn. This allows attachments to be persisted and rendered in the session history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<String> |
A list containing the attachedGcsUris. |
getChunks(int index)
public abstract AssistantChunk getChunks(int index)Optional. Content of the message as chunks.
repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk |
|
getChunksCount()
public abstract int getChunksCount()Optional. Content of the message as chunks.
repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getChunksList()
public abstract List<AssistantChunk> getChunksList()Optional. Content of the message as chunks.
repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<AssistantChunk> |
|
getChunksOrBuilder(int index)
public abstract AssistantChunkOrBuilder getChunksOrBuilder(int index)Optional. Content of the message as chunks.
repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AssistantChunkOrBuilder |
|
getChunksOrBuilderList()
public abstract List<? extends AssistantChunkOrBuilder> getChunksOrBuilderList()Optional. Content of the message as chunks.
repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.ces.v1beta.AssistantChunkOrBuilder> |
|
getEventTime()
public abstract Timestamp getEventTime()Required. Timestamp when the message was sent or received.
.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The eventTime. |
getEventTimeOrBuilder()
public abstract TimestampOrBuilder getEventTimeOrBuilder()Required. Timestamp when the message was sent or received.
.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getRole()
public abstract String getRole()Required. Role within the conversation "user" or "model".
string role = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The role. |
getRoleBytes()
public abstract ByteString getRoleBytes()Required. Role within the conversation "user" or "model".
string role = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for role. |
hasEventTime()
public abstract boolean hasEventTime()Required. Timestamp when the message was sent or received.
.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the eventTime field is set. |