public static interface AssistantGroundedContent.TextGroundingMetadata.SegmentOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
long |
getEndIndex()
End of the segment, exclusive.
|
float |
getGroundingScore()
Score for the segment.
|
int |
getReferenceIndices(int index)
References for the segment.
|
int |
getReferenceIndicesCount()
References for the segment.
|
List<Integer> |
getReferenceIndicesList()
References for the segment.
|
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).
|
String |
getText()
The text segment itself.
|
com.google.protobuf.ByteString |
getTextBytes()
The text segment itself.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneoflong 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;long getEndIndex()
End of the segment, exclusive.
int64 end_index = 2;List<Integer> getReferenceIndicesList()
References for the segment.
repeated int32 reference_indices = 4;int getReferenceIndicesCount()
References for the segment.
repeated int32 reference_indices = 4;int getReferenceIndices(int index)
References for the segment.
repeated int32 reference_indices = 4;index - The index of the element to return.float getGroundingScore()
Score for the segment.
float grounding_score = 5;String getText()
The text segment itself.
string text = 6;com.google.protobuf.ByteString getTextBytes()
The text segment itself.
string text = 6;Copyright © 2026 Google LLC. All rights reserved.