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.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.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;
-