Table of Contents

Class EmbedContentMetadata

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

Request-level metadata for the Gemini Enterprise Agent Platform Embed Content API.

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

Properties

BillableCharacterCount

Gemini Enterprise Agent Platform only. The total number of billable characters included in the request.

[JsonPropertyName("billableCharacterCount")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? BillableCharacterCount { get; set; }

Property Value

int?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a EmbedContentMetadata object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

EmbedContentMetadata

The deserialized EmbedContentMetadata object, or null if deserialization fails.