Class BatchJobDestination.Builder

java.lang.Object
com.google.genai.types.BatchJobDestination.Builder
Enclosing class:
BatchJobDestination

public abstract static class BatchJobDestination.Builder extends Object
Builder for BatchJobDestination.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • format

      public abstract BatchJobDestination.Builder format(String format)
      Setter for format.

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

    • gcsUri

      public abstract BatchJobDestination.Builder gcsUri(String gcsUri)
      Setter for gcsUri.

      gcsUri: The Google Cloud Storage URI to the output file.

    • bigqueryUri

      public abstract BatchJobDestination.Builder bigqueryUri(String bigqueryUri)
      Setter for bigqueryUri.

      bigqueryUri: The BigQuery URI to the output table.

    • fileName

      public abstract BatchJobDestination.Builder fileName(String fileName)
      Setter for fileName.

      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

      public abstract BatchJobDestination.Builder inlinedResponses(List<InlinedResponse> inlinedResponses)
      Setter for inlinedResponses.

      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.

    • inlinedResponses

      public BatchJobDestination.Builder inlinedResponses(InlinedResponse... inlinedResponses)
      Setter for inlinedResponses.

      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.

    • inlinedResponses

      public BatchJobDestination.Builder inlinedResponses(InlinedResponse.Builder... inlinedResponsesBuilders)
      Setter for inlinedResponses builder.

      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.

    • build

      public abstract BatchJobDestination build()