Interface FactChunkOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
FactChunk, FactChunk.Builder

@Generated public interface FactChunkOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    More fine-grained information for the source reference.
    Text content of the fact chunk.
    com.google.protobuf.ByteString
    Text content of the fact chunk.
    int
    The index of this chunk.
    Source from which this fact chunk was retrieved.
    com.google.protobuf.ByteString
    Source from which this fact chunk was retrieved.
    Deprecated.
    int
    More fine-grained information for the source reference.
    More fine-grained information for the source reference.
    More fine-grained information for the source reference.
    More fine-grained information for the source reference.

    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

    • getChunkText

      String getChunkText()
       Text content of the fact chunk. Can be at most 10K characters long.
       
      string chunk_text = 1;
      Returns:
      The chunkText.
    • getChunkTextBytes

      com.google.protobuf.ByteString getChunkTextBytes()
       Text content of the fact chunk. Can be at most 10K characters long.
       
      string chunk_text = 1;
      Returns:
      The bytes for chunkText.
    • getSource

      String getSource()
       Source from which this fact chunk was retrieved. If it was retrieved
       from the GroundingFacts provided in the request then this field will
       contain the index of the specific fact from which this chunk was
       retrieved.
       
      string source = 2;
      Returns:
      The source.
    • getSourceBytes

      com.google.protobuf.ByteString getSourceBytes()
       Source from which this fact chunk was retrieved. If it was retrieved
       from the GroundingFacts provided in the request then this field will
       contain the index of the specific fact from which this chunk was
       retrieved.
       
      string source = 2;
      Returns:
      The bytes for source.
    • getIndex

      int getIndex()
       The index of this chunk. Currently, only used for the streaming mode.
       
      int32 index = 4;
      Returns:
      The index.
    • getSourceMetadataCount

      int getSourceMetadataCount()
       More fine-grained information for the source reference.
       
      map<string, string> source_metadata = 3;
    • containsSourceMetadata

      boolean containsSourceMetadata(String key)
       More fine-grained information for the source reference.
       
      map<string, string> source_metadata = 3;
    • getSourceMetadata

      @Deprecated Map<String,String> getSourceMetadata()
      Deprecated.
    • getSourceMetadataMap

      Map<String,String> getSourceMetadataMap()
       More fine-grained information for the source reference.
       
      map<string, string> source_metadata = 3;
    • getSourceMetadataOrDefault

      String getSourceMetadataOrDefault(String key, String defaultValue)
       More fine-grained information for the source reference.
       
      map<string, string> source_metadata = 3;
    • getSourceMetadataOrThrow

      String getSourceMetadataOrThrow(String key)
       More fine-grained information for the source reference.
       
      map<string, string> source_metadata = 3;