Table of Contents

Class CreateEmbeddingsBatchJobConfig

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

Config for optional parameters.

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

Properties

DisplayName

The user-defined name of this BatchJob.

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

Property Value

string

HttpOptions

Used to override HTTP request options.

[JsonPropertyName("httpOptions")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public HttpOptions? HttpOptions { get; set; }

Property Value

HttpOptions

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a CreateEmbeddingsBatchJobConfig object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

CreateEmbeddingsBatchJobConfig

The deserialized CreateEmbeddingsBatchJobConfig object, or null if deserialization fails.