Package com.google.genai.types
Class CreateBatchJobParameters
-
- All Implemented Interfaces:
@InternalApi() public abstract class CreateBatchJobParameters extends JsonSerializable
Config for batches.create parameters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classCreateBatchJobParameters.BuilderBuilder for CreateBatchJobParameters.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description CreateBatchJobParameters()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>model()The name of the model to produces the predictions via the BatchJob. abstract Optional<BatchJobSource>src()GCS URI(-s) or BigQuery URI to your input data to run batch job. abstract Optional<CreateBatchJobConfig>config()Optional parameters for creating a BatchJob. static CreateBatchJobParameters.Builderbuilder()Instantiates a builder for CreateBatchJobParameters. abstract CreateBatchJobParameters.BuildertoBuilder()Creates a builder with the same values as this instance. static CreateBatchJobParametersfromJson(String jsonString)Deserializes a JSON string to a CreateBatchJobParameters 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
-
model
abstract Optional<String> model()
The name of the model to produces the predictions via the BatchJob.
-
src
abstract Optional<BatchJobSource> src()
GCS URI(-s) or BigQuery URI to your input data to run batch job. Example: "gs://path/to/input/data" or "bq://projectId.bqDatasetId.bqTableId".
-
config
abstract Optional<CreateBatchJobConfig> config()
Optional parameters for creating a BatchJob.
-
builder
static CreateBatchJobParameters.Builder builder()
Instantiates a builder for CreateBatchJobParameters.
-
toBuilder
abstract CreateBatchJobParameters.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static CreateBatchJobParameters fromJson(String jsonString)
Deserializes a JSON string to a CreateBatchJobParameters object.
-
-
-
-