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.
    The domain of the source.
    com.google.protobuf.ByteString
    The domain of the source.
    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.
    The title of the source.
    com.google.protobuf.ByteString
    The title of the source.
    The URI of the source.
    com.google.protobuf.ByteString
    The URI of the source.

    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;
    • getUri

      String getUri()
       The URI of the source.
       
      string uri = 5;
      Returns:
      The uri.
    • getUriBytes

      com.google.protobuf.ByteString getUriBytes()
       The URI of the source.
       
      string uri = 5;
      Returns:
      The bytes for uri.
    • getTitle

      String getTitle()
       The title of the source.
       
      string title = 6;
      Returns:
      The title.
    • getTitleBytes

      com.google.protobuf.ByteString getTitleBytes()
       The title of the source.
       
      string title = 6;
      Returns:
      The bytes for title.
    • getDomain

      String getDomain()
       The domain of the source.
       
      string domain = 7;
      Returns:
      The domain.
    • getDomainBytes

      com.google.protobuf.ByteString getDomainBytes()
       The domain of the source.
       
      string domain = 7;
      Returns:
      The bytes for domain.