Interface AssistantGroundedContent.TextGroundingMetadata.SegmentOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AssistantGroundedContent.TextGroundingMetadata.Segment,AssistantGroundedContent.TextGroundingMetadata.Segment.Builder
- Enclosing class:
- AssistantGroundedContent.TextGroundingMetadata
public static interface AssistantGroundedContent.TextGroundingMetadata.SegmentOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlongEnd of the segment, exclusive.floatScore for the segment.intgetReferenceIndices(int index) References for the segment.intReferences for the segment.References for the segment.longZero-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).getText()The text segment itself.com.google.protobuf.ByteStringThe text segment itself.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getStartIndex
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:
- The startIndex.
-
getEndIndex
long getEndIndex()End of the segment, exclusive.
int64 end_index = 2;- Returns:
- The endIndex.
-
getReferenceIndicesList
References for the segment.
repeated int32 reference_indices = 4;- Returns:
- A list containing the referenceIndices.
-
getReferenceIndicesCount
int getReferenceIndicesCount()References for the segment.
repeated int32 reference_indices = 4;- Returns:
- The count of referenceIndices.
-
getReferenceIndices
int getReferenceIndices(int index) References for the segment.
repeated int32 reference_indices = 4;- Parameters:
index- The index of the element to return.- Returns:
- The referenceIndices at the given index.
-
getGroundingScore
float getGroundingScore()Score for the segment.
float grounding_score = 5;- Returns:
- The groundingScore.
-
getText
String getText()The text segment itself.
string text = 6;- Returns:
- The text.
-
getTextBytes
com.google.protobuf.ByteString getTextBytes()The text segment itself.
string text = 6;- Returns:
- The bytes for text.
-