Table of Contents

Class BatchJobDestination

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

Config for dest parameter.

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

Properties

BigqueryUri

The BigQuery URI to the output table.

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

Property Value

string

FileName

The Gemini Developer API's file resource name of the output data (e.g. "files/12345"). The file will be a JSONL file with a single response per line. The responses will be GenerateContentResponse messages formatted as JSON. The responses will be written in the same order as the input requests.

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

Property Value

string

Format

Storage format of the output files. Must be one of: 'jsonl', 'bigquery', 'vertex-dataset'.

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

Property Value

string

GcsUri

The Google Cloud Storage URI to the output file.

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

Property Value

string

InlinedEmbedContentResponses

The responses to the requests in the batch. Returned when the batch was built using inlined requests. The responses will be in the same order as the input requests.

[JsonPropertyName("inlinedEmbedContentResponses")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<InlinedEmbedContentResponse>? InlinedEmbedContentResponses { get; set; }

Property Value

List<InlinedEmbedContentResponse>

InlinedResponses

The responses to the requests in the batch. Returned when the batch was built using inlined requests. The responses will be in the same order as the input requests.

[JsonPropertyName("inlinedResponses")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<InlinedResponse>? InlinedResponses { get; set; }

Property Value

List<InlinedResponse>

VertexDataset

This field is experimental and may change in future versions. The Vertex AI dataset destination.

[JsonPropertyName("vertexDataset")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public VertexMultimodalDatasetDestination? VertexDataset { get; set; }

Property Value

VertexMultimodalDatasetDestination

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a BatchJobDestination object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

BatchJobDestination

The deserialized BatchJobDestination object, or null if deserialization fails.