diff --git a/AiPlatform/metadata/V1/BatchPredictionJob.php b/AiPlatform/metadata/V1/BatchPredictionJob.php index 9d51911ac9a5..852938ec6521 100644 Binary files a/AiPlatform/metadata/V1/BatchPredictionJob.php and b/AiPlatform/metadata/V1/BatchPredictionJob.php differ diff --git a/AiPlatform/metadata/V1/Io.php b/AiPlatform/metadata/V1/Io.php index 3348a2605e57..6e6e875ad15f 100644 Binary files a/AiPlatform/metadata/V1/Io.php and b/AiPlatform/metadata/V1/Io.php differ diff --git a/AiPlatform/src/V1/BatchPredictionJob/InputConfig.php b/AiPlatform/src/V1/BatchPredictionJob/InputConfig.php index 4885036c77ec..50b2f51bd865 100644 --- a/AiPlatform/src/V1/BatchPredictionJob/InputConfig.php +++ b/AiPlatform/src/V1/BatchPredictionJob/InputConfig.php @@ -43,6 +43,9 @@ class InputConfig extends \Google\Protobuf\Internal\Message * context OpenAPI Schema, if one is provided. The table may contain * additional columns that are not described by the schema, and they will * be ignored. + * @type \Google\Cloud\AIPlatform\V1\VertexMultimodalDatasetSource $vertex_multimodal_dataset_source + * A Vertex Managed Dataset. Currently, only datasets of type Multimodal + * are supported. * @type string $instances_format * Required. The format in which instances are given, must be one of the * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] @@ -124,6 +127,39 @@ public function setBigquerySource($var) return $this; } + /** + * A Vertex Managed Dataset. Currently, only datasets of type Multimodal + * are supported. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * @return \Google\Cloud\AIPlatform\V1\VertexMultimodalDatasetSource|null + */ + public function getVertexMultimodalDatasetSource() + { + return $this->readOneof(4); + } + + public function hasVertexMultimodalDatasetSource() + { + return $this->hasOneof(4); + } + + /** + * A Vertex Managed Dataset. Currently, only datasets of type Multimodal + * are supported. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * @param \Google\Cloud\AIPlatform\V1\VertexMultimodalDatasetSource $var + * @return $this + */ + public function setVertexMultimodalDatasetSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\VertexMultimodalDatasetSource::class); + $this->writeOneof(4, $var); + + return $this; + } + /** * Required. The format in which instances are given, must be one of the * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] diff --git a/AiPlatform/src/V1/BatchPredictionJob/OutputConfig.php b/AiPlatform/src/V1/BatchPredictionJob/OutputConfig.php index dcbebfa074d9..988df215f630 100644 --- a/AiPlatform/src/V1/BatchPredictionJob/OutputConfig.php +++ b/AiPlatform/src/V1/BatchPredictionJob/OutputConfig.php @@ -79,6 +79,9 @@ class OutputConfig extends \Google\Protobuf\Internal\Message * instance schema, followed by a single "errors" column, which as values * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. + * @type \Google\Cloud\AIPlatform\V1\VertexMultimodalDatasetDestination $vertex_multimodal_dataset_destination + * The details for a Vertex Multimodal Dataset that will be created for + * the output. * @type string $predictions_format * Required. The format in which Vertex AI gives the predictions, must be * one of the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] @@ -232,6 +235,39 @@ public function setBigqueryDestination($var) return $this; } + /** + * The details for a Vertex Multimodal Dataset that will be created for + * the output. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * @return \Google\Cloud\AIPlatform\V1\VertexMultimodalDatasetDestination|null + */ + public function getVertexMultimodalDatasetDestination() + { + return $this->readOneof(6); + } + + public function hasVertexMultimodalDatasetDestination() + { + return $this->hasOneof(6); + } + + /** + * The details for a Vertex Multimodal Dataset that will be created for + * the output. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * @param \Google\Cloud\AIPlatform\V1\VertexMultimodalDatasetDestination $var + * @return $this + */ + public function setVertexMultimodalDatasetDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\VertexMultimodalDatasetDestination::class); + $this->writeOneof(6, $var); + + return $this; + } + /** * Required. The format in which Vertex AI gives the predictions, must be * one of the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] diff --git a/AiPlatform/src/V1/BatchPredictionJob/OutputInfo.php b/AiPlatform/src/V1/BatchPredictionJob/OutputInfo.php index 387910e4004c..46e86aa2f892 100644 --- a/AiPlatform/src/V1/BatchPredictionJob/OutputInfo.php +++ b/AiPlatform/src/V1/BatchPredictionJob/OutputInfo.php @@ -41,6 +41,10 @@ class OutputInfo extends \Google\Protobuf\Internal\Message * Output only. The path of the BigQuery dataset created, in * `bq://projectId.bqDatasetId` * format, into which the prediction output is written. + * @type string $vertex_multimodal_dataset_name + * Output only. The resource name of the Vertex Managed Dataset created, + * into which the prediction output is written. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` * @type string $bigquery_output_table * Output only. The name of the BigQuery table created, in * `predictions_` @@ -121,6 +125,41 @@ public function setBigqueryOutputDataset($var) return $this; } + /** + * Output only. The resource name of the Vertex Managed Dataset created, + * into which the prediction output is written. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getVertexMultimodalDatasetName() + { + return $this->readOneof(5); + } + + public function hasVertexMultimodalDatasetName() + { + return $this->hasOneof(5); + } + + /** + * Output only. The resource name of the Vertex Managed Dataset created, + * into which the prediction output is written. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setVertexMultimodalDatasetName($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(5, $var); + + return $this; + } + /** * Output only. The name of the BigQuery table created, in * `predictions_` diff --git a/AiPlatform/src/V1/VertexMultimodalDatasetDestination.php b/AiPlatform/src/V1/VertexMultimodalDatasetDestination.php new file mode 100644 index 000000000000..dae48113ed48 --- /dev/null +++ b/AiPlatform/src/V1/VertexMultimodalDatasetDestination.php @@ -0,0 +1,119 @@ +google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + */ +class VertexMultimodalDatasetDestination extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The destination of the underlying BigQuery table that will be + * created for the output Multimodal Dataset. If not specified, the BigQuery + * table will be created in a default BigQuery dataset. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $bigquery_destination = null; + /** + * Optional. Display name of the output dataset. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\BigQueryDestination $bigquery_destination + * Optional. The destination of the underlying BigQuery table that will be + * created for the output Multimodal Dataset. If not specified, the BigQuery + * table will be created in a default BigQuery dataset. + * @type string $display_name + * Optional. Display name of the output dataset. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Io::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The destination of the underlying BigQuery table that will be + * created for the output Multimodal Dataset. If not specified, the BigQuery + * table will be created in a default BigQuery dataset. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\BigQueryDestination|null + */ + public function getBigqueryDestination() + { + return $this->bigquery_destination; + } + + public function hasBigqueryDestination() + { + return isset($this->bigquery_destination); + } + + public function clearBigqueryDestination() + { + unset($this->bigquery_destination); + } + + /** + * Optional. The destination of the underlying BigQuery table that will be + * created for the output Multimodal Dataset. If not specified, the BigQuery + * table will be created in a default BigQuery dataset. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\BigQueryDestination $var + * @return $this + */ + public function setBigqueryDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\BigQueryDestination::class); + $this->bigquery_destination = $var; + + return $this; + } + + /** + * Optional. Display name of the output dataset. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. Display name of the output dataset. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/AiPlatform/src/V1/VertexMultimodalDatasetSource.php b/AiPlatform/src/V1/VertexMultimodalDatasetSource.php new file mode 100644 index 000000000000..053c3d0d5b48 --- /dev/null +++ b/AiPlatform/src/V1/VertexMultimodalDatasetSource.php @@ -0,0 +1,71 @@ +google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + */ +class VertexMultimodalDatasetSource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Vertex Dataset. + * Format: `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $dataset_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dataset_name + * Required. The resource name of the Vertex Dataset. + * Format: `projects/{project}/locations/{location}/datasets/{dataset}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Io::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Vertex Dataset. + * Format: `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getDatasetName() + { + return $this->dataset_name; + } + + /** + * Required. The resource name of the Vertex Dataset. + * Format: `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDatasetName($var) + { + GPBUtil::checkString($var, True); + $this->dataset_name = $var; + + return $this; + } + +} +