Table of Contents

Class CreateBatchJobConfig

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

Config for optional parameters.

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

Properties

Dest

GCS or BigQuery URI prefix for the output predictions. Example: "gs://path/to/output/data" or "bq://projectId.bqDatasetId.bqTableId".

[JsonPropertyName("dest")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public BatchJobDestination? Dest { get; set; }

Property Value

BatchJobDestination

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

WebhookConfig

Webhook configuration for receiving notifications when the batch operation completes.

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

Property Value

WebhookConfig

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a CreateBatchJobConfig object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

CreateBatchJobConfig

The deserialized CreateBatchJobConfig object, or null if deserialization fails.