Table of Contents

Class InlinedEmbedContentResponse

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

Config for inlined_embedding_responses parameter.

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

Properties

Error

Output only. The error encountered while processing the request.

[JsonPropertyName("error")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public JobError? Error { get; set; }

Property Value

JobError

Metadata

Output only. The metadata associated with the request.

[JsonPropertyName("metadata")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Dictionary<string, object>? Metadata { get; set; }

Property Value

Dictionary<string, object>

Response

Output only. The response to the request.

[JsonPropertyName("response")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public SingleEmbedContentResponse? Response { get; set; }

Property Value

SingleEmbedContentResponse

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a InlinedEmbedContentResponse object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

InlinedEmbedContentResponse

The deserialized InlinedEmbedContentResponse object, or null if deserialization fails.