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 TypeMethodDescriptionbooleanMore fine-grained information for the source reference.Text content of the fact chunk.com.google.protobuf.ByteStringText content of the fact chunk.The domain of the source.com.google.protobuf.ByteStringThe domain of the source.intgetIndex()The index of this chunk.Source from which this fact chunk was retrieved.com.google.protobuf.ByteStringSource from which this fact chunk was retrieved.Deprecated.intMore fine-grained information for the source reference.More fine-grained information for the source reference.getSourceMetadataOrDefault(String key, String defaultValue) More fine-grained information for the source reference.More fine-grained information for the source reference.getTitle()The title of the source.com.google.protobuf.ByteStringThe title of the source.getUri()The URI of the source.com.google.protobuf.ByteStringThe URI of the source.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
-
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
More fine-grained information for the source reference.
map<string, string> source_metadata = 3; -
getSourceMetadata
Deprecated.UsegetSourceMetadataMap()instead. -
getSourceMetadataMap
More fine-grained information for the source reference.
map<string, string> source_metadata = 3; -
getSourceMetadataOrDefault
More fine-grained information for the source reference.
map<string, string> source_metadata = 3; -
getSourceMetadataOrThrow
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.
-