Package com.google.genai.types
Class BatchJobSource
-
- All Implemented Interfaces:
public abstract class BatchJobSource extends JsonSerializable
Config for `src` parameter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classBatchJobSource.BuilderBuilder for BatchJobSource.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description BatchJobSource()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>format()Storage format of the input files. abstract Optional<List<String>>gcsUri()The Google Cloud Storage URIs to input files. abstract Optional<String>bigqueryUri()The BigQuery URI to input table. abstract Optional<String>fileName()The Gemini Developer API's file resource name of the input data (e.g. abstract Optional<List<InlinedRequest>>inlinedRequests()The Gemini Developer API's inlined input data to run batch job. abstract Optional<String>vertexDatasetName()This field is experimental and may change in future versions. static BatchJobSource.Builderbuilder()Instantiates a builder for BatchJobSource. abstract BatchJobSource.BuildertoBuilder()Creates a builder with the same values as this instance. static BatchJobSourcefromJson(String jsonString)Deserializes a JSON string to a BatchJobSource object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
format
abstract Optional<String> format()
Storage format of the input files. Must be one of: 'jsonl', 'bigquery', 'vertex-dataset'.
-
bigqueryUri
abstract Optional<String> bigqueryUri()
The BigQuery URI to input table.
-
fileName
abstract Optional<String> fileName()
The Gemini Developer API's file resource name of the input data (e.g. "files/12345").
-
inlinedRequests
abstract Optional<List<InlinedRequest>> inlinedRequests()
The Gemini Developer API's inlined input data to run batch job.
-
vertexDatasetName
abstract Optional<String> 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.
-
builder
static BatchJobSource.Builder builder()
Instantiates a builder for BatchJobSource.
-
toBuilder
abstract BatchJobSource.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static BatchJobSource fromJson(String jsonString)
Deserializes a JSON string to a BatchJobSource object.
-
-
-
-