Class EmbeddingsBatchJobSource
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
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
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a EmbeddingsBatchJobSource object.
public static EmbeddingsBatchJobSource? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- EmbeddingsBatchJobSource
The deserialized EmbeddingsBatchJobSource object, or null if deserialization fails.