Class BatchJobDestination
-
- All Implemented Interfaces:
public abstract class BatchJobDestination extends JsonSerializable
Config for `des` parameter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classBatchJobDestination.BuilderBuilder for BatchJobDestination.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description BatchJobDestination()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>format()Storage format of the output files. abstract Optional<String>gcsUri()The Google Cloud Storage URI to the output file. abstract Optional<String>bigqueryUri()The BigQuery URI to the output table. abstract Optional<String>fileName()The Gemini Developer API's file resource name of the output data (e.g. abstract Optional<List<InlinedResponse>>inlinedResponses()The responses to the requests in the batch. abstract Optional<List<InlinedEmbedContentResponse>>inlinedEmbedContentResponses()The responses to the requests in the batch. abstract Optional<VertexMultimodalDatasetDestination>vertexDataset()This field is experimental and may change in future versions. static BatchJobDestination.Builderbuilder()Instantiates a builder for BatchJobDestination. abstract BatchJobDestination.BuildertoBuilder()Creates a builder with the same values as this instance. static BatchJobDestinationfromJson(String jsonString)Deserializes a JSON string to a BatchJobDestination 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 output files. Must be one of: 'jsonl', 'bigquery', 'vertex-dataset'.
-
bigqueryUri
abstract Optional<String> bigqueryUri()
The BigQuery URI to the output table.
-
fileName
abstract Optional<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.
-
inlinedResponses
abstract Optional<List<InlinedResponse>> 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.
-
inlinedEmbedContentResponses
abstract Optional<List<InlinedEmbedContentResponse>> 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.
-
vertexDataset
abstract Optional<VertexMultimodalDatasetDestination> vertexDataset()
This field is experimental and may change in future versions. The Vertex AI dataset destination.
-
builder
static BatchJobDestination.Builder builder()
Instantiates a builder for BatchJobDestination.
-
toBuilder
abstract BatchJobDestination.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static BatchJobDestination fromJson(String jsonString)
Deserializes a JSON string to a BatchJobDestination object.
-
-
-
-