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 Type
    Method
    Description
    long
    End of the segment, exclusive.
    float
    Score for the segment.
    int
    References for the segment.
    int
    References for the segment.
    References for the segment.
    long
    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).
    The text segment itself.
    com.google.protobuf.ByteString
    The text segment itself.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods 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

      List<Integer> 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.