public interface FactChunkOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsSourceMetadata(String key)
More fine-grained information for the source reference.
|
String |
getChunkText()
Text content of the fact chunk.
|
com.google.protobuf.ByteString |
getChunkTextBytes()
Text content of the fact chunk.
|
int |
getIndex()
The index of this chunk.
|
String |
getSource()
Source from which this fact chunk was retrieved.
|
com.google.protobuf.ByteString |
getSourceBytes()
Source from which this fact chunk was retrieved.
|
Map<String,String> |
getSourceMetadata()
Deprecated.
|
int |
getSourceMetadataCount()
More fine-grained information for the source reference.
|
Map<String,String> |
getSourceMetadataMap()
More fine-grained information for the source reference.
|
String |
getSourceMetadataOrDefault(String key,
String defaultValue)
More fine-grained information for the source reference.
|
String |
getSourceMetadataOrThrow(String key)
More fine-grained information for the source reference.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getChunkText()
Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;com.google.protobuf.ByteString getChunkTextBytes()
Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;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;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;int getIndex()
The index of this chunk. Currently, only used for the streaming mode.
int32 index = 4;int getSourceMetadataCount()
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;boolean containsSourceMetadata(String key)
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;@Deprecated Map<String,String> getSourceMetadata()
getSourceMetadataMap() instead.Map<String,String> getSourceMetadataMap()
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;String getSourceMetadataOrDefault(String key, String defaultValue)
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;Copyright © 2024 Google LLC. All rights reserved.