Table of Contents

Class GroundingChunkMapsPlaceAnswerSources

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

The sources that were used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as URIs to flag content.

public record GroundingChunkMapsPlaceAnswerSources : IEquatable<GroundingChunkMapsPlaceAnswerSources>
Inheritance
GroundingChunkMapsPlaceAnswerSources
Implements
Inherited Members

Properties

FlagContentUri

A link where users can flag a problem with the generated answer.

[JsonPropertyName("flagContentUri")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? FlagContentUri { get; set; }

Property Value

string

ReviewSnippet

Snippets of reviews that were used to generate the answer.

[JsonPropertyName("reviewSnippet")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<GroundingChunkMapsPlaceAnswerSourcesReviewSnippet>? ReviewSnippet { get; set; }

Property Value

List<GroundingChunkMapsPlaceAnswerSourcesReviewSnippet>

ReviewSnippets

Snippets of reviews that were used to generate the answer.

[JsonPropertyName("reviewSnippets")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<GroundingChunkMapsPlaceAnswerSourcesReviewSnippet>? ReviewSnippets { get; set; }

Property Value

List<GroundingChunkMapsPlaceAnswerSourcesReviewSnippet>

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a GroundingChunkMapsPlaceAnswerSources object.

public static GroundingChunkMapsPlaceAnswerSources? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

GroundingChunkMapsPlaceAnswerSources

The deserialized GroundingChunkMapsPlaceAnswerSources object, or null if deserialization fails.