GroundingMetadata class final
Metadata returned to client when grounding is enabled.
- Inheritance
-
- Object
- ProtoMessage
- GroundingMetadata
Constructors
-
GroundingMetadata({SearchEntryPoint? searchEntryPoint, List<
GroundingChunk> groundingChunks = const [], List<GroundingSupport> groundingSupports = const [], RetrievalMetadata? retrievalMetadata, List<String> webSearchQueries = const [], String? googleMapsWidgetContextToken}) - GroundingMetadata.fromJson(Object? j)
-
factory
Properties
- googleMapsWidgetContextToken → String?
-
Optional. Resource name of the Google Maps widget context token that can be
used with the PlacesContextElement widget in order to render contextual
data. Only populated in the case that grounding with Google Maps is
enabled.
final
-
groundingChunks
→ List<
GroundingChunk> -
List of supporting references retrieved from specified grounding source.
final
-
groundingSupports
→ List<
GroundingSupport> -
List of grounding support.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - retrievalMetadata → RetrievalMetadata?
-
Metadata related to retrieval in the grounding flow.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchEntryPoint → SearchEntryPoint?
-
Optional. Google search entry for the following-up web searches.
final
-
webSearchQueries
→ List<
String> -
Web search queries for the following-up web search.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String