public static interface AssistantGroundedContent.TextGroundingMetadata.VisualSegmentOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getContentId()
public abstract String getContentId() The content id of the visual segment. In order to display the citation
of the visual element, this content_id needs to match with the
grounded_content.content_metadata.content_id field.
string content_id = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The contentId. |
getContentIdBytes()
public abstract ByteString getContentIdBytes() The content id of the visual segment. In order to display the citation
of the visual element, this content_id needs to match with the
grounded_content.content_metadata.content_id field.
string content_id = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for contentId. |
getReferenceIndices(int index)
public abstract int getReferenceIndices(int index)References for the visual segment.
repeated int32 reference_indices = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The referenceIndices at the given index. |
getReferenceIndicesCount()
public abstract int getReferenceIndicesCount()References for the visual segment.
repeated int32 reference_indices = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The count of referenceIndices. |
getReferenceIndicesList()
public abstract List<Integer> getReferenceIndicesList()References for the visual segment.
repeated int32 reference_indices = 1;
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the referenceIndices. |