Class BatchJobSource
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
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
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
GcsUri
The Google Cloud Storage URIs to input files.
[JsonPropertyName("gcsUri")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<string>? GcsUri { get; set; }
Property Value
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
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
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a BatchJobSource object.
public static BatchJobSource? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- BatchJobSource
The deserialized BatchJobSource object, or null if deserialization fails.