Table of Contents

Class GroundingChunkMapsPlaceAnswerSourcesReviewSnippet

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

Encapsulates a review snippet.

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

Properties

AuthorAttribution

This review's author.

[JsonPropertyName("authorAttribution")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution? AuthorAttribution { get; set; }

Property Value

GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution

FlagContentUri

A link where users can flag a problem with the review.

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

Property Value

string

GoogleMapsUri

A link to show the review on Google Maps.

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

Property Value

string

RelativePublishTimeDescription

A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country.

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

Property Value

string

Review

A reference representing this place review which may be used to look up this place review again.

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

Property Value

string

ReviewId

Id of the review referencing the place.

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

Property Value

string

Title

Title of the review.

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

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a GroundingChunkMapsPlaceAnswerSourcesReviewSnippet object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

GroundingChunkMapsPlaceAnswerSourcesReviewSnippet

The deserialized GroundingChunkMapsPlaceAnswerSourcesReviewSnippet object, or null if deserialization fails.