Table of Contents

Class GroundingMetadataSourceFlaggingUri

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

A URI that can be used to flag a place or review for inappropriate content. This is populated only when the grounding source is Google Maps. This data type is not supported in Gemini API.

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

Properties

FlagContentUri

The URI that can be used to flag the content.

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

Property Value

string

SourceId

The ID of the place or review.

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

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a GroundingMetadataSourceFlaggingUri object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

GroundingMetadataSourceFlaggingUri

The deserialized GroundingMetadataSourceFlaggingUri object, or null if deserialization fails.