Table of Contents

Class BatchJobSource

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

Config for src parameter.

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

Properties

BigqueryUri

The BigQuery URI to input 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 input data (e.g. "files/12345").

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

Property Value

string

Format

Storage format of the input 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 URIs to input files.

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

Property Value

List<string>

InlinedRequests

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

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

Property Value

List<InlinedRequest>

VertexDatasetName

This field is experimental and may change in future versions. The Vertex AI dataset resource name to use as input. Must be of type multimodal.

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

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a BatchJobSource object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

BatchJobSource

The deserialized BatchJobSource object, or null if deserialization fails.