public static interface AssistantGroundedContent.TextGroundingMetadata.SegmentOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getEndIndex()
public abstract long getEndIndex()
End of the segment, exclusive.
int64 end_index = 2;
Returns | |
---|---|
Type | Description |
long |
The endIndex. |
getGroundingScore()
public abstract float getGroundingScore()
Score for the segment.
float grounding_score = 5;
Returns | |
---|---|
Type | Description |
float |
The groundingScore. |
getReferenceIndices(int index)
public abstract int getReferenceIndices(int index)
References for the segment.
repeated int32 reference_indices = 4;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
int |
The referenceIndices at the given index. |
getReferenceIndicesCount()
public abstract int getReferenceIndicesCount()
References for the segment.
repeated int32 reference_indices = 4;
Returns | |
---|---|
Type | Description |
int |
The count of referenceIndices. |
getReferenceIndicesList()
public abstract List<Integer> getReferenceIndicesList()
References for the segment.
repeated int32 reference_indices = 4;
Returns | |
---|---|
Type | Description |
List<Integer> |
A list containing the referenceIndices. |
getStartIndex()
public abstract long getStartIndex()
Zero-based index indicating the start of the segment, measured in bytes of a UTF-8 string (i.e. characters encoded on multiple bytes have a length of more than one).
int64 start_index = 1;
Returns | |
---|---|
Type | Description |
long |
The startIndex. |
getText()
public abstract String getText()
The text segment itself.
string text = 6;
Returns | |
---|---|
Type | Description |
String |
The text. |
getTextBytes()
public abstract ByteString getTextBytes()
The text segment itself.
string text = 6;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for text. |