Table of Contents

Class EmbeddingsBatchJobSource

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll
public record EmbeddingsBatchJobSource : IEquatable<EmbeddingsBatchJobSource>
Inheritance
EmbeddingsBatchJobSource
Implements
Inherited Members

Properties

FileName

The Gemini Developer API's file resource name of the input data (e.g. "files/12345").

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

Property Value

string

InlinedRequests

The Gemini Developer API's inlined input data to run batch job.

[JsonPropertyName("inlinedRequests")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public EmbedContentBatch? InlinedRequests { get; set; }

Property Value

EmbedContentBatch

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a EmbeddingsBatchJobSource object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

EmbeddingsBatchJobSource

The deserialized EmbeddingsBatchJobSource object, or null if deserialization fails.