Skip to content

Commit f2e9a88

Browse files
Google APIscopybara-github
authored andcommitted
feat: add Vertex Multimodal Datasets as input and output types in google.cloud.aiplatform.v1beta1.BatchPredictionJob
PiperOrigin-RevId: 866373820
1 parent 4e434c1 commit f2e9a88

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

google/cloud/aiplatform/v1/batch_prediction_job.proto

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -67,6 +67,10 @@ message BatchPredictionJob {
6767
// additional columns that are not described by the schema, and they will
6868
// be ignored.
6969
BigQuerySource bigquery_source = 3;
70+
71+
// A Vertex Managed Dataset. Currently, only datasets of type Multimodal
72+
// are supported.
73+
VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
7074
}
7175

7276
// Required. The format in which instances are given, must be one of the
@@ -226,6 +230,11 @@ message BatchPredictionJob {
226230
// has [google.rpc.Status][google.rpc.Status]
227231
// represented as a STRUCT, and containing only `code` and `message`.
228232
BigQueryDestination bigquery_destination = 3;
233+
234+
// The details for a Vertex Multimodal Dataset that will be created for
235+
// the output.
236+
VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination =
237+
6;
229238
}
230239

231240
// Required. The format in which Vertex AI gives the predictions, must be
@@ -250,6 +259,16 @@ message BatchPredictionJob {
250259
// format, into which the prediction output is written.
251260
string bigquery_output_dataset = 2
252261
[(google.api.field_behavior) = OUTPUT_ONLY];
262+
263+
// Output only. The resource name of the Vertex Managed Dataset created,
264+
// into which the prediction output is written. Format:
265+
// `projects/{project}/locations/{location}/datasets/{dataset}`
266+
string vertex_multimodal_dataset_name = 5 [
267+
(google.api.field_behavior) = OUTPUT_ONLY,
268+
(google.api.resource_reference) = {
269+
type: "aiplatform.googleapis.com/Dataset"
270+
}
271+
];
253272
}
254273

255274
// Output only. The name of the BigQuery table created, in

google/cloud/aiplatform/v1/io.proto

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@ syntax = "proto3";
1717
package google.cloud.aiplatform.v1;
1818

1919
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
2021
import "google/cloud/aiplatform/v1/api_auth.proto";
2122
import "google/protobuf/timestamp.proto";
2223

@@ -82,6 +83,30 @@ message BigQueryDestination {
8283
string output_uri = 1 [(google.api.field_behavior) = REQUIRED];
8384
}
8485

86+
// The Vertex Multimodal Dataset for the input content.
87+
message VertexMultimodalDatasetSource {
88+
// Required. The resource name of the Vertex Dataset.
89+
// Format: `projects/{project}/locations/{location}/datasets/{dataset}`
90+
string dataset_name = 1 [
91+
(google.api.field_behavior) = REQUIRED,
92+
(google.api.resource_reference) = {
93+
type: "aiplatform.googleapis.com/Dataset"
94+
}
95+
];
96+
}
97+
98+
// The details for a Vertex Multimodal Dataset output.
99+
message VertexMultimodalDatasetDestination {
100+
// Optional. The destination of the underlying BigQuery table that will be
101+
// created for the output Multimodal Dataset. If not specified, the BigQuery
102+
// table will be created in a default BigQuery dataset.
103+
BigQueryDestination bigquery_destination = 1
104+
[(google.api.field_behavior) = OPTIONAL];
105+
106+
// Optional. Display name of the output dataset.
107+
string display_name = 2 [(google.api.field_behavior) = OPTIONAL];
108+
}
109+
85110
// The storage details for CSV output content.
86111
message CsvDestination {
87112
// Required. Google Cloud Storage location.

0 commit comments

Comments
 (0)