diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto index 69723896fe2..5b4258e1fd1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -67,6 +67,10 @@ message BatchPredictionJob { // additional columns that are not described by the schema, and they will // be ignored. BigQuerySource bigquery_source = 3; + + // A Vertex Managed Dataset. Currently, only datasets of type Multimodal + // are supported. + VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; } // Required. The format in which instances are given, must be one of the @@ -226,6 +230,11 @@ message BatchPredictionJob { // has [google.rpc.Status][google.rpc.Status] // represented as a STRUCT, and containing only `code` and `message`. BigQueryDestination bigquery_destination = 3; + + // The details for a Vertex Multimodal Dataset that will be created for + // the output. + VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = + 6; } // Required. The format in which Vertex AI gives the predictions, must be @@ -250,6 +259,16 @@ message BatchPredictionJob { // format, into which the prediction output is written. string bigquery_output_dataset = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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}` + string vertex_multimodal_dataset_name = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; } // Output only. The name of the BigQuery table created, in diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset.proto index 9a6b7f607f7..a515e4b6418 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,9 +40,14 @@ message Dataset { }; // Output only. Identifier. The resource name of the Dataset. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = IDENTIFIER + (google.api.field_behavior) = IDENTIFIER, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } ]; // Required. The user-defined name of the Dataset. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_service.proto index e234e3ba6ff..6fa941371b1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -259,9 +259,7 @@ service DatasetService { option (google.api.method_signature) = "name"; } - // Lists Annotations belongs to a dataitem - // This RPC is only available in InternalDatasetService. It is only used for - // exporting conversation data to CCAI Insights. + // Lists Annotations belongs to a dataitem. rpc ListAnnotations(ListAnnotationsRequest) returns (ListAnnotationsResponse) { option (google.api.http) = { @@ -296,7 +294,6 @@ message CreateDatasetOperationMetadata { // Request message for // [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset]. -// Next ID: 4 message GetDatasetRequest { // Required. The name of the Dataset resource. string name = 1 [ @@ -528,7 +525,6 @@ message DeleteDatasetVersionRequest { // Request message for // [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion]. -// Next ID: 4 message GetDatasetVersionRequest { // Required. The resource name of the Dataset version to delete. // Format: diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_version.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_version.proto index 0998c614fa5..226c2f2afc7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_version.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_version.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,9 +37,14 @@ message DatasetVersion { }; // Output only. Identifier. The resource name of the DatasetVersion. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = IDENTIFIER + (google.api.field_behavior) = IDENTIFIER, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DatasetVersion" + } ]; // Output only. Timestamp when this DatasetVersion was created. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/io.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/io.proto index 19dfba1aad5..70b1b9df435 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/io.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/io.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/aiplatform/v1/api_auth.proto"; import "google/protobuf/timestamp.proto"; @@ -82,6 +83,30 @@ message BigQueryDestination { string output_uri = 1 [(google.api.field_behavior) = REQUIRED]; } +// The Vertex Multimodal Dataset for the input content. +message VertexMultimodalDatasetSource { + // Required. The resource name of the Vertex Dataset. + // Format: `projects/{project}/locations/{location}/datasets/{dataset}` + string dataset_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; +} + +// The details for a Vertex Multimodal Dataset output. +message VertexMultimodalDatasetDestination { + // 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. + BigQueryDestination bigquery_destination = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Display name of the output dataset. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; +} + // The storage details for CSV output content. message CsvDestination { // Required. Google Cloud Storage location. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schedule.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schedule.proto index 71e457ca91b..ee1eaefb168 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schedule.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schedule.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -159,6 +159,14 @@ message Schedule { // execution of the operations/jobs created by the requests (if applicable). int64 max_concurrent_run_count = 11 [(google.api.field_behavior) = REQUIRED]; + // Optional. Specifies the maximum number of active runs that can be executed + // concurrently for this Schedule. This limits the number of runs that can be + // in a non-terminal state at the same time. + // Currently, this field is only supported for requests of type + // CreatePipelineJobRequest. + int64 max_concurrent_active_run_count = 21 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Whether new scheduled runs can be queued when max_concurrent_runs // limit is reached. If set to true, new runs will be queued instead of // skipped. Default to false. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto index 15607889a3e..7be3f4f5edc 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -70,6 +70,10 @@ message BatchPredictionJob { // additional columns that are not described by the schema, and they will // be ignored. BigQuerySource bigquery_source = 3; + + // A Vertex Managed Dataset. Currently, only datasets of type Multimodal + // are supported. + VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; } // Required. The format in which instances are given, must be one of the @@ -230,6 +234,11 @@ message BatchPredictionJob { // has [google.rpc.Status][google.rpc.Status] // represented as a STRUCT, and containing only `code` and `message`. BigQueryDestination bigquery_destination = 3; + + // The details for a Vertex Multimodal Dataset that will be created for + // the output. + VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = + 6; } // Required. The format in which Vertex AI gives the predictions, must be @@ -255,6 +264,16 @@ message BatchPredictionJob { // format, into which the prediction output is written. string bigquery_output_dataset = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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}` + string vertex_multimodal_dataset_name = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; } // Output only. The name of the BigQuery table created, in diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset.proto index 43032debb0c..d208f8e2ec2 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,9 +40,14 @@ message Dataset { }; // Output only. Identifier. The resource name of the Dataset. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = IDENTIFIER + (google.api.field_behavior) = IDENTIFIER, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } ]; // Required. The user-defined name of the Dataset. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto index 9cddafa697e..bce5a6eb3ef 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -1151,6 +1151,11 @@ message GeminiExample { repeated SafetySetting safety_settings = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Settings for prompt and response sanitization using the Model + // Armor service. If supplied, safety_settings must not be supplied. + ModelArmorConfig model_armor_config = 11 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Generation config. GenerationConfig generation_config = 4 [(google.api.field_behavior) = OPTIONAL]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_version.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_version.proto index 4599081f742..ecdeb1a0da9 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_version.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_version.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,9 +37,14 @@ message DatasetVersion { }; // Output only. Identifier. The resource name of the DatasetVersion. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = IDENTIFIER + (google.api.field_behavior) = IDENTIFIER, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DatasetVersion" + } ]; // Output only. Timestamp when this DatasetVersion was created. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/evaluation_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/evaluation_service.proto index f4a30cec634..f015bc4194b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/evaluation_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/evaluation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -24,6 +24,8 @@ import "google/cloud/aiplatform/v1beta1/content.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/struct.proto"; +import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; @@ -45,6 +47,7 @@ service EvaluationService { option (google.api.http) = { post: "/v1beta1/{location=projects/*/locations/*}:evaluateInstances" body: "*" + additional_bindings { post: "/v1beta1:evaluateInstances" body: "*" } }; } @@ -54,6 +57,7 @@ service EvaluationService { option (google.api.http) = { post: "/v1beta1/{location=projects/*/locations/*}:evaluateDataset" body: "*" + additional_bindings { post: "/v1beta1:evaluateDataset" body: "*" } }; option (google.longrunning.operation_info) = { response_type: "EvaluateDatasetResponse" @@ -83,18 +87,18 @@ message EvaluateDatasetOperationMetadata { GenericOperationMetadata generic_metadata = 1; } -// Response in LRO for EvaluationService.EvaluateDataset. +// The results from an evaluation run performed by the EvaluationService. message EvaluateDatasetResponse { // Output only. Aggregation statistics derived from results of - // EvaluationService.EvaluateDataset. + // EvaluationService. AggregationOutput aggregation_output = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Output info for EvaluationService.EvaluateDataset. + // Output only. Output info for EvaluationService. OutputInfo output_info = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Describes the info for output of EvaluationService.EvaluateDataset. +// Describes the info for output of EvaluationService. message OutputInfo { // The output location into which evaluation output is written. oneof output_location { @@ -172,9 +176,10 @@ message OutputConfig { } } -// The metric used for dataset level evaluation. +// The metric used for running evaluations. message Metric { - // The aggregation metrics supported by EvaluationService.EvaluateDataset. + // The per-metric statistics on evaluation results supported by + // `EvaluationService.EvaluateDataset`. enum AggregationMetric { // Unspecified aggregation metric. AGGREGATION_METRIC_UNSPECIFIED = 0; @@ -210,8 +215,18 @@ message Metric { PERCENTILE_P99 = 10; } - // The metric spec used for evaluation. + // The spec for the metric. + // It would be either a pre-defined metric, or a inline metric spec. oneof metric_spec { + // The spec for a pre-defined metric. + PredefinedMetricSpec predefined_metric_spec = 8; + + // Spec for a computation based metric. + ComputationBasedMetricSpec computation_based_metric_spec = 9; + + // Spec for an LLM based metric. + LLMBasedMetricSpec llm_based_metric_spec = 10; + // Spec for pointwise metric. PointwiseMetricSpec pointwise_metric_spec = 2; @@ -511,6 +526,92 @@ message EvaluateInstancesResponse { RubricBasedInstructionFollowingResult rubric_based_instruction_following_result = 38; } + + // Metric results for each instance. + // The order of the metric results is guaranteed to be the same as the order + // of the instances in the request. + repeated MetricResult metric_results = 43; +} + +// Result for a single metric on a single instance. +message MetricResult { + // Output only. The score for the metric. + // Please refer to each metric's documentation for the meaning of the score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The explanation for the metric result. + optional string explanation = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The error status for the metric result. + optional google.rpc.Status error = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The spec for a pre-defined metric. +message PredefinedMetricSpec { + // Required. The name of a pre-defined metric, such as + // "instruction_following_v1" or "text_quality_v1". + string metric_spec_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The parameters needed to run the pre-defined metric. + google.protobuf.Struct metric_spec_parameters = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Specification for a computation based metric. +message ComputationBasedMetricSpec { + // Types of computation based metrics. + enum ComputationBasedMetricType { + // Unspecified computation based metric type. + COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED = 0; + + // Exact match metric. + EXACT_MATCH = 1; + + // BLEU metric. + BLEU = 2; + + // ROUGE metric. + ROUGE = 3; + } + + // Required. The type of the computation based metric. + optional ComputationBasedMetricType type = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A map of parameters for the metric, e.g. {"rouge_type": + // "rougeL"}. + optional google.protobuf.Struct parameters = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Specification for an LLM based metric. +message LLMBasedMetricSpec { + // Source of the rubrics to be used for evaluation. + oneof rubrics_source { + // Use a pre-defined group of rubrics associated with the input. + // Refers to a key in the rubric_groups map of EvaluationInstance. + string rubric_group_key = 4; + + // Dynamically generate rubrics using a predefined spec. + PredefinedMetricSpec predefined_rubric_generation_spec = 6; + } + + // Required. Template for the prompt sent to the judge model. + optional string metric_prompt_template = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. System instructions for the judge model. + optional string system_instruction = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional configuration for the judge LLM (Autorater). + optional AutoraterConfig judge_autorater_config = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional additional configuration for the metric. + optional google.protobuf.Struct additional_config = 7 + [(google.api.field_behavior) = OPTIONAL]; } // Input for exact match metric. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto index eb34506f2dd..3b85f235571 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/api_auth.proto"; import "google/protobuf/timestamp.proto"; @@ -82,6 +83,30 @@ message BigQueryDestination { string output_uri = 1 [(google.api.field_behavior) = REQUIRED]; } +// The Vertex Multimodal Dataset for the input content. +message VertexMultimodalDatasetSource { + // Required. The resource name of the Vertex Dataset. + // Format: `projects/{project}/locations/{location}/datasets/{dataset}` + string dataset_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; +} + +// The details for a Vertex Multimodal Dataset output. +message VertexMultimodalDatasetDestination { + // 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. + BigQueryDestination bigquery_destination = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Display name of the output dataset. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; +} + // The storage details for CSV output content. message CsvDestination { // Required. Google Cloud Storage location. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schedule.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schedule.proto index c333d0b4af7..79f5aa32f60 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schedule.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schedule.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -164,6 +164,14 @@ message Schedule { // execution of the operations/jobs created by the requests (if applicable). int64 max_concurrent_run_count = 11 [(google.api.field_behavior) = REQUIRED]; + // Optional. Specifies the maximum number of active runs that can be executed + // concurrently for this Schedule. This limits the number of runs that can be + // in a non-terminal state at the same time. + // Currently, this field is only supported for requests of type + // CreatePipelineJobRequest. + int64 max_concurrent_active_run_count = 21 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Whether new scheduled runs can be queued when max_concurrent_runs // limit is reached. If set to true, new runs will be queued instead of // skipped. Default to false. diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index c17e2624568..acbc454ac0d 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -1070,6 +1070,9 @@ export namespace google { /** InputConfig bigquerySource */ bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); + /** InputConfig vertexMultimodalDatasetSource */ + vertexMultimodalDatasetSource?: (google.cloud.aiplatform.v1.IVertexMultimodalDatasetSource|null); + /** InputConfig instancesFormat */ instancesFormat?: (string|null); } @@ -1089,11 +1092,14 @@ export namespace google { /** InputConfig bigquerySource. */ public bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); + /** InputConfig vertexMultimodalDatasetSource. */ + public vertexMultimodalDatasetSource?: (google.cloud.aiplatform.v1.IVertexMultimodalDatasetSource|null); + /** InputConfig instancesFormat. */ public instancesFormat: string; /** InputConfig source. */ - public source?: ("gcsSource"|"bigquerySource"); + public source?: ("gcsSource"|"bigquerySource"|"vertexMultimodalDatasetSource"); /** * Creates a new InputConfig instance using the specified properties. @@ -1297,6 +1303,9 @@ export namespace google { /** OutputConfig bigqueryDestination */ bigqueryDestination?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + /** OutputConfig vertexMultimodalDatasetDestination */ + vertexMultimodalDatasetDestination?: (google.cloud.aiplatform.v1.IVertexMultimodalDatasetDestination|null); + /** OutputConfig predictionsFormat */ predictionsFormat?: (string|null); } @@ -1316,11 +1325,14 @@ export namespace google { /** OutputConfig bigqueryDestination. */ public bigqueryDestination?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + /** OutputConfig vertexMultimodalDatasetDestination. */ + public vertexMultimodalDatasetDestination?: (google.cloud.aiplatform.v1.IVertexMultimodalDatasetDestination|null); + /** OutputConfig predictionsFormat. */ public predictionsFormat: string; /** OutputConfig destination. */ - public destination?: ("gcsDestination"|"bigqueryDestination"); + public destination?: ("gcsDestination"|"bigqueryDestination"|"vertexMultimodalDatasetDestination"); /** * Creates a new OutputConfig instance using the specified properties. @@ -1409,6 +1421,9 @@ export namespace google { /** OutputInfo bigqueryOutputDataset */ bigqueryOutputDataset?: (string|null); + /** OutputInfo vertexMultimodalDatasetName */ + vertexMultimodalDatasetName?: (string|null); + /** OutputInfo bigqueryOutputTable */ bigqueryOutputTable?: (string|null); } @@ -1428,11 +1443,14 @@ export namespace google { /** OutputInfo bigqueryOutputDataset. */ public bigqueryOutputDataset?: (string|null); + /** OutputInfo vertexMultimodalDatasetName. */ + public vertexMultimodalDatasetName?: (string|null); + /** OutputInfo bigqueryOutputTable. */ public bigqueryOutputTable: string; /** OutputInfo outputLocation. */ - public outputLocation?: ("gcsOutputDirectory"|"bigqueryOutputDataset"); + public outputLocation?: ("gcsOutputDirectory"|"bigqueryOutputDataset"|"vertexMultimodalDatasetName"); /** * Creates a new OutputInfo instance using the specified properties. @@ -5292,6 +5310,206 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a VertexMultimodalDatasetSource. */ + interface IVertexMultimodalDatasetSource { + + /** VertexMultimodalDatasetSource datasetName */ + datasetName?: (string|null); + } + + /** Represents a VertexMultimodalDatasetSource. */ + class VertexMultimodalDatasetSource implements IVertexMultimodalDatasetSource { + + /** + * Constructs a new VertexMultimodalDatasetSource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IVertexMultimodalDatasetSource); + + /** VertexMultimodalDatasetSource datasetName. */ + public datasetName: string; + + /** + * Creates a new VertexMultimodalDatasetSource instance using the specified properties. + * @param [properties] Properties to set + * @returns VertexMultimodalDatasetSource instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IVertexMultimodalDatasetSource): google.cloud.aiplatform.v1.VertexMultimodalDatasetSource; + + /** + * Encodes the specified VertexMultimodalDatasetSource message. Does not implicitly {@link google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.verify|verify} messages. + * @param message VertexMultimodalDatasetSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IVertexMultimodalDatasetSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VertexMultimodalDatasetSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.verify|verify} messages. + * @param message VertexMultimodalDatasetSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IVertexMultimodalDatasetSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VertexMultimodalDatasetSource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VertexMultimodalDatasetSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.VertexMultimodalDatasetSource; + + /** + * Decodes a VertexMultimodalDatasetSource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VertexMultimodalDatasetSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.VertexMultimodalDatasetSource; + + /** + * Verifies a VertexMultimodalDatasetSource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VertexMultimodalDatasetSource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VertexMultimodalDatasetSource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.VertexMultimodalDatasetSource; + + /** + * Creates a plain object from a VertexMultimodalDatasetSource message. Also converts values to other types if specified. + * @param message VertexMultimodalDatasetSource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.VertexMultimodalDatasetSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VertexMultimodalDatasetSource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VertexMultimodalDatasetSource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VertexMultimodalDatasetDestination. */ + interface IVertexMultimodalDatasetDestination { + + /** VertexMultimodalDatasetDestination bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + + /** VertexMultimodalDatasetDestination displayName */ + displayName?: (string|null); + } + + /** Represents a VertexMultimodalDatasetDestination. */ + class VertexMultimodalDatasetDestination implements IVertexMultimodalDatasetDestination { + + /** + * Constructs a new VertexMultimodalDatasetDestination. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IVertexMultimodalDatasetDestination); + + /** VertexMultimodalDatasetDestination bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + + /** VertexMultimodalDatasetDestination displayName. */ + public displayName: string; + + /** + * Creates a new VertexMultimodalDatasetDestination instance using the specified properties. + * @param [properties] Properties to set + * @returns VertexMultimodalDatasetDestination instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IVertexMultimodalDatasetDestination): google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination; + + /** + * Encodes the specified VertexMultimodalDatasetDestination message. Does not implicitly {@link google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.verify|verify} messages. + * @param message VertexMultimodalDatasetDestination message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IVertexMultimodalDatasetDestination, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VertexMultimodalDatasetDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.verify|verify} messages. + * @param message VertexMultimodalDatasetDestination message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IVertexMultimodalDatasetDestination, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VertexMultimodalDatasetDestination message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VertexMultimodalDatasetDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination; + + /** + * Decodes a VertexMultimodalDatasetDestination message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VertexMultimodalDatasetDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination; + + /** + * Verifies a VertexMultimodalDatasetDestination message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VertexMultimodalDatasetDestination message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VertexMultimodalDatasetDestination + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination; + + /** + * Creates a plain object from a VertexMultimodalDatasetDestination message. Also converts values to other types if specified. + * @param message VertexMultimodalDatasetDestination + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VertexMultimodalDatasetDestination to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VertexMultimodalDatasetDestination + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a CsvDestination. */ interface ICsvDestination { @@ -122064,6 +122282,9 @@ export namespace google { /** Schedule maxConcurrentRunCount */ maxConcurrentRunCount?: (number|Long|string|null); + /** Schedule maxConcurrentActiveRunCount */ + maxConcurrentActiveRunCount?: (number|Long|string|null); + /** Schedule allowQueueing */ allowQueueing?: (boolean|null); @@ -122131,6 +122352,9 @@ export namespace google { /** Schedule maxConcurrentRunCount. */ public maxConcurrentRunCount: (number|Long|string); + /** Schedule maxConcurrentActiveRunCount. */ + public maxConcurrentActiveRunCount: (number|Long|string); + /** Schedule allowQueueing. */ public allowQueueing: boolean; @@ -145606,6 +145830,9 @@ export namespace google { /** InputConfig bigquerySource */ bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + /** InputConfig vertexMultimodalDatasetSource */ + vertexMultimodalDatasetSource?: (google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetSource|null); + /** InputConfig instancesFormat */ instancesFormat?: (string|null); } @@ -145625,11 +145852,14 @@ export namespace google { /** InputConfig bigquerySource. */ public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + /** InputConfig vertexMultimodalDatasetSource. */ + public vertexMultimodalDatasetSource?: (google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetSource|null); + /** InputConfig instancesFormat. */ public instancesFormat: string; /** InputConfig source. */ - public source?: ("gcsSource"|"bigquerySource"); + public source?: ("gcsSource"|"bigquerySource"|"vertexMultimodalDatasetSource"); /** * Creates a new InputConfig instance using the specified properties. @@ -145833,6 +146063,9 @@ export namespace google { /** OutputConfig bigqueryDestination */ bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** OutputConfig vertexMultimodalDatasetDestination */ + vertexMultimodalDatasetDestination?: (google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetDestination|null); + /** OutputConfig predictionsFormat */ predictionsFormat?: (string|null); } @@ -145852,11 +146085,14 @@ export namespace google { /** OutputConfig bigqueryDestination. */ public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** OutputConfig vertexMultimodalDatasetDestination. */ + public vertexMultimodalDatasetDestination?: (google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetDestination|null); + /** OutputConfig predictionsFormat. */ public predictionsFormat: string; /** OutputConfig destination. */ - public destination?: ("gcsDestination"|"bigqueryDestination"); + public destination?: ("gcsDestination"|"bigqueryDestination"|"vertexMultimodalDatasetDestination"); /** * Creates a new OutputConfig instance using the specified properties. @@ -145945,6 +146181,9 @@ export namespace google { /** OutputInfo bigqueryOutputDataset */ bigqueryOutputDataset?: (string|null); + /** OutputInfo vertexMultimodalDatasetName */ + vertexMultimodalDatasetName?: (string|null); + /** OutputInfo bigqueryOutputTable */ bigqueryOutputTable?: (string|null); } @@ -145964,11 +146203,14 @@ export namespace google { /** OutputInfo bigqueryOutputDataset. */ public bigqueryOutputDataset?: (string|null); + /** OutputInfo vertexMultimodalDatasetName. */ + public vertexMultimodalDatasetName?: (string|null); + /** OutputInfo bigqueryOutputTable. */ public bigqueryOutputTable: string; /** OutputInfo outputLocation. */ - public outputLocation?: ("gcsOutputDirectory"|"bigqueryOutputDataset"); + public outputLocation?: ("gcsOutputDirectory"|"bigqueryOutputDataset"|"vertexMultimodalDatasetName"); /** * Creates a new OutputInfo instance using the specified properties. @@ -149834,6 +150076,206 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a VertexMultimodalDatasetSource. */ + interface IVertexMultimodalDatasetSource { + + /** VertexMultimodalDatasetSource datasetName */ + datasetName?: (string|null); + } + + /** Represents a VertexMultimodalDatasetSource. */ + class VertexMultimodalDatasetSource implements IVertexMultimodalDatasetSource { + + /** + * Constructs a new VertexMultimodalDatasetSource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetSource); + + /** VertexMultimodalDatasetSource datasetName. */ + public datasetName: string; + + /** + * Creates a new VertexMultimodalDatasetSource instance using the specified properties. + * @param [properties] Properties to set + * @returns VertexMultimodalDatasetSource instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetSource): google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource; + + /** + * Encodes the specified VertexMultimodalDatasetSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.verify|verify} messages. + * @param message VertexMultimodalDatasetSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VertexMultimodalDatasetSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.verify|verify} messages. + * @param message VertexMultimodalDatasetSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VertexMultimodalDatasetSource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VertexMultimodalDatasetSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource; + + /** + * Decodes a VertexMultimodalDatasetSource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VertexMultimodalDatasetSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource; + + /** + * Verifies a VertexMultimodalDatasetSource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VertexMultimodalDatasetSource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VertexMultimodalDatasetSource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource; + + /** + * Creates a plain object from a VertexMultimodalDatasetSource message. Also converts values to other types if specified. + * @param message VertexMultimodalDatasetSource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VertexMultimodalDatasetSource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VertexMultimodalDatasetSource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VertexMultimodalDatasetDestination. */ + interface IVertexMultimodalDatasetDestination { + + /** VertexMultimodalDatasetDestination bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + + /** VertexMultimodalDatasetDestination displayName */ + displayName?: (string|null); + } + + /** Represents a VertexMultimodalDatasetDestination. */ + class VertexMultimodalDatasetDestination implements IVertexMultimodalDatasetDestination { + + /** + * Constructs a new VertexMultimodalDatasetDestination. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetDestination); + + /** VertexMultimodalDatasetDestination bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + + /** VertexMultimodalDatasetDestination displayName. */ + public displayName: string; + + /** + * Creates a new VertexMultimodalDatasetDestination instance using the specified properties. + * @param [properties] Properties to set + * @returns VertexMultimodalDatasetDestination instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetDestination): google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination; + + /** + * Encodes the specified VertexMultimodalDatasetDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.verify|verify} messages. + * @param message VertexMultimodalDatasetDestination message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetDestination, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VertexMultimodalDatasetDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.verify|verify} messages. + * @param message VertexMultimodalDatasetDestination message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetDestination, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VertexMultimodalDatasetDestination message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VertexMultimodalDatasetDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination; + + /** + * Decodes a VertexMultimodalDatasetDestination message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VertexMultimodalDatasetDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination; + + /** + * Verifies a VertexMultimodalDatasetDestination message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VertexMultimodalDatasetDestination message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VertexMultimodalDatasetDestination + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination; + + /** + * Creates a plain object from a VertexMultimodalDatasetDestination message. Also converts values to other types if specified. + * @param message VertexMultimodalDatasetDestination + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VertexMultimodalDatasetDestination to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VertexMultimodalDatasetDestination + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a CsvDestination. */ interface ICsvDestination { @@ -180388,6 +180830,9 @@ export namespace google { /** GeminiExample safetySettings */ safetySettings?: (google.cloud.aiplatform.v1beta1.ISafetySetting[]|null); + /** GeminiExample modelArmorConfig */ + modelArmorConfig?: (google.cloud.aiplatform.v1beta1.IModelArmorConfig|null); + /** GeminiExample generationConfig */ generationConfig?: (google.cloud.aiplatform.v1beta1.IGenerationConfig|null); } @@ -180425,6 +180870,9 @@ export namespace google { /** GeminiExample safetySettings. */ public safetySettings: google.cloud.aiplatform.v1beta1.ISafetySetting[]; + /** GeminiExample modelArmorConfig. */ + public modelArmorConfig?: (google.cloud.aiplatform.v1beta1.IModelArmorConfig|null); + /** GeminiExample generationConfig. */ public generationConfig?: (google.cloud.aiplatform.v1beta1.IGenerationConfig|null); @@ -188643,6 +189091,15 @@ export namespace google { /** Properties of a Metric. */ interface IMetric { + /** Metric predefinedMetricSpec */ + predefinedMetricSpec?: (google.cloud.aiplatform.v1beta1.IPredefinedMetricSpec|null); + + /** Metric computationBasedMetricSpec */ + computationBasedMetricSpec?: (google.cloud.aiplatform.v1beta1.IComputationBasedMetricSpec|null); + + /** Metric llmBasedMetricSpec */ + llmBasedMetricSpec?: (google.cloud.aiplatform.v1beta1.ILLMBasedMetricSpec|null); + /** Metric pointwiseMetricSpec */ pointwiseMetricSpec?: (google.cloud.aiplatform.v1beta1.IPointwiseMetricSpec|null); @@ -188671,6 +189128,15 @@ export namespace google { */ constructor(properties?: google.cloud.aiplatform.v1beta1.IMetric); + /** Metric predefinedMetricSpec. */ + public predefinedMetricSpec?: (google.cloud.aiplatform.v1beta1.IPredefinedMetricSpec|null); + + /** Metric computationBasedMetricSpec. */ + public computationBasedMetricSpec?: (google.cloud.aiplatform.v1beta1.IComputationBasedMetricSpec|null); + + /** Metric llmBasedMetricSpec. */ + public llmBasedMetricSpec?: (google.cloud.aiplatform.v1beta1.ILLMBasedMetricSpec|null); + /** Metric pointwiseMetricSpec. */ public pointwiseMetricSpec?: (google.cloud.aiplatform.v1beta1.IPointwiseMetricSpec|null); @@ -188690,7 +189156,7 @@ export namespace google { public aggregationMetrics: google.cloud.aiplatform.v1beta1.Metric.AggregationMetric[]; /** Metric metricSpec. */ - public metricSpec?: ("pointwiseMetricSpec"|"pairwiseMetricSpec"|"exactMatchSpec"|"bleuSpec"|"rougeSpec"); + public metricSpec?: ("predefinedMetricSpec"|"computationBasedMetricSpec"|"llmBasedMetricSpec"|"pointwiseMetricSpec"|"pairwiseMetricSpec"|"exactMatchSpec"|"bleuSpec"|"rougeSpec"); /** * Creates a new Metric instance using the specified properties. @@ -189399,6 +189865,9 @@ export namespace google { /** EvaluateInstancesResponse rubricBasedInstructionFollowingResult */ rubricBasedInstructionFollowingResult?: (google.cloud.aiplatform.v1beta1.IRubricBasedInstructionFollowingResult|null); + + /** EvaluateInstancesResponse metricResults */ + metricResults?: (google.cloud.aiplatform.v1beta1.IMetricResult[]|null); } /** Represents an EvaluateInstancesResponse. */ @@ -189506,6 +189975,9 @@ export namespace google { /** EvaluateInstancesResponse rubricBasedInstructionFollowingResult. */ public rubricBasedInstructionFollowingResult?: (google.cloud.aiplatform.v1beta1.IRubricBasedInstructionFollowingResult|null); + /** EvaluateInstancesResponse metricResults. */ + public metricResults: google.cloud.aiplatform.v1beta1.IMetricResult[]; + /** EvaluateInstancesResponse evaluationResults. */ public evaluationResults?: ("exactMatchResults"|"bleuResults"|"rougeResults"|"fluencyResult"|"coherenceResult"|"safetyResult"|"groundednessResult"|"fulfillmentResult"|"summarizationQualityResult"|"pairwiseSummarizationQualityResult"|"summarizationHelpfulnessResult"|"summarizationVerbosityResult"|"questionAnsweringQualityResult"|"pairwiseQuestionAnsweringQualityResult"|"questionAnsweringRelevanceResult"|"questionAnsweringHelpfulnessResult"|"questionAnsweringCorrectnessResult"|"pointwiseMetricResult"|"pairwiseMetricResult"|"toolCallValidResults"|"toolNameMatchResults"|"toolParameterKeyMatchResults"|"toolParameterKvMatchResults"|"cometResult"|"metricxResult"|"trajectoryExactMatchResults"|"trajectoryInOrderMatchResults"|"trajectoryAnyOrderMatchResults"|"trajectoryPrecisionResults"|"trajectoryRecallResults"|"trajectorySingleToolUseResults"|"rubricBasedInstructionFollowingResult"); @@ -189587,6 +190059,462 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a MetricResult. */ + interface IMetricResult { + + /** MetricResult score */ + score?: (number|null); + + /** MetricResult explanation */ + explanation?: (string|null); + + /** MetricResult error */ + error?: (google.rpc.IStatus|null); + } + + /** Represents a MetricResult. */ + class MetricResult implements IMetricResult { + + /** + * Constructs a new MetricResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IMetricResult); + + /** MetricResult score. */ + public score?: (number|null); + + /** MetricResult explanation. */ + public explanation?: (string|null); + + /** MetricResult error. */ + public error?: (google.rpc.IStatus|null); + + /** + * Creates a new MetricResult instance using the specified properties. + * @param [properties] Properties to set + * @returns MetricResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IMetricResult): google.cloud.aiplatform.v1beta1.MetricResult; + + /** + * Encodes the specified MetricResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetricResult.verify|verify} messages. + * @param message MetricResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IMetricResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MetricResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetricResult.verify|verify} messages. + * @param message MetricResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMetricResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MetricResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetricResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MetricResult; + + /** + * Decodes a MetricResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetricResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MetricResult; + + /** + * Verifies a MetricResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MetricResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetricResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MetricResult; + + /** + * Creates a plain object from a MetricResult message. Also converts values to other types if specified. + * @param message MetricResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MetricResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MetricResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MetricResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PredefinedMetricSpec. */ + interface IPredefinedMetricSpec { + + /** PredefinedMetricSpec metricSpecName */ + metricSpecName?: (string|null); + + /** PredefinedMetricSpec metricSpecParameters */ + metricSpecParameters?: (google.protobuf.IStruct|null); + } + + /** Represents a PredefinedMetricSpec. */ + class PredefinedMetricSpec implements IPredefinedMetricSpec { + + /** + * Constructs a new PredefinedMetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPredefinedMetricSpec); + + /** PredefinedMetricSpec metricSpecName. */ + public metricSpecName: string; + + /** PredefinedMetricSpec metricSpecParameters. */ + public metricSpecParameters?: (google.protobuf.IStruct|null); + + /** + * Creates a new PredefinedMetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns PredefinedMetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPredefinedMetricSpec): google.cloud.aiplatform.v1beta1.PredefinedMetricSpec; + + /** + * Encodes the specified PredefinedMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.verify|verify} messages. + * @param message PredefinedMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IPredefinedMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PredefinedMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.verify|verify} messages. + * @param message PredefinedMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredefinedMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PredefinedMetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PredefinedMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredefinedMetricSpec; + + /** + * Decodes a PredefinedMetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PredefinedMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredefinedMetricSpec; + + /** + * Verifies a PredefinedMetricSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PredefinedMetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PredefinedMetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredefinedMetricSpec; + + /** + * Creates a plain object from a PredefinedMetricSpec message. Also converts values to other types if specified. + * @param message PredefinedMetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PredefinedMetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PredefinedMetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PredefinedMetricSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ComputationBasedMetricSpec. */ + interface IComputationBasedMetricSpec { + + /** ComputationBasedMetricSpec type */ + type?: (google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType|keyof typeof google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType|null); + + /** ComputationBasedMetricSpec parameters */ + parameters?: (google.protobuf.IStruct|null); + } + + /** Represents a ComputationBasedMetricSpec. */ + class ComputationBasedMetricSpec implements IComputationBasedMetricSpec { + + /** + * Constructs a new ComputationBasedMetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IComputationBasedMetricSpec); + + /** ComputationBasedMetricSpec type. */ + public type?: (google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType|keyof typeof google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType|null); + + /** ComputationBasedMetricSpec parameters. */ + public parameters?: (google.protobuf.IStruct|null); + + /** + * Creates a new ComputationBasedMetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ComputationBasedMetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IComputationBasedMetricSpec): google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec; + + /** + * Encodes the specified ComputationBasedMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.verify|verify} messages. + * @param message ComputationBasedMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IComputationBasedMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ComputationBasedMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.verify|verify} messages. + * @param message ComputationBasedMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IComputationBasedMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ComputationBasedMetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ComputationBasedMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec; + + /** + * Decodes a ComputationBasedMetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ComputationBasedMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec; + + /** + * Verifies a ComputationBasedMetricSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ComputationBasedMetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ComputationBasedMetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec; + + /** + * Creates a plain object from a ComputationBasedMetricSpec message. Also converts values to other types if specified. + * @param message ComputationBasedMetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ComputationBasedMetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ComputationBasedMetricSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ComputationBasedMetricSpec { + + /** ComputationBasedMetricType enum. */ + enum ComputationBasedMetricType { + COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED = 0, + EXACT_MATCH = 1, + BLEU = 2, + ROUGE = 3 + } + } + + /** Properties of a LLMBasedMetricSpec. */ + interface ILLMBasedMetricSpec { + + /** LLMBasedMetricSpec rubricGroupKey */ + rubricGroupKey?: (string|null); + + /** LLMBasedMetricSpec predefinedRubricGenerationSpec */ + predefinedRubricGenerationSpec?: (google.cloud.aiplatform.v1beta1.IPredefinedMetricSpec|null); + + /** LLMBasedMetricSpec metricPromptTemplate */ + metricPromptTemplate?: (string|null); + + /** LLMBasedMetricSpec systemInstruction */ + systemInstruction?: (string|null); + + /** LLMBasedMetricSpec judgeAutoraterConfig */ + judgeAutoraterConfig?: (google.cloud.aiplatform.v1beta1.IAutoraterConfig|null); + + /** LLMBasedMetricSpec additionalConfig */ + additionalConfig?: (google.protobuf.IStruct|null); + } + + /** Represents a LLMBasedMetricSpec. */ + class LLMBasedMetricSpec implements ILLMBasedMetricSpec { + + /** + * Constructs a new LLMBasedMetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ILLMBasedMetricSpec); + + /** LLMBasedMetricSpec rubricGroupKey. */ + public rubricGroupKey?: (string|null); + + /** LLMBasedMetricSpec predefinedRubricGenerationSpec. */ + public predefinedRubricGenerationSpec?: (google.cloud.aiplatform.v1beta1.IPredefinedMetricSpec|null); + + /** LLMBasedMetricSpec metricPromptTemplate. */ + public metricPromptTemplate?: (string|null); + + /** LLMBasedMetricSpec systemInstruction. */ + public systemInstruction?: (string|null); + + /** LLMBasedMetricSpec judgeAutoraterConfig. */ + public judgeAutoraterConfig?: (google.cloud.aiplatform.v1beta1.IAutoraterConfig|null); + + /** LLMBasedMetricSpec additionalConfig. */ + public additionalConfig?: (google.protobuf.IStruct|null); + + /** LLMBasedMetricSpec rubricsSource. */ + public rubricsSource?: ("rubricGroupKey"|"predefinedRubricGenerationSpec"); + + /** + * Creates a new LLMBasedMetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns LLMBasedMetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ILLMBasedMetricSpec): google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec; + + /** + * Encodes the specified LLMBasedMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.verify|verify} messages. + * @param message LLMBasedMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ILLMBasedMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LLMBasedMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.verify|verify} messages. + * @param message LLMBasedMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ILLMBasedMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LLMBasedMetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LLMBasedMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec; + + /** + * Decodes a LLMBasedMetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LLMBasedMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec; + + /** + * Verifies a LLMBasedMetricSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LLMBasedMetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LLMBasedMetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec; + + /** + * Creates a plain object from a LLMBasedMetricSpec message. Also converts values to other types if specified. + * @param message LLMBasedMetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LLMBasedMetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LLMBasedMetricSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an ExactMatchInput. */ interface IExactMatchInput { @@ -300784,6 +301712,9 @@ export namespace google { /** Schedule maxConcurrentRunCount */ maxConcurrentRunCount?: (number|Long|string|null); + /** Schedule maxConcurrentActiveRunCount */ + maxConcurrentActiveRunCount?: (number|Long|string|null); + /** Schedule allowQueueing */ allowQueueing?: (boolean|null); @@ -300854,6 +301785,9 @@ export namespace google { /** Schedule maxConcurrentRunCount. */ public maxConcurrentRunCount: (number|Long|string); + /** Schedule maxConcurrentActiveRunCount. */ + public maxConcurrentActiveRunCount: (number|Long|string); + /** Schedule allowQueueing. */ public allowQueueing: boolean; diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index 774f836b5aa..1b2b597bb84 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -3172,6 +3172,7 @@ * @interface IInputConfig * @property {google.cloud.aiplatform.v1.IGcsSource|null} [gcsSource] InputConfig gcsSource * @property {google.cloud.aiplatform.v1.IBigQuerySource|null} [bigquerySource] InputConfig bigquerySource + * @property {google.cloud.aiplatform.v1.IVertexMultimodalDatasetSource|null} [vertexMultimodalDatasetSource] InputConfig vertexMultimodalDatasetSource * @property {string|null} [instancesFormat] InputConfig instancesFormat */ @@ -3206,6 +3207,14 @@ */ InputConfig.prototype.bigquerySource = null; + /** + * InputConfig vertexMultimodalDatasetSource. + * @member {google.cloud.aiplatform.v1.IVertexMultimodalDatasetSource|null|undefined} vertexMultimodalDatasetSource + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig + * @instance + */ + InputConfig.prototype.vertexMultimodalDatasetSource = null; + /** * InputConfig instancesFormat. * @member {string} instancesFormat @@ -3219,12 +3228,12 @@ /** * InputConfig source. - * @member {"gcsSource"|"bigquerySource"|undefined} source + * @member {"gcsSource"|"bigquerySource"|"vertexMultimodalDatasetSource"|undefined} source * @memberof google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig * @instance */ Object.defineProperty(InputConfig.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["gcsSource", "bigquerySource"]), + get: $util.oneOfGetter($oneOfFields = ["gcsSource", "bigquerySource", "vertexMultimodalDatasetSource"]), set: $util.oneOfSetter($oneOfFields) }); @@ -3258,6 +3267,8 @@ $root.google.cloud.aiplatform.v1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) $root.google.cloud.aiplatform.v1.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.vertexMultimodalDatasetSource != null && Object.hasOwnProperty.call(message, "vertexMultimodalDatasetSource")) + $root.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.encode(message.vertexMultimodalDatasetSource, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -3302,6 +3313,10 @@ message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.decode(reader, reader.uint32()); break; } + case 4: { + message.vertexMultimodalDatasetSource = $root.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.decode(reader, reader.uint32()); + break; + } case 1: { message.instancesFormat = reader.string(); break; @@ -3360,6 +3375,16 @@ return "bigquerySource." + error; } } + if (message.vertexMultimodalDatasetSource != null && message.hasOwnProperty("vertexMultimodalDatasetSource")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.verify(message.vertexMultimodalDatasetSource); + if (error) + return "vertexMultimodalDatasetSource." + error; + } + } if (message.instancesFormat != null && message.hasOwnProperty("instancesFormat")) if (!$util.isString(message.instancesFormat)) return "instancesFormat: string expected"; @@ -3388,6 +3413,11 @@ throw TypeError(".google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.bigquerySource: object expected"); message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.fromObject(object.bigquerySource); } + if (object.vertexMultimodalDatasetSource != null) { + if (typeof object.vertexMultimodalDatasetSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.vertexMultimodalDatasetSource: object expected"); + message.vertexMultimodalDatasetSource = $root.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.fromObject(object.vertexMultimodalDatasetSource); + } if (object.instancesFormat != null) message.instancesFormat = String(object.instancesFormat); return message; @@ -3420,6 +3450,11 @@ if (options.oneofs) object.source = "bigquerySource"; } + if (message.vertexMultimodalDatasetSource != null && message.hasOwnProperty("vertexMultimodalDatasetSource")) { + object.vertexMultimodalDatasetSource = $root.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.toObject(message.vertexMultimodalDatasetSource, options); + if (options.oneofs) + object.source = "vertexMultimodalDatasetSource"; + } return object; }; @@ -3769,6 +3804,7 @@ * @interface IOutputConfig * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [gcsDestination] OutputConfig gcsDestination * @property {google.cloud.aiplatform.v1.IBigQueryDestination|null} [bigqueryDestination] OutputConfig bigqueryDestination + * @property {google.cloud.aiplatform.v1.IVertexMultimodalDatasetDestination|null} [vertexMultimodalDatasetDestination] OutputConfig vertexMultimodalDatasetDestination * @property {string|null} [predictionsFormat] OutputConfig predictionsFormat */ @@ -3803,6 +3839,14 @@ */ OutputConfig.prototype.bigqueryDestination = null; + /** + * OutputConfig vertexMultimodalDatasetDestination. + * @member {google.cloud.aiplatform.v1.IVertexMultimodalDatasetDestination|null|undefined} vertexMultimodalDatasetDestination + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig + * @instance + */ + OutputConfig.prototype.vertexMultimodalDatasetDestination = null; + /** * OutputConfig predictionsFormat. * @member {string} predictionsFormat @@ -3816,12 +3860,12 @@ /** * OutputConfig destination. - * @member {"gcsDestination"|"bigqueryDestination"|undefined} destination + * @member {"gcsDestination"|"bigqueryDestination"|"vertexMultimodalDatasetDestination"|undefined} destination * @memberof google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig * @instance */ Object.defineProperty(OutputConfig.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsDestination", "bigqueryDestination"]), + get: $util.oneOfGetter($oneOfFields = ["gcsDestination", "bigqueryDestination", "vertexMultimodalDatasetDestination"]), set: $util.oneOfSetter($oneOfFields) }); @@ -3855,6 +3899,8 @@ $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.gcsDestination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) $root.google.cloud.aiplatform.v1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.vertexMultimodalDatasetDestination != null && Object.hasOwnProperty.call(message, "vertexMultimodalDatasetDestination")) + $root.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.encode(message.vertexMultimodalDatasetDestination, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -3899,6 +3945,10 @@ message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.decode(reader, reader.uint32()); break; } + case 6: { + message.vertexMultimodalDatasetDestination = $root.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.decode(reader, reader.uint32()); + break; + } case 1: { message.predictionsFormat = reader.string(); break; @@ -3957,6 +4007,16 @@ return "bigqueryDestination." + error; } } + if (message.vertexMultimodalDatasetDestination != null && message.hasOwnProperty("vertexMultimodalDatasetDestination")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.verify(message.vertexMultimodalDatasetDestination); + if (error) + return "vertexMultimodalDatasetDestination." + error; + } + } if (message.predictionsFormat != null && message.hasOwnProperty("predictionsFormat")) if (!$util.isString(message.predictionsFormat)) return "predictionsFormat: string expected"; @@ -3985,6 +4045,11 @@ throw TypeError(".google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.bigqueryDestination: object expected"); message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.fromObject(object.bigqueryDestination); } + if (object.vertexMultimodalDatasetDestination != null) { + if (typeof object.vertexMultimodalDatasetDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.vertexMultimodalDatasetDestination: object expected"); + message.vertexMultimodalDatasetDestination = $root.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.fromObject(object.vertexMultimodalDatasetDestination); + } if (object.predictionsFormat != null) message.predictionsFormat = String(object.predictionsFormat); return message; @@ -4017,6 +4082,11 @@ if (options.oneofs) object.destination = "bigqueryDestination"; } + if (message.vertexMultimodalDatasetDestination != null && message.hasOwnProperty("vertexMultimodalDatasetDestination")) { + object.vertexMultimodalDatasetDestination = $root.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.toObject(message.vertexMultimodalDatasetDestination, options); + if (options.oneofs) + object.destination = "vertexMultimodalDatasetDestination"; + } return object; }; @@ -4057,6 +4127,7 @@ * @interface IOutputInfo * @property {string|null} [gcsOutputDirectory] OutputInfo gcsOutputDirectory * @property {string|null} [bigqueryOutputDataset] OutputInfo bigqueryOutputDataset + * @property {string|null} [vertexMultimodalDatasetName] OutputInfo vertexMultimodalDatasetName * @property {string|null} [bigqueryOutputTable] OutputInfo bigqueryOutputTable */ @@ -4091,6 +4162,14 @@ */ OutputInfo.prototype.bigqueryOutputDataset = null; + /** + * OutputInfo vertexMultimodalDatasetName. + * @member {string|null|undefined} vertexMultimodalDatasetName + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo + * @instance + */ + OutputInfo.prototype.vertexMultimodalDatasetName = null; + /** * OutputInfo bigqueryOutputTable. * @member {string} bigqueryOutputTable @@ -4104,12 +4183,12 @@ /** * OutputInfo outputLocation. - * @member {"gcsOutputDirectory"|"bigqueryOutputDataset"|undefined} outputLocation + * @member {"gcsOutputDirectory"|"bigqueryOutputDataset"|"vertexMultimodalDatasetName"|undefined} outputLocation * @memberof google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo * @instance */ Object.defineProperty(OutputInfo.prototype, "outputLocation", { - get: $util.oneOfGetter($oneOfFields = ["gcsOutputDirectory", "bigqueryOutputDataset"]), + get: $util.oneOfGetter($oneOfFields = ["gcsOutputDirectory", "bigqueryOutputDataset", "vertexMultimodalDatasetName"]), set: $util.oneOfSetter($oneOfFields) }); @@ -4143,6 +4222,8 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.bigqueryOutputDataset); if (message.bigqueryOutputTable != null && Object.hasOwnProperty.call(message, "bigqueryOutputTable")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.bigqueryOutputTable); + if (message.vertexMultimodalDatasetName != null && Object.hasOwnProperty.call(message, "vertexMultimodalDatasetName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.vertexMultimodalDatasetName); return writer; }; @@ -4187,6 +4268,10 @@ message.bigqueryOutputDataset = reader.string(); break; } + case 5: { + message.vertexMultimodalDatasetName = reader.string(); + break; + } case 4: { message.bigqueryOutputTable = reader.string(); break; @@ -4239,6 +4324,13 @@ if (!$util.isString(message.bigqueryOutputDataset)) return "bigqueryOutputDataset: string expected"; } + if (message.vertexMultimodalDatasetName != null && message.hasOwnProperty("vertexMultimodalDatasetName")) { + if (properties.outputLocation === 1) + return "outputLocation: multiple values"; + properties.outputLocation = 1; + if (!$util.isString(message.vertexMultimodalDatasetName)) + return "vertexMultimodalDatasetName: string expected"; + } if (message.bigqueryOutputTable != null && message.hasOwnProperty("bigqueryOutputTable")) if (!$util.isString(message.bigqueryOutputTable)) return "bigqueryOutputTable: string expected"; @@ -4261,6 +4353,8 @@ message.gcsOutputDirectory = String(object.gcsOutputDirectory); if (object.bigqueryOutputDataset != null) message.bigqueryOutputDataset = String(object.bigqueryOutputDataset); + if (object.vertexMultimodalDatasetName != null) + message.vertexMultimodalDatasetName = String(object.vertexMultimodalDatasetName); if (object.bigqueryOutputTable != null) message.bigqueryOutputTable = String(object.bigqueryOutputTable); return message; @@ -4293,6 +4387,11 @@ } if (message.bigqueryOutputTable != null && message.hasOwnProperty("bigqueryOutputTable")) object.bigqueryOutputTable = message.bigqueryOutputTable; + if (message.vertexMultimodalDatasetName != null && message.hasOwnProperty("vertexMultimodalDatasetName")) { + object.vertexMultimodalDatasetName = message.vertexMultimodalDatasetName; + if (options.oneofs) + object.outputLocation = "vertexMultimodalDatasetName"; + } return object; }; @@ -13867,6 +13966,445 @@ return BigQueryDestination; })(); + v1.VertexMultimodalDatasetSource = (function() { + + /** + * Properties of a VertexMultimodalDatasetSource. + * @memberof google.cloud.aiplatform.v1 + * @interface IVertexMultimodalDatasetSource + * @property {string|null} [datasetName] VertexMultimodalDatasetSource datasetName + */ + + /** + * Constructs a new VertexMultimodalDatasetSource. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a VertexMultimodalDatasetSource. + * @implements IVertexMultimodalDatasetSource + * @constructor + * @param {google.cloud.aiplatform.v1.IVertexMultimodalDatasetSource=} [properties] Properties to set + */ + function VertexMultimodalDatasetSource(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VertexMultimodalDatasetSource datasetName. + * @member {string} datasetName + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + * @instance + */ + VertexMultimodalDatasetSource.prototype.datasetName = ""; + + /** + * Creates a new VertexMultimodalDatasetSource instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + * @static + * @param {google.cloud.aiplatform.v1.IVertexMultimodalDatasetSource=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.VertexMultimodalDatasetSource} VertexMultimodalDatasetSource instance + */ + VertexMultimodalDatasetSource.create = function create(properties) { + return new VertexMultimodalDatasetSource(properties); + }; + + /** + * Encodes the specified VertexMultimodalDatasetSource message. Does not implicitly {@link google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + * @static + * @param {google.cloud.aiplatform.v1.IVertexMultimodalDatasetSource} message VertexMultimodalDatasetSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VertexMultimodalDatasetSource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datasetName != null && Object.hasOwnProperty.call(message, "datasetName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetName); + return writer; + }; + + /** + * Encodes the specified VertexMultimodalDatasetSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + * @static + * @param {google.cloud.aiplatform.v1.IVertexMultimodalDatasetSource} message VertexMultimodalDatasetSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VertexMultimodalDatasetSource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VertexMultimodalDatasetSource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.VertexMultimodalDatasetSource} VertexMultimodalDatasetSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VertexMultimodalDatasetSource.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.datasetName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VertexMultimodalDatasetSource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.VertexMultimodalDatasetSource} VertexMultimodalDatasetSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VertexMultimodalDatasetSource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VertexMultimodalDatasetSource message. + * @function verify + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VertexMultimodalDatasetSource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.datasetName != null && message.hasOwnProperty("datasetName")) + if (!$util.isString(message.datasetName)) + return "datasetName: string expected"; + return null; + }; + + /** + * Creates a VertexMultimodalDatasetSource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.VertexMultimodalDatasetSource} VertexMultimodalDatasetSource + */ + VertexMultimodalDatasetSource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) + return object; + var message = new $root.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource(); + if (object.datasetName != null) + message.datasetName = String(object.datasetName); + return message; + }; + + /** + * Creates a plain object from a VertexMultimodalDatasetSource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + * @static + * @param {google.cloud.aiplatform.v1.VertexMultimodalDatasetSource} message VertexMultimodalDatasetSource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VertexMultimodalDatasetSource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.datasetName = ""; + if (message.datasetName != null && message.hasOwnProperty("datasetName")) + object.datasetName = message.datasetName; + return object; + }; + + /** + * Converts this VertexMultimodalDatasetSource to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + * @instance + * @returns {Object.} JSON object + */ + VertexMultimodalDatasetSource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VertexMultimodalDatasetSource + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VertexMultimodalDatasetSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.VertexMultimodalDatasetSource"; + }; + + return VertexMultimodalDatasetSource; + })(); + + v1.VertexMultimodalDatasetDestination = (function() { + + /** + * Properties of a VertexMultimodalDatasetDestination. + * @memberof google.cloud.aiplatform.v1 + * @interface IVertexMultimodalDatasetDestination + * @property {google.cloud.aiplatform.v1.IBigQueryDestination|null} [bigqueryDestination] VertexMultimodalDatasetDestination bigqueryDestination + * @property {string|null} [displayName] VertexMultimodalDatasetDestination displayName + */ + + /** + * Constructs a new VertexMultimodalDatasetDestination. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a VertexMultimodalDatasetDestination. + * @implements IVertexMultimodalDatasetDestination + * @constructor + * @param {google.cloud.aiplatform.v1.IVertexMultimodalDatasetDestination=} [properties] Properties to set + */ + function VertexMultimodalDatasetDestination(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VertexMultimodalDatasetDestination bigqueryDestination. + * @member {google.cloud.aiplatform.v1.IBigQueryDestination|null|undefined} bigqueryDestination + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + * @instance + */ + VertexMultimodalDatasetDestination.prototype.bigqueryDestination = null; + + /** + * VertexMultimodalDatasetDestination displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + * @instance + */ + VertexMultimodalDatasetDestination.prototype.displayName = ""; + + /** + * Creates a new VertexMultimodalDatasetDestination instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + * @static + * @param {google.cloud.aiplatform.v1.IVertexMultimodalDatasetDestination=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination} VertexMultimodalDatasetDestination instance + */ + VertexMultimodalDatasetDestination.create = function create(properties) { + return new VertexMultimodalDatasetDestination(properties); + }; + + /** + * Encodes the specified VertexMultimodalDatasetDestination message. Does not implicitly {@link google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + * @static + * @param {google.cloud.aiplatform.v1.IVertexMultimodalDatasetDestination} message VertexMultimodalDatasetDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VertexMultimodalDatasetDestination.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) + $root.google.cloud.aiplatform.v1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified VertexMultimodalDatasetDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + * @static + * @param {google.cloud.aiplatform.v1.IVertexMultimodalDatasetDestination} message VertexMultimodalDatasetDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VertexMultimodalDatasetDestination.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VertexMultimodalDatasetDestination message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination} VertexMultimodalDatasetDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VertexMultimodalDatasetDestination.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.decode(reader, reader.uint32()); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VertexMultimodalDatasetDestination message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination} VertexMultimodalDatasetDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VertexMultimodalDatasetDestination.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VertexMultimodalDatasetDestination message. + * @function verify + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VertexMultimodalDatasetDestination.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + var error = $root.google.cloud.aiplatform.v1.BigQueryDestination.verify(message.bigqueryDestination); + if (error) + return "bigqueryDestination." + error; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates a VertexMultimodalDatasetDestination message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination} VertexMultimodalDatasetDestination + */ + VertexMultimodalDatasetDestination.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) + return object; + var message = new $root.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination(); + if (object.bigqueryDestination != null) { + if (typeof object.bigqueryDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.bigqueryDestination: object expected"); + message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.fromObject(object.bigqueryDestination); + } + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from a VertexMultimodalDatasetDestination message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + * @static + * @param {google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination} message VertexMultimodalDatasetDestination + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VertexMultimodalDatasetDestination.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.bigqueryDestination = null; + object.displayName = ""; + } + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) + object.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.toObject(message.bigqueryDestination, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this VertexMultimodalDatasetDestination to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + * @instance + * @returns {Object.} JSON object + */ + VertexMultimodalDatasetDestination.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VertexMultimodalDatasetDestination + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VertexMultimodalDatasetDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination"; + }; + + return VertexMultimodalDatasetDestination; + })(); + v1.CsvDestination = (function() { /** @@ -301996,6 +302534,7 @@ * @property {google.protobuf.ITimestamp|null} [lastPauseTime] Schedule lastPauseTime * @property {google.protobuf.ITimestamp|null} [lastResumeTime] Schedule lastResumeTime * @property {number|Long|null} [maxConcurrentRunCount] Schedule maxConcurrentRunCount + * @property {number|Long|null} [maxConcurrentActiveRunCount] Schedule maxConcurrentActiveRunCount * @property {boolean|null} [allowQueueing] Schedule allowQueueing * @property {boolean|null} [catchUp] Schedule catchUp * @property {google.cloud.aiplatform.v1.Schedule.IRunResponse|null} [lastScheduledRunResponse] Schedule lastScheduledRunResponse @@ -302144,6 +302683,14 @@ */ Schedule.prototype.maxConcurrentRunCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Schedule maxConcurrentActiveRunCount. + * @member {number|Long} maxConcurrentActiveRunCount + * @memberof google.cloud.aiplatform.v1.Schedule + * @instance + */ + Schedule.prototype.maxConcurrentActiveRunCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** * Schedule allowQueueing. * @member {boolean} allowQueueing @@ -302255,6 +302802,8 @@ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); if (message.createNotebookExecutionJobRequest != null && Object.hasOwnProperty.call(message, "createNotebookExecutionJobRequest")) $root.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest.encode(message.createNotebookExecutionJobRequest, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.maxConcurrentActiveRunCount != null && Object.hasOwnProperty.call(message, "maxConcurrentActiveRunCount")) + writer.uint32(/* id 21, wireType 0 =*/168).int64(message.maxConcurrentActiveRunCount); return writer; }; @@ -302355,6 +302904,10 @@ message.maxConcurrentRunCount = reader.int64(); break; } + case 21: { + message.maxConcurrentActiveRunCount = reader.int64(); + break; + } case 12: { message.allowQueueing = reader.bool(); break; @@ -302486,6 +303039,9 @@ if (message.maxConcurrentRunCount != null && message.hasOwnProperty("maxConcurrentRunCount")) if (!$util.isInteger(message.maxConcurrentRunCount) && !(message.maxConcurrentRunCount && $util.isInteger(message.maxConcurrentRunCount.low) && $util.isInteger(message.maxConcurrentRunCount.high))) return "maxConcurrentRunCount: integer|Long expected"; + if (message.maxConcurrentActiveRunCount != null && message.hasOwnProperty("maxConcurrentActiveRunCount")) + if (!$util.isInteger(message.maxConcurrentActiveRunCount) && !(message.maxConcurrentActiveRunCount && $util.isInteger(message.maxConcurrentActiveRunCount.low) && $util.isInteger(message.maxConcurrentActiveRunCount.high))) + return "maxConcurrentActiveRunCount: integer|Long expected"; if (message.allowQueueing != null && message.hasOwnProperty("allowQueueing")) if (typeof message.allowQueueing !== "boolean") return "allowQueueing: boolean expected"; @@ -302614,6 +303170,15 @@ message.maxConcurrentRunCount = object.maxConcurrentRunCount; else if (typeof object.maxConcurrentRunCount === "object") message.maxConcurrentRunCount = new $util.LongBits(object.maxConcurrentRunCount.low >>> 0, object.maxConcurrentRunCount.high >>> 0).toNumber(); + if (object.maxConcurrentActiveRunCount != null) + if ($util.Long) + (message.maxConcurrentActiveRunCount = $util.Long.fromValue(object.maxConcurrentActiveRunCount)).unsigned = false; + else if (typeof object.maxConcurrentActiveRunCount === "string") + message.maxConcurrentActiveRunCount = parseInt(object.maxConcurrentActiveRunCount, 10); + else if (typeof object.maxConcurrentActiveRunCount === "number") + message.maxConcurrentActiveRunCount = object.maxConcurrentActiveRunCount; + else if (typeof object.maxConcurrentActiveRunCount === "object") + message.maxConcurrentActiveRunCount = new $util.LongBits(object.maxConcurrentActiveRunCount.low >>> 0, object.maxConcurrentActiveRunCount.high >>> 0).toNumber(); if (object.allowQueueing != null) message.allowQueueing = Boolean(object.allowQueueing); if (object.catchUp != null) @@ -302668,6 +303233,11 @@ object.startedRunCount = options.longs === String ? "0" : 0; object.lastScheduledRunResponse = null; object.updateTime = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maxConcurrentActiveRunCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxConcurrentActiveRunCount = options.longs === String ? "0" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -302725,6 +303295,11 @@ if (options.oneofs) object.request = "createNotebookExecutionJobRequest"; } + if (message.maxConcurrentActiveRunCount != null && message.hasOwnProperty("maxConcurrentActiveRunCount")) + if (typeof message.maxConcurrentActiveRunCount === "number") + object.maxConcurrentActiveRunCount = options.longs === String ? String(message.maxConcurrentActiveRunCount) : message.maxConcurrentActiveRunCount; + else + object.maxConcurrentActiveRunCount = options.longs === String ? $util.Long.prototype.toString.call(message.maxConcurrentActiveRunCount) : options.longs === Number ? new $util.LongBits(message.maxConcurrentActiveRunCount.low >>> 0, message.maxConcurrentActiveRunCount.high >>> 0).toNumber() : message.maxConcurrentActiveRunCount; return object; }; @@ -357959,6 +358534,7 @@ * @interface IInputConfig * @property {google.cloud.aiplatform.v1beta1.IGcsSource|null} [gcsSource] InputConfig gcsSource * @property {google.cloud.aiplatform.v1beta1.IBigQuerySource|null} [bigquerySource] InputConfig bigquerySource + * @property {google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetSource|null} [vertexMultimodalDatasetSource] InputConfig vertexMultimodalDatasetSource * @property {string|null} [instancesFormat] InputConfig instancesFormat */ @@ -357993,6 +358569,14 @@ */ InputConfig.prototype.bigquerySource = null; + /** + * InputConfig vertexMultimodalDatasetSource. + * @member {google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetSource|null|undefined} vertexMultimodalDatasetSource + * @memberof google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig + * @instance + */ + InputConfig.prototype.vertexMultimodalDatasetSource = null; + /** * InputConfig instancesFormat. * @member {string} instancesFormat @@ -358006,12 +358590,12 @@ /** * InputConfig source. - * @member {"gcsSource"|"bigquerySource"|undefined} source + * @member {"gcsSource"|"bigquerySource"|"vertexMultimodalDatasetSource"|undefined} source * @memberof google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig * @instance */ Object.defineProperty(InputConfig.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["gcsSource", "bigquerySource"]), + get: $util.oneOfGetter($oneOfFields = ["gcsSource", "bigquerySource", "vertexMultimodalDatasetSource"]), set: $util.oneOfSetter($oneOfFields) }); @@ -358045,6 +358629,8 @@ $root.google.cloud.aiplatform.v1beta1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) $root.google.cloud.aiplatform.v1beta1.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.vertexMultimodalDatasetSource != null && Object.hasOwnProperty.call(message, "vertexMultimodalDatasetSource")) + $root.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.encode(message.vertexMultimodalDatasetSource, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -358089,6 +358675,10 @@ message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.decode(reader, reader.uint32()); break; } + case 4: { + message.vertexMultimodalDatasetSource = $root.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.decode(reader, reader.uint32()); + break; + } case 1: { message.instancesFormat = reader.string(); break; @@ -358147,6 +358737,16 @@ return "bigquerySource." + error; } } + if (message.vertexMultimodalDatasetSource != null && message.hasOwnProperty("vertexMultimodalDatasetSource")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.verify(message.vertexMultimodalDatasetSource); + if (error) + return "vertexMultimodalDatasetSource." + error; + } + } if (message.instancesFormat != null && message.hasOwnProperty("instancesFormat")) if (!$util.isString(message.instancesFormat)) return "instancesFormat: string expected"; @@ -358175,6 +358775,11 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.bigquerySource: object expected"); message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.fromObject(object.bigquerySource); } + if (object.vertexMultimodalDatasetSource != null) { + if (typeof object.vertexMultimodalDatasetSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.vertexMultimodalDatasetSource: object expected"); + message.vertexMultimodalDatasetSource = $root.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.fromObject(object.vertexMultimodalDatasetSource); + } if (object.instancesFormat != null) message.instancesFormat = String(object.instancesFormat); return message; @@ -358207,6 +358812,11 @@ if (options.oneofs) object.source = "bigquerySource"; } + if (message.vertexMultimodalDatasetSource != null && message.hasOwnProperty("vertexMultimodalDatasetSource")) { + object.vertexMultimodalDatasetSource = $root.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.toObject(message.vertexMultimodalDatasetSource, options); + if (options.oneofs) + object.source = "vertexMultimodalDatasetSource"; + } return object; }; @@ -358556,6 +359166,7 @@ * @interface IOutputConfig * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [gcsDestination] OutputConfig gcsDestination * @property {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null} [bigqueryDestination] OutputConfig bigqueryDestination + * @property {google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetDestination|null} [vertexMultimodalDatasetDestination] OutputConfig vertexMultimodalDatasetDestination * @property {string|null} [predictionsFormat] OutputConfig predictionsFormat */ @@ -358590,6 +359201,14 @@ */ OutputConfig.prototype.bigqueryDestination = null; + /** + * OutputConfig vertexMultimodalDatasetDestination. + * @member {google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetDestination|null|undefined} vertexMultimodalDatasetDestination + * @memberof google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig + * @instance + */ + OutputConfig.prototype.vertexMultimodalDatasetDestination = null; + /** * OutputConfig predictionsFormat. * @member {string} predictionsFormat @@ -358603,12 +359222,12 @@ /** * OutputConfig destination. - * @member {"gcsDestination"|"bigqueryDestination"|undefined} destination + * @member {"gcsDestination"|"bigqueryDestination"|"vertexMultimodalDatasetDestination"|undefined} destination * @memberof google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig * @instance */ Object.defineProperty(OutputConfig.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsDestination", "bigqueryDestination"]), + get: $util.oneOfGetter($oneOfFields = ["gcsDestination", "bigqueryDestination", "vertexMultimodalDatasetDestination"]), set: $util.oneOfSetter($oneOfFields) }); @@ -358642,6 +359261,8 @@ $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.gcsDestination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.vertexMultimodalDatasetDestination != null && Object.hasOwnProperty.call(message, "vertexMultimodalDatasetDestination")) + $root.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.encode(message.vertexMultimodalDatasetDestination, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -358686,6 +359307,10 @@ message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.decode(reader, reader.uint32()); break; } + case 6: { + message.vertexMultimodalDatasetDestination = $root.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.decode(reader, reader.uint32()); + break; + } case 1: { message.predictionsFormat = reader.string(); break; @@ -358744,6 +359369,16 @@ return "bigqueryDestination." + error; } } + if (message.vertexMultimodalDatasetDestination != null && message.hasOwnProperty("vertexMultimodalDatasetDestination")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.verify(message.vertexMultimodalDatasetDestination); + if (error) + return "vertexMultimodalDatasetDestination." + error; + } + } if (message.predictionsFormat != null && message.hasOwnProperty("predictionsFormat")) if (!$util.isString(message.predictionsFormat)) return "predictionsFormat: string expected"; @@ -358772,6 +359407,11 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.bigqueryDestination: object expected"); message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.fromObject(object.bigqueryDestination); } + if (object.vertexMultimodalDatasetDestination != null) { + if (typeof object.vertexMultimodalDatasetDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.vertexMultimodalDatasetDestination: object expected"); + message.vertexMultimodalDatasetDestination = $root.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.fromObject(object.vertexMultimodalDatasetDestination); + } if (object.predictionsFormat != null) message.predictionsFormat = String(object.predictionsFormat); return message; @@ -358804,6 +359444,11 @@ if (options.oneofs) object.destination = "bigqueryDestination"; } + if (message.vertexMultimodalDatasetDestination != null && message.hasOwnProperty("vertexMultimodalDatasetDestination")) { + object.vertexMultimodalDatasetDestination = $root.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.toObject(message.vertexMultimodalDatasetDestination, options); + if (options.oneofs) + object.destination = "vertexMultimodalDatasetDestination"; + } return object; }; @@ -358844,6 +359489,7 @@ * @interface IOutputInfo * @property {string|null} [gcsOutputDirectory] OutputInfo gcsOutputDirectory * @property {string|null} [bigqueryOutputDataset] OutputInfo bigqueryOutputDataset + * @property {string|null} [vertexMultimodalDatasetName] OutputInfo vertexMultimodalDatasetName * @property {string|null} [bigqueryOutputTable] OutputInfo bigqueryOutputTable */ @@ -358878,6 +359524,14 @@ */ OutputInfo.prototype.bigqueryOutputDataset = null; + /** + * OutputInfo vertexMultimodalDatasetName. + * @member {string|null|undefined} vertexMultimodalDatasetName + * @memberof google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo + * @instance + */ + OutputInfo.prototype.vertexMultimodalDatasetName = null; + /** * OutputInfo bigqueryOutputTable. * @member {string} bigqueryOutputTable @@ -358891,12 +359545,12 @@ /** * OutputInfo outputLocation. - * @member {"gcsOutputDirectory"|"bigqueryOutputDataset"|undefined} outputLocation + * @member {"gcsOutputDirectory"|"bigqueryOutputDataset"|"vertexMultimodalDatasetName"|undefined} outputLocation * @memberof google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo * @instance */ Object.defineProperty(OutputInfo.prototype, "outputLocation", { - get: $util.oneOfGetter($oneOfFields = ["gcsOutputDirectory", "bigqueryOutputDataset"]), + get: $util.oneOfGetter($oneOfFields = ["gcsOutputDirectory", "bigqueryOutputDataset", "vertexMultimodalDatasetName"]), set: $util.oneOfSetter($oneOfFields) }); @@ -358930,6 +359584,8 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.bigqueryOutputDataset); if (message.bigqueryOutputTable != null && Object.hasOwnProperty.call(message, "bigqueryOutputTable")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.bigqueryOutputTable); + if (message.vertexMultimodalDatasetName != null && Object.hasOwnProperty.call(message, "vertexMultimodalDatasetName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.vertexMultimodalDatasetName); return writer; }; @@ -358974,6 +359630,10 @@ message.bigqueryOutputDataset = reader.string(); break; } + case 5: { + message.vertexMultimodalDatasetName = reader.string(); + break; + } case 4: { message.bigqueryOutputTable = reader.string(); break; @@ -359026,6 +359686,13 @@ if (!$util.isString(message.bigqueryOutputDataset)) return "bigqueryOutputDataset: string expected"; } + if (message.vertexMultimodalDatasetName != null && message.hasOwnProperty("vertexMultimodalDatasetName")) { + if (properties.outputLocation === 1) + return "outputLocation: multiple values"; + properties.outputLocation = 1; + if (!$util.isString(message.vertexMultimodalDatasetName)) + return "vertexMultimodalDatasetName: string expected"; + } if (message.bigqueryOutputTable != null && message.hasOwnProperty("bigqueryOutputTable")) if (!$util.isString(message.bigqueryOutputTable)) return "bigqueryOutputTable: string expected"; @@ -359048,6 +359715,8 @@ message.gcsOutputDirectory = String(object.gcsOutputDirectory); if (object.bigqueryOutputDataset != null) message.bigqueryOutputDataset = String(object.bigqueryOutputDataset); + if (object.vertexMultimodalDatasetName != null) + message.vertexMultimodalDatasetName = String(object.vertexMultimodalDatasetName); if (object.bigqueryOutputTable != null) message.bigqueryOutputTable = String(object.bigqueryOutputTable); return message; @@ -359080,6 +359749,11 @@ } if (message.bigqueryOutputTable != null && message.hasOwnProperty("bigqueryOutputTable")) object.bigqueryOutputTable = message.bigqueryOutputTable; + if (message.vertexMultimodalDatasetName != null && message.hasOwnProperty("vertexMultimodalDatasetName")) { + object.vertexMultimodalDatasetName = message.vertexMultimodalDatasetName; + if (options.oneofs) + object.outputLocation = "vertexMultimodalDatasetName"; + } return object; }; @@ -368683,6 +369357,445 @@ return BigQueryDestination; })(); + v1beta1.VertexMultimodalDatasetSource = (function() { + + /** + * Properties of a VertexMultimodalDatasetSource. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IVertexMultimodalDatasetSource + * @property {string|null} [datasetName] VertexMultimodalDatasetSource datasetName + */ + + /** + * Constructs a new VertexMultimodalDatasetSource. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a VertexMultimodalDatasetSource. + * @implements IVertexMultimodalDatasetSource + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetSource=} [properties] Properties to set + */ + function VertexMultimodalDatasetSource(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VertexMultimodalDatasetSource datasetName. + * @member {string} datasetName + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + * @instance + */ + VertexMultimodalDatasetSource.prototype.datasetName = ""; + + /** + * Creates a new VertexMultimodalDatasetSource instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + * @static + * @param {google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetSource=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource} VertexMultimodalDatasetSource instance + */ + VertexMultimodalDatasetSource.create = function create(properties) { + return new VertexMultimodalDatasetSource(properties); + }; + + /** + * Encodes the specified VertexMultimodalDatasetSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + * @static + * @param {google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetSource} message VertexMultimodalDatasetSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VertexMultimodalDatasetSource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datasetName != null && Object.hasOwnProperty.call(message, "datasetName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetName); + return writer; + }; + + /** + * Encodes the specified VertexMultimodalDatasetSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + * @static + * @param {google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetSource} message VertexMultimodalDatasetSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VertexMultimodalDatasetSource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VertexMultimodalDatasetSource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource} VertexMultimodalDatasetSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VertexMultimodalDatasetSource.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.datasetName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VertexMultimodalDatasetSource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource} VertexMultimodalDatasetSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VertexMultimodalDatasetSource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VertexMultimodalDatasetSource message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VertexMultimodalDatasetSource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.datasetName != null && message.hasOwnProperty("datasetName")) + if (!$util.isString(message.datasetName)) + return "datasetName: string expected"; + return null; + }; + + /** + * Creates a VertexMultimodalDatasetSource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource} VertexMultimodalDatasetSource + */ + VertexMultimodalDatasetSource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource(); + if (object.datasetName != null) + message.datasetName = String(object.datasetName); + return message; + }; + + /** + * Creates a plain object from a VertexMultimodalDatasetSource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + * @static + * @param {google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource} message VertexMultimodalDatasetSource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VertexMultimodalDatasetSource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.datasetName = ""; + if (message.datasetName != null && message.hasOwnProperty("datasetName")) + object.datasetName = message.datasetName; + return object; + }; + + /** + * Converts this VertexMultimodalDatasetSource to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + * @instance + * @returns {Object.} JSON object + */ + VertexMultimodalDatasetSource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VertexMultimodalDatasetSource + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VertexMultimodalDatasetSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource"; + }; + + return VertexMultimodalDatasetSource; + })(); + + v1beta1.VertexMultimodalDatasetDestination = (function() { + + /** + * Properties of a VertexMultimodalDatasetDestination. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IVertexMultimodalDatasetDestination + * @property {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null} [bigqueryDestination] VertexMultimodalDatasetDestination bigqueryDestination + * @property {string|null} [displayName] VertexMultimodalDatasetDestination displayName + */ + + /** + * Constructs a new VertexMultimodalDatasetDestination. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a VertexMultimodalDatasetDestination. + * @implements IVertexMultimodalDatasetDestination + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetDestination=} [properties] Properties to set + */ + function VertexMultimodalDatasetDestination(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VertexMultimodalDatasetDestination bigqueryDestination. + * @member {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null|undefined} bigqueryDestination + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + * @instance + */ + VertexMultimodalDatasetDestination.prototype.bigqueryDestination = null; + + /** + * VertexMultimodalDatasetDestination displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + * @instance + */ + VertexMultimodalDatasetDestination.prototype.displayName = ""; + + /** + * Creates a new VertexMultimodalDatasetDestination instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + * @static + * @param {google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetDestination=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination} VertexMultimodalDatasetDestination instance + */ + VertexMultimodalDatasetDestination.create = function create(properties) { + return new VertexMultimodalDatasetDestination(properties); + }; + + /** + * Encodes the specified VertexMultimodalDatasetDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + * @static + * @param {google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetDestination} message VertexMultimodalDatasetDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VertexMultimodalDatasetDestination.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) + $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified VertexMultimodalDatasetDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + * @static + * @param {google.cloud.aiplatform.v1beta1.IVertexMultimodalDatasetDestination} message VertexMultimodalDatasetDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VertexMultimodalDatasetDestination.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VertexMultimodalDatasetDestination message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination} VertexMultimodalDatasetDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VertexMultimodalDatasetDestination.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.decode(reader, reader.uint32()); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VertexMultimodalDatasetDestination message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination} VertexMultimodalDatasetDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VertexMultimodalDatasetDestination.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VertexMultimodalDatasetDestination message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VertexMultimodalDatasetDestination.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + var error = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.verify(message.bigqueryDestination); + if (error) + return "bigqueryDestination." + error; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates a VertexMultimodalDatasetDestination message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination} VertexMultimodalDatasetDestination + */ + VertexMultimodalDatasetDestination.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination(); + if (object.bigqueryDestination != null) { + if (typeof object.bigqueryDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.bigqueryDestination: object expected"); + message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.fromObject(object.bigqueryDestination); + } + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from a VertexMultimodalDatasetDestination message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + * @static + * @param {google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination} message VertexMultimodalDatasetDestination + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VertexMultimodalDatasetDestination.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.bigqueryDestination = null; + object.displayName = ""; + } + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) + object.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.toObject(message.bigqueryDestination, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this VertexMultimodalDatasetDestination to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + * @instance + * @returns {Object.} JSON object + */ + VertexMultimodalDatasetDestination.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VertexMultimodalDatasetDestination + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VertexMultimodalDatasetDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination"; + }; + + return VertexMultimodalDatasetDestination; + })(); + v1beta1.CsvDestination = (function() { /** @@ -447220,6 +448333,7 @@ * @property {google.cloud.aiplatform.v1beta1.IToolConfig|null} [toolConfig] GeminiExample toolConfig * @property {Object.|null} [labels] GeminiExample labels * @property {Array.|null} [safetySettings] GeminiExample safetySettings + * @property {google.cloud.aiplatform.v1beta1.IModelArmorConfig|null} [modelArmorConfig] GeminiExample modelArmorConfig * @property {google.cloud.aiplatform.v1beta1.IGenerationConfig|null} [generationConfig] GeminiExample generationConfig */ @@ -447306,6 +448420,14 @@ */ GeminiExample.prototype.safetySettings = $util.emptyArray; + /** + * GeminiExample modelArmorConfig. + * @member {google.cloud.aiplatform.v1beta1.IModelArmorConfig|null|undefined} modelArmorConfig + * @memberof google.cloud.aiplatform.v1beta1.GeminiExample + * @instance + */ + GeminiExample.prototype.modelArmorConfig = null; + /** * GeminiExample generationConfig. * @member {google.cloud.aiplatform.v1beta1.IGenerationConfig|null|undefined} generationConfig @@ -447369,6 +448491,8 @@ if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.modelArmorConfig != null && Object.hasOwnProperty.call(message, "modelArmorConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelArmorConfig.encode(message.modelArmorConfig, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); return writer; }; @@ -447462,6 +448586,10 @@ message.safetySettings.push($root.google.cloud.aiplatform.v1beta1.SafetySetting.decode(reader, reader.uint32())); break; } + case 11: { + message.modelArmorConfig = $root.google.cloud.aiplatform.v1beta1.ModelArmorConfig.decode(reader, reader.uint32()); + break; + } case 4: { message.generationConfig = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.decode(reader, reader.uint32()); break; @@ -447556,6 +448684,11 @@ return "safetySettings." + error; } } + if (message.modelArmorConfig != null && message.hasOwnProperty("modelArmorConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelArmorConfig.verify(message.modelArmorConfig); + if (error) + return "modelArmorConfig." + error; + } if (message.generationConfig != null && message.hasOwnProperty("generationConfig")) { var error = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.verify(message.generationConfig); if (error) @@ -447627,6 +448760,11 @@ message.safetySettings[i] = $root.google.cloud.aiplatform.v1beta1.SafetySetting.fromObject(object.safetySettings[i]); } } + if (object.modelArmorConfig != null) { + if (typeof object.modelArmorConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GeminiExample.modelArmorConfig: object expected"); + message.modelArmorConfig = $root.google.cloud.aiplatform.v1beta1.ModelArmorConfig.fromObject(object.modelArmorConfig); + } if (object.generationConfig != null) { if (typeof object.generationConfig !== "object") throw TypeError(".google.cloud.aiplatform.v1beta1.GeminiExample.generationConfig: object expected"); @@ -447660,6 +448798,7 @@ object.generationConfig = null; object.toolConfig = null; object.cachedContent = ""; + object.modelArmorConfig = null; } if (message.model != null && message.hasOwnProperty("model")) object.model = message.model; @@ -447695,6 +448834,8 @@ for (var j = 0; j < keys2.length; ++j) object.labels[keys2[j]] = message.labels[keys2[j]]; } + if (message.modelArmorConfig != null && message.hasOwnProperty("modelArmorConfig")) + object.modelArmorConfig = $root.google.cloud.aiplatform.v1beta1.ModelArmorConfig.toObject(message.modelArmorConfig, options); return object; }; @@ -467520,6 +468661,9 @@ * Properties of a Metric. * @memberof google.cloud.aiplatform.v1beta1 * @interface IMetric + * @property {google.cloud.aiplatform.v1beta1.IPredefinedMetricSpec|null} [predefinedMetricSpec] Metric predefinedMetricSpec + * @property {google.cloud.aiplatform.v1beta1.IComputationBasedMetricSpec|null} [computationBasedMetricSpec] Metric computationBasedMetricSpec + * @property {google.cloud.aiplatform.v1beta1.ILLMBasedMetricSpec|null} [llmBasedMetricSpec] Metric llmBasedMetricSpec * @property {google.cloud.aiplatform.v1beta1.IPointwiseMetricSpec|null} [pointwiseMetricSpec] Metric pointwiseMetricSpec * @property {google.cloud.aiplatform.v1beta1.IPairwiseMetricSpec|null} [pairwiseMetricSpec] Metric pairwiseMetricSpec * @property {google.cloud.aiplatform.v1beta1.IExactMatchSpec|null} [exactMatchSpec] Metric exactMatchSpec @@ -467544,6 +468688,30 @@ this[keys[i]] = properties[keys[i]]; } + /** + * Metric predefinedMetricSpec. + * @member {google.cloud.aiplatform.v1beta1.IPredefinedMetricSpec|null|undefined} predefinedMetricSpec + * @memberof google.cloud.aiplatform.v1beta1.Metric + * @instance + */ + Metric.prototype.predefinedMetricSpec = null; + + /** + * Metric computationBasedMetricSpec. + * @member {google.cloud.aiplatform.v1beta1.IComputationBasedMetricSpec|null|undefined} computationBasedMetricSpec + * @memberof google.cloud.aiplatform.v1beta1.Metric + * @instance + */ + Metric.prototype.computationBasedMetricSpec = null; + + /** + * Metric llmBasedMetricSpec. + * @member {google.cloud.aiplatform.v1beta1.ILLMBasedMetricSpec|null|undefined} llmBasedMetricSpec + * @memberof google.cloud.aiplatform.v1beta1.Metric + * @instance + */ + Metric.prototype.llmBasedMetricSpec = null; + /** * Metric pointwiseMetricSpec. * @member {google.cloud.aiplatform.v1beta1.IPointwiseMetricSpec|null|undefined} pointwiseMetricSpec @@ -467597,12 +468765,12 @@ /** * Metric metricSpec. - * @member {"pointwiseMetricSpec"|"pairwiseMetricSpec"|"exactMatchSpec"|"bleuSpec"|"rougeSpec"|undefined} metricSpec + * @member {"predefinedMetricSpec"|"computationBasedMetricSpec"|"llmBasedMetricSpec"|"pointwiseMetricSpec"|"pairwiseMetricSpec"|"exactMatchSpec"|"bleuSpec"|"rougeSpec"|undefined} metricSpec * @memberof google.cloud.aiplatform.v1beta1.Metric * @instance */ Object.defineProperty(Metric.prototype, "metricSpec", { - get: $util.oneOfGetter($oneOfFields = ["pointwiseMetricSpec", "pairwiseMetricSpec", "exactMatchSpec", "bleuSpec", "rougeSpec"]), + get: $util.oneOfGetter($oneOfFields = ["predefinedMetricSpec", "computationBasedMetricSpec", "llmBasedMetricSpec", "pointwiseMetricSpec", "pairwiseMetricSpec", "exactMatchSpec", "bleuSpec", "rougeSpec"]), set: $util.oneOfSetter($oneOfFields) }); @@ -467646,6 +468814,12 @@ $root.google.cloud.aiplatform.v1beta1.BleuSpec.encode(message.bleuSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.rougeSpec != null && Object.hasOwnProperty.call(message, "rougeSpec")) $root.google.cloud.aiplatform.v1beta1.RougeSpec.encode(message.rougeSpec, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.predefinedMetricSpec != null && Object.hasOwnProperty.call(message, "predefinedMetricSpec")) + $root.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.encode(message.predefinedMetricSpec, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.computationBasedMetricSpec != null && Object.hasOwnProperty.call(message, "computationBasedMetricSpec")) + $root.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.encode(message.computationBasedMetricSpec, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.llmBasedMetricSpec != null && Object.hasOwnProperty.call(message, "llmBasedMetricSpec")) + $root.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.encode(message.llmBasedMetricSpec, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; @@ -467682,6 +468856,18 @@ if (tag === error) break; switch (tag >>> 3) { + case 8: { + message.predefinedMetricSpec = $root.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.decode(reader, reader.uint32()); + break; + } + case 9: { + message.computationBasedMetricSpec = $root.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.decode(reader, reader.uint32()); + break; + } + case 10: { + message.llmBasedMetricSpec = $root.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.decode(reader, reader.uint32()); + break; + } case 2: { message.pointwiseMetricSpec = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec.decode(reader, reader.uint32()); break; @@ -467749,7 +468935,37 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.predefinedMetricSpec != null && message.hasOwnProperty("predefinedMetricSpec")) { + properties.metricSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.verify(message.predefinedMetricSpec); + if (error) + return "predefinedMetricSpec." + error; + } + } + if (message.computationBasedMetricSpec != null && message.hasOwnProperty("computationBasedMetricSpec")) { + if (properties.metricSpec === 1) + return "metricSpec: multiple values"; + properties.metricSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.verify(message.computationBasedMetricSpec); + if (error) + return "computationBasedMetricSpec." + error; + } + } + if (message.llmBasedMetricSpec != null && message.hasOwnProperty("llmBasedMetricSpec")) { + if (properties.metricSpec === 1) + return "metricSpec: multiple values"; + properties.metricSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.verify(message.llmBasedMetricSpec); + if (error) + return "llmBasedMetricSpec." + error; + } + } if (message.pointwiseMetricSpec != null && message.hasOwnProperty("pointwiseMetricSpec")) { + if (properties.metricSpec === 1) + return "metricSpec: multiple values"; properties.metricSpec = 1; { var error = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec.verify(message.pointwiseMetricSpec); @@ -467833,6 +469049,21 @@ if (object instanceof $root.google.cloud.aiplatform.v1beta1.Metric) return object; var message = new $root.google.cloud.aiplatform.v1beta1.Metric(); + if (object.predefinedMetricSpec != null) { + if (typeof object.predefinedMetricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Metric.predefinedMetricSpec: object expected"); + message.predefinedMetricSpec = $root.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.fromObject(object.predefinedMetricSpec); + } + if (object.computationBasedMetricSpec != null) { + if (typeof object.computationBasedMetricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Metric.computationBasedMetricSpec: object expected"); + message.computationBasedMetricSpec = $root.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.fromObject(object.computationBasedMetricSpec); + } + if (object.llmBasedMetricSpec != null) { + if (typeof object.llmBasedMetricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Metric.llmBasedMetricSpec: object expected"); + message.llmBasedMetricSpec = $root.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.fromObject(object.llmBasedMetricSpec); + } if (object.pointwiseMetricSpec != null) { if (typeof object.pointwiseMetricSpec !== "object") throw TypeError(".google.cloud.aiplatform.v1beta1.Metric.pointwiseMetricSpec: object expected"); @@ -467963,6 +469194,21 @@ if (options.oneofs) object.metricSpec = "rougeSpec"; } + if (message.predefinedMetricSpec != null && message.hasOwnProperty("predefinedMetricSpec")) { + object.predefinedMetricSpec = $root.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.toObject(message.predefinedMetricSpec, options); + if (options.oneofs) + object.metricSpec = "predefinedMetricSpec"; + } + if (message.computationBasedMetricSpec != null && message.hasOwnProperty("computationBasedMetricSpec")) { + object.computationBasedMetricSpec = $root.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.toObject(message.computationBasedMetricSpec, options); + if (options.oneofs) + object.metricSpec = "computationBasedMetricSpec"; + } + if (message.llmBasedMetricSpec != null && message.hasOwnProperty("llmBasedMetricSpec")) { + object.llmBasedMetricSpec = $root.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.toObject(message.llmBasedMetricSpec, options); + if (options.oneofs) + object.metricSpec = "llmBasedMetricSpec"; + } return object; }; @@ -469971,6 +471217,7 @@ * @property {google.cloud.aiplatform.v1beta1.ITrajectoryRecallResults|null} [trajectoryRecallResults] EvaluateInstancesResponse trajectoryRecallResults * @property {google.cloud.aiplatform.v1beta1.ITrajectorySingleToolUseResults|null} [trajectorySingleToolUseResults] EvaluateInstancesResponse trajectorySingleToolUseResults * @property {google.cloud.aiplatform.v1beta1.IRubricBasedInstructionFollowingResult|null} [rubricBasedInstructionFollowingResult] EvaluateInstancesResponse rubricBasedInstructionFollowingResult + * @property {Array.|null} [metricResults] EvaluateInstancesResponse metricResults */ /** @@ -469982,6 +471229,7 @@ * @param {google.cloud.aiplatform.v1beta1.IEvaluateInstancesResponse=} [properties] Properties to set */ function EvaluateInstancesResponse(properties) { + this.metricResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -470244,6 +471492,14 @@ */ EvaluateInstancesResponse.prototype.rubricBasedInstructionFollowingResult = null; + /** + * EvaluateInstancesResponse metricResults. + * @member {Array.} metricResults + * @memberof google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.metricResults = $util.emptyArray; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -470346,6 +471602,9 @@ $root.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.encode(message.trajectorySingleToolUseResults, writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim(); if (message.rubricBasedInstructionFollowingResult != null && Object.hasOwnProperty.call(message, "rubricBasedInstructionFollowingResult")) $root.google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingResult.encode(message.rubricBasedInstructionFollowingResult, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim(); + if (message.metricResults != null && message.metricResults.length) + for (var i = 0; i < message.metricResults.length; ++i) + $root.google.cloud.aiplatform.v1beta1.MetricResult.encode(message.metricResults[i], writer.uint32(/* id 43, wireType 2 =*/346).fork()).ldelim(); return writer; }; @@ -470510,6 +471769,12 @@ message.rubricBasedInstructionFollowingResult = $root.google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingResult.decode(reader, reader.uint32()); break; } + case 43: { + if (!(message.metricResults && message.metricResults.length)) + message.metricResults = []; + message.metricResults.push($root.google.cloud.aiplatform.v1beta1.MetricResult.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -470864,6 +472129,15 @@ return "rubricBasedInstructionFollowingResult." + error; } } + if (message.metricResults != null && message.hasOwnProperty("metricResults")) { + if (!Array.isArray(message.metricResults)) + return "metricResults: array expected"; + for (var i = 0; i < message.metricResults.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.MetricResult.verify(message.metricResults[i]); + if (error) + return "metricResults." + error; + } + } return null; }; @@ -471039,6 +472313,16 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse.rubricBasedInstructionFollowingResult: object expected"); message.rubricBasedInstructionFollowingResult = $root.google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingResult.fromObject(object.rubricBasedInstructionFollowingResult); } + if (object.metricResults) { + if (!Array.isArray(object.metricResults)) + throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse.metricResults: array expected"); + message.metricResults = []; + for (var i = 0; i < object.metricResults.length; ++i) { + if (typeof object.metricResults[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse.metricResults: object expected"); + message.metricResults[i] = $root.google.cloud.aiplatform.v1beta1.MetricResult.fromObject(object.metricResults[i]); + } + } return message; }; @@ -471055,6 +472339,8 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.metricResults = []; if (message.exactMatchResults != null && message.hasOwnProperty("exactMatchResults")) { object.exactMatchResults = $root.google.cloud.aiplatform.v1beta1.ExactMatchResults.toObject(message.exactMatchResults, options); if (options.oneofs) @@ -471215,6 +472501,11 @@ if (options.oneofs) object.evaluationResults = "rubricBasedInstructionFollowingResult"; } + if (message.metricResults && message.metricResults.length) { + object.metricResults = []; + for (var j = 0; j < message.metricResults.length; ++j) + object.metricResults[j] = $root.google.cloud.aiplatform.v1beta1.MetricResult.toObject(message.metricResults[j], options); + } return object; }; @@ -471247,6 +472538,1236 @@ return EvaluateInstancesResponse; })(); + v1beta1.MetricResult = (function() { + + /** + * Properties of a MetricResult. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IMetricResult + * @property {number|null} [score] MetricResult score + * @property {string|null} [explanation] MetricResult explanation + * @property {google.rpc.IStatus|null} [error] MetricResult error + */ + + /** + * Constructs a new MetricResult. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a MetricResult. + * @implements IMetricResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IMetricResult=} [properties] Properties to set + */ + function MetricResult(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MetricResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1beta1.MetricResult + * @instance + */ + MetricResult.prototype.score = null; + + /** + * MetricResult explanation. + * @member {string|null|undefined} explanation + * @memberof google.cloud.aiplatform.v1beta1.MetricResult + * @instance + */ + MetricResult.prototype.explanation = null; + + /** + * MetricResult error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.MetricResult + * @instance + */ + MetricResult.prototype.error = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(MetricResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(MetricResult.prototype, "_explanation", { + get: $util.oneOfGetter($oneOfFields = ["explanation"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(MetricResult.prototype, "_error", { + get: $util.oneOfGetter($oneOfFields = ["error"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MetricResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MetricResult + * @static + * @param {google.cloud.aiplatform.v1beta1.IMetricResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MetricResult} MetricResult instance + */ + MetricResult.create = function create(properties) { + return new MetricResult(properties); + }; + + /** + * Encodes the specified MetricResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetricResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MetricResult + * @static + * @param {google.cloud.aiplatform.v1beta1.IMetricResult} message MetricResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.explanation); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MetricResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetricResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MetricResult + * @static + * @param {google.cloud.aiplatform.v1beta1.IMetricResult} message MetricResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetricResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MetricResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MetricResult} MetricResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricResult.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MetricResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + case 3: { + message.explanation = reader.string(); + break; + } + case 4: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetricResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MetricResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MetricResult} MetricResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetricResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MetricResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) { + properties._explanation = 1; + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + properties._error = 1; + { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + } + return null; + }; + + /** + * Creates a MetricResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MetricResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MetricResult} MetricResult + */ + MetricResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MetricResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MetricResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MetricResult.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + return message; + }; + + /** + * Creates a plain object from a MetricResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MetricResult + * @static + * @param {google.cloud.aiplatform.v1beta1.MetricResult} message MetricResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) { + object.explanation = message.explanation; + if (options.oneofs) + object._explanation = "explanation"; + } + if (message.error != null && message.hasOwnProperty("error")) { + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (options.oneofs) + object._error = "error"; + } + return object; + }; + + /** + * Converts this MetricResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MetricResult + * @instance + * @returns {Object.} JSON object + */ + MetricResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MetricResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.MetricResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MetricResult"; + }; + + return MetricResult; + })(); + + v1beta1.PredefinedMetricSpec = (function() { + + /** + * Properties of a PredefinedMetricSpec. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IPredefinedMetricSpec + * @property {string|null} [metricSpecName] PredefinedMetricSpec metricSpecName + * @property {google.protobuf.IStruct|null} [metricSpecParameters] PredefinedMetricSpec metricSpecParameters + */ + + /** + * Constructs a new PredefinedMetricSpec. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a PredefinedMetricSpec. + * @implements IPredefinedMetricSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IPredefinedMetricSpec=} [properties] Properties to set + */ + function PredefinedMetricSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PredefinedMetricSpec metricSpecName. + * @member {string} metricSpecName + * @memberof google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + * @instance + */ + PredefinedMetricSpec.prototype.metricSpecName = ""; + + /** + * PredefinedMetricSpec metricSpecParameters. + * @member {google.protobuf.IStruct|null|undefined} metricSpecParameters + * @memberof google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + * @instance + */ + PredefinedMetricSpec.prototype.metricSpecParameters = null; + + /** + * Creates a new PredefinedMetricSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IPredefinedMetricSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PredefinedMetricSpec} PredefinedMetricSpec instance + */ + PredefinedMetricSpec.create = function create(properties) { + return new PredefinedMetricSpec(properties); + }; + + /** + * Encodes the specified PredefinedMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IPredefinedMetricSpec} message PredefinedMetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PredefinedMetricSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpecName != null && Object.hasOwnProperty.call(message, "metricSpecName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricSpecName); + if (message.metricSpecParameters != null && Object.hasOwnProperty.call(message, "metricSpecParameters")) + $root.google.protobuf.Struct.encode(message.metricSpecParameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PredefinedMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IPredefinedMetricSpec} message PredefinedMetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PredefinedMetricSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PredefinedMetricSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PredefinedMetricSpec} PredefinedMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PredefinedMetricSpec.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.metricSpecName = reader.string(); + break; + } + case 2: { + message.metricSpecParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PredefinedMetricSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PredefinedMetricSpec} PredefinedMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PredefinedMetricSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PredefinedMetricSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PredefinedMetricSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpecName != null && message.hasOwnProperty("metricSpecName")) + if (!$util.isString(message.metricSpecName)) + return "metricSpecName: string expected"; + if (message.metricSpecParameters != null && message.hasOwnProperty("metricSpecParameters")) { + var error = $root.google.protobuf.Struct.verify(message.metricSpecParameters); + if (error) + return "metricSpecParameters." + error; + } + return null; + }; + + /** + * Creates a PredefinedMetricSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PredefinedMetricSpec} PredefinedMetricSpec + */ + PredefinedMetricSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec(); + if (object.metricSpecName != null) + message.metricSpecName = String(object.metricSpecName); + if (object.metricSpecParameters != null) { + if (typeof object.metricSpecParameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.metricSpecParameters: object expected"); + message.metricSpecParameters = $root.google.protobuf.Struct.fromObject(object.metricSpecParameters); + } + return message; + }; + + /** + * Creates a plain object from a PredefinedMetricSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.PredefinedMetricSpec} message PredefinedMetricSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PredefinedMetricSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpecName = ""; + object.metricSpecParameters = null; + } + if (message.metricSpecName != null && message.hasOwnProperty("metricSpecName")) + object.metricSpecName = message.metricSpecName; + if (message.metricSpecParameters != null && message.hasOwnProperty("metricSpecParameters")) + object.metricSpecParameters = $root.google.protobuf.Struct.toObject(message.metricSpecParameters, options); + return object; + }; + + /** + * Converts this PredefinedMetricSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + * @instance + * @returns {Object.} JSON object + */ + PredefinedMetricSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PredefinedMetricSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PredefinedMetricSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PredefinedMetricSpec"; + }; + + return PredefinedMetricSpec; + })(); + + v1beta1.ComputationBasedMetricSpec = (function() { + + /** + * Properties of a ComputationBasedMetricSpec. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IComputationBasedMetricSpec + * @property {google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType|null} [type] ComputationBasedMetricSpec type + * @property {google.protobuf.IStruct|null} [parameters] ComputationBasedMetricSpec parameters + */ + + /** + * Constructs a new ComputationBasedMetricSpec. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ComputationBasedMetricSpec. + * @implements IComputationBasedMetricSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IComputationBasedMetricSpec=} [properties] Properties to set + */ + function ComputationBasedMetricSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ComputationBasedMetricSpec type. + * @member {google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType|null|undefined} type + * @memberof google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + * @instance + */ + ComputationBasedMetricSpec.prototype.type = null; + + /** + * ComputationBasedMetricSpec parameters. + * @member {google.protobuf.IStruct|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + * @instance + */ + ComputationBasedMetricSpec.prototype.parameters = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ComputationBasedMetricSpec.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ComputationBasedMetricSpec.prototype, "_parameters", { + get: $util.oneOfGetter($oneOfFields = ["parameters"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ComputationBasedMetricSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IComputationBasedMetricSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec} ComputationBasedMetricSpec instance + */ + ComputationBasedMetricSpec.create = function create(properties) { + return new ComputationBasedMetricSpec(properties); + }; + + /** + * Encodes the specified ComputationBasedMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IComputationBasedMetricSpec} message ComputationBasedMetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComputationBasedMetricSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ComputationBasedMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IComputationBasedMetricSpec} message ComputationBasedMetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComputationBasedMetricSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ComputationBasedMetricSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec} ComputationBasedMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComputationBasedMetricSpec.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 2: { + message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ComputationBasedMetricSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec} ComputationBasedMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComputationBasedMetricSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ComputationBasedMetricSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ComputationBasedMetricSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.type != null && message.hasOwnProperty("type")) { + properties._type = 1; + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + properties._parameters = 1; + { + var error = $root.google.protobuf.Struct.verify(message.parameters); + if (error) + return "parameters." + error; + } + } + return null; + }; + + /** + * Creates a ComputationBasedMetricSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec} ComputationBasedMetricSpec + */ + ComputationBasedMetricSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "EXACT_MATCH": + case 1: + message.type = 1; + break; + case "BLEU": + case 2: + message.type = 2; + break; + case "ROUGE": + case 3: + message.type = 3; + break; + } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.parameters: object expected"); + message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); + } + return message; + }; + + /** + * Creates a plain object from a ComputationBasedMetricSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec} message ComputationBasedMetricSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ComputationBasedMetricSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.type != null && message.hasOwnProperty("type")) { + object.type = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType[message.type] === undefined ? message.type : $root.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType[message.type] : message.type; + if (options.oneofs) + object._type = "type"; + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); + if (options.oneofs) + object._parameters = "parameters"; + } + return object; + }; + + /** + * Converts this ComputationBasedMetricSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + * @instance + * @returns {Object.} JSON object + */ + ComputationBasedMetricSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ComputationBasedMetricSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ComputationBasedMetricSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec"; + }; + + /** + * ComputationBasedMetricType enum. + * @name google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType + * @enum {number} + * @property {number} COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED=0 COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED value + * @property {number} EXACT_MATCH=1 EXACT_MATCH value + * @property {number} BLEU=2 BLEU value + * @property {number} ROUGE=3 ROUGE value + */ + ComputationBasedMetricSpec.ComputationBasedMetricType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EXACT_MATCH"] = 1; + values[valuesById[2] = "BLEU"] = 2; + values[valuesById[3] = "ROUGE"] = 3; + return values; + })(); + + return ComputationBasedMetricSpec; + })(); + + v1beta1.LLMBasedMetricSpec = (function() { + + /** + * Properties of a LLMBasedMetricSpec. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ILLMBasedMetricSpec + * @property {string|null} [rubricGroupKey] LLMBasedMetricSpec rubricGroupKey + * @property {google.cloud.aiplatform.v1beta1.IPredefinedMetricSpec|null} [predefinedRubricGenerationSpec] LLMBasedMetricSpec predefinedRubricGenerationSpec + * @property {string|null} [metricPromptTemplate] LLMBasedMetricSpec metricPromptTemplate + * @property {string|null} [systemInstruction] LLMBasedMetricSpec systemInstruction + * @property {google.cloud.aiplatform.v1beta1.IAutoraterConfig|null} [judgeAutoraterConfig] LLMBasedMetricSpec judgeAutoraterConfig + * @property {google.protobuf.IStruct|null} [additionalConfig] LLMBasedMetricSpec additionalConfig + */ + + /** + * Constructs a new LLMBasedMetricSpec. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a LLMBasedMetricSpec. + * @implements ILLMBasedMetricSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ILLMBasedMetricSpec=} [properties] Properties to set + */ + function LLMBasedMetricSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LLMBasedMetricSpec rubricGroupKey. + * @member {string|null|undefined} rubricGroupKey + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @instance + */ + LLMBasedMetricSpec.prototype.rubricGroupKey = null; + + /** + * LLMBasedMetricSpec predefinedRubricGenerationSpec. + * @member {google.cloud.aiplatform.v1beta1.IPredefinedMetricSpec|null|undefined} predefinedRubricGenerationSpec + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @instance + */ + LLMBasedMetricSpec.prototype.predefinedRubricGenerationSpec = null; + + /** + * LLMBasedMetricSpec metricPromptTemplate. + * @member {string|null|undefined} metricPromptTemplate + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @instance + */ + LLMBasedMetricSpec.prototype.metricPromptTemplate = null; + + /** + * LLMBasedMetricSpec systemInstruction. + * @member {string|null|undefined} systemInstruction + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @instance + */ + LLMBasedMetricSpec.prototype.systemInstruction = null; + + /** + * LLMBasedMetricSpec judgeAutoraterConfig. + * @member {google.cloud.aiplatform.v1beta1.IAutoraterConfig|null|undefined} judgeAutoraterConfig + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @instance + */ + LLMBasedMetricSpec.prototype.judgeAutoraterConfig = null; + + /** + * LLMBasedMetricSpec additionalConfig. + * @member {google.protobuf.IStruct|null|undefined} additionalConfig + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @instance + */ + LLMBasedMetricSpec.prototype.additionalConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * LLMBasedMetricSpec rubricsSource. + * @member {"rubricGroupKey"|"predefinedRubricGenerationSpec"|undefined} rubricsSource + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @instance + */ + Object.defineProperty(LLMBasedMetricSpec.prototype, "rubricsSource", { + get: $util.oneOfGetter($oneOfFields = ["rubricGroupKey", "predefinedRubricGenerationSpec"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(LLMBasedMetricSpec.prototype, "_metricPromptTemplate", { + get: $util.oneOfGetter($oneOfFields = ["metricPromptTemplate"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(LLMBasedMetricSpec.prototype, "_systemInstruction", { + get: $util.oneOfGetter($oneOfFields = ["systemInstruction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(LLMBasedMetricSpec.prototype, "_judgeAutoraterConfig", { + get: $util.oneOfGetter($oneOfFields = ["judgeAutoraterConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(LLMBasedMetricSpec.prototype, "_additionalConfig", { + get: $util.oneOfGetter($oneOfFields = ["additionalConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new LLMBasedMetricSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ILLMBasedMetricSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec} LLMBasedMetricSpec instance + */ + LLMBasedMetricSpec.create = function create(properties) { + return new LLMBasedMetricSpec(properties); + }; + + /** + * Encodes the specified LLMBasedMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ILLMBasedMetricSpec} message LLMBasedMetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LLMBasedMetricSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricPromptTemplate != null && Object.hasOwnProperty.call(message, "metricPromptTemplate")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricPromptTemplate); + if (message.systemInstruction != null && Object.hasOwnProperty.call(message, "systemInstruction")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.systemInstruction); + if (message.judgeAutoraterConfig != null && Object.hasOwnProperty.call(message, "judgeAutoraterConfig")) + $root.google.cloud.aiplatform.v1beta1.AutoraterConfig.encode(message.judgeAutoraterConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.rubricGroupKey != null && Object.hasOwnProperty.call(message, "rubricGroupKey")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.rubricGroupKey); + if (message.predefinedRubricGenerationSpec != null && Object.hasOwnProperty.call(message, "predefinedRubricGenerationSpec")) + $root.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.encode(message.predefinedRubricGenerationSpec, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.additionalConfig != null && Object.hasOwnProperty.call(message, "additionalConfig")) + $root.google.protobuf.Struct.encode(message.additionalConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified LLMBasedMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ILLMBasedMetricSpec} message LLMBasedMetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LLMBasedMetricSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LLMBasedMetricSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec} LLMBasedMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LLMBasedMetricSpec.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 4: { + message.rubricGroupKey = reader.string(); + break; + } + case 6: { + message.predefinedRubricGenerationSpec = $root.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.decode(reader, reader.uint32()); + break; + } + case 1: { + message.metricPromptTemplate = reader.string(); + break; + } + case 2: { + message.systemInstruction = reader.string(); + break; + } + case 3: { + message.judgeAutoraterConfig = $root.google.cloud.aiplatform.v1beta1.AutoraterConfig.decode(reader, reader.uint32()); + break; + } + case 7: { + message.additionalConfig = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LLMBasedMetricSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec} LLMBasedMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LLMBasedMetricSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LLMBasedMetricSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LLMBasedMetricSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.rubricGroupKey != null && message.hasOwnProperty("rubricGroupKey")) { + properties.rubricsSource = 1; + if (!$util.isString(message.rubricGroupKey)) + return "rubricGroupKey: string expected"; + } + if (message.predefinedRubricGenerationSpec != null && message.hasOwnProperty("predefinedRubricGenerationSpec")) { + if (properties.rubricsSource === 1) + return "rubricsSource: multiple values"; + properties.rubricsSource = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.verify(message.predefinedRubricGenerationSpec); + if (error) + return "predefinedRubricGenerationSpec." + error; + } + } + if (message.metricPromptTemplate != null && message.hasOwnProperty("metricPromptTemplate")) { + properties._metricPromptTemplate = 1; + if (!$util.isString(message.metricPromptTemplate)) + return "metricPromptTemplate: string expected"; + } + if (message.systemInstruction != null && message.hasOwnProperty("systemInstruction")) { + properties._systemInstruction = 1; + if (!$util.isString(message.systemInstruction)) + return "systemInstruction: string expected"; + } + if (message.judgeAutoraterConfig != null && message.hasOwnProperty("judgeAutoraterConfig")) { + properties._judgeAutoraterConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.AutoraterConfig.verify(message.judgeAutoraterConfig); + if (error) + return "judgeAutoraterConfig." + error; + } + } + if (message.additionalConfig != null && message.hasOwnProperty("additionalConfig")) { + properties._additionalConfig = 1; + { + var error = $root.google.protobuf.Struct.verify(message.additionalConfig); + if (error) + return "additionalConfig." + error; + } + } + return null; + }; + + /** + * Creates a LLMBasedMetricSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec} LLMBasedMetricSpec + */ + LLMBasedMetricSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec(); + if (object.rubricGroupKey != null) + message.rubricGroupKey = String(object.rubricGroupKey); + if (object.predefinedRubricGenerationSpec != null) { + if (typeof object.predefinedRubricGenerationSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.predefinedRubricGenerationSpec: object expected"); + message.predefinedRubricGenerationSpec = $root.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.fromObject(object.predefinedRubricGenerationSpec); + } + if (object.metricPromptTemplate != null) + message.metricPromptTemplate = String(object.metricPromptTemplate); + if (object.systemInstruction != null) + message.systemInstruction = String(object.systemInstruction); + if (object.judgeAutoraterConfig != null) { + if (typeof object.judgeAutoraterConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.judgeAutoraterConfig: object expected"); + message.judgeAutoraterConfig = $root.google.cloud.aiplatform.v1beta1.AutoraterConfig.fromObject(object.judgeAutoraterConfig); + } + if (object.additionalConfig != null) { + if (typeof object.additionalConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.additionalConfig: object expected"); + message.additionalConfig = $root.google.protobuf.Struct.fromObject(object.additionalConfig); + } + return message; + }; + + /** + * Creates a plain object from a LLMBasedMetricSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec} message LLMBasedMetricSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LLMBasedMetricSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.metricPromptTemplate != null && message.hasOwnProperty("metricPromptTemplate")) { + object.metricPromptTemplate = message.metricPromptTemplate; + if (options.oneofs) + object._metricPromptTemplate = "metricPromptTemplate"; + } + if (message.systemInstruction != null && message.hasOwnProperty("systemInstruction")) { + object.systemInstruction = message.systemInstruction; + if (options.oneofs) + object._systemInstruction = "systemInstruction"; + } + if (message.judgeAutoraterConfig != null && message.hasOwnProperty("judgeAutoraterConfig")) { + object.judgeAutoraterConfig = $root.google.cloud.aiplatform.v1beta1.AutoraterConfig.toObject(message.judgeAutoraterConfig, options); + if (options.oneofs) + object._judgeAutoraterConfig = "judgeAutoraterConfig"; + } + if (message.rubricGroupKey != null && message.hasOwnProperty("rubricGroupKey")) { + object.rubricGroupKey = message.rubricGroupKey; + if (options.oneofs) + object.rubricsSource = "rubricGroupKey"; + } + if (message.predefinedRubricGenerationSpec != null && message.hasOwnProperty("predefinedRubricGenerationSpec")) { + object.predefinedRubricGenerationSpec = $root.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.toObject(message.predefinedRubricGenerationSpec, options); + if (options.oneofs) + object.rubricsSource = "predefinedRubricGenerationSpec"; + } + if (message.additionalConfig != null && message.hasOwnProperty("additionalConfig")) { + object.additionalConfig = $root.google.protobuf.Struct.toObject(message.additionalConfig, options); + if (options.oneofs) + object._additionalConfig = "additionalConfig"; + } + return object; + }; + + /** + * Converts this LLMBasedMetricSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @instance + * @returns {Object.} JSON object + */ + LLMBasedMetricSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LLMBasedMetricSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LLMBasedMetricSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec"; + }; + + return LLMBasedMetricSpec; + })(); + v1beta1.ExactMatchInput = (function() { /** @@ -740412,6 +742933,7 @@ * @property {google.protobuf.ITimestamp|null} [lastPauseTime] Schedule lastPauseTime * @property {google.protobuf.ITimestamp|null} [lastResumeTime] Schedule lastResumeTime * @property {number|Long|null} [maxConcurrentRunCount] Schedule maxConcurrentRunCount + * @property {number|Long|null} [maxConcurrentActiveRunCount] Schedule maxConcurrentActiveRunCount * @property {boolean|null} [allowQueueing] Schedule allowQueueing * @property {boolean|null} [catchUp] Schedule catchUp * @property {google.cloud.aiplatform.v1beta1.Schedule.IRunResponse|null} [lastScheduledRunResponse] Schedule lastScheduledRunResponse @@ -740568,6 +743090,14 @@ */ Schedule.prototype.maxConcurrentRunCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Schedule maxConcurrentActiveRunCount. + * @member {number|Long} maxConcurrentActiveRunCount + * @memberof google.cloud.aiplatform.v1beta1.Schedule + * @instance + */ + Schedule.prototype.maxConcurrentActiveRunCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** * Schedule allowQueueing. * @member {boolean} allowQueueing @@ -740681,6 +743211,8 @@ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); if (message.createNotebookExecutionJobRequest != null && Object.hasOwnProperty.call(message, "createNotebookExecutionJobRequest")) $root.google.cloud.aiplatform.v1beta1.CreateNotebookExecutionJobRequest.encode(message.createNotebookExecutionJobRequest, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.maxConcurrentActiveRunCount != null && Object.hasOwnProperty.call(message, "maxConcurrentActiveRunCount")) + writer.uint32(/* id 21, wireType 0 =*/168).int64(message.maxConcurrentActiveRunCount); return writer; }; @@ -740785,6 +743317,10 @@ message.maxConcurrentRunCount = reader.int64(); break; } + case 21: { + message.maxConcurrentActiveRunCount = reader.int64(); + break; + } case 12: { message.allowQueueing = reader.bool(); break; @@ -740926,6 +743462,9 @@ if (message.maxConcurrentRunCount != null && message.hasOwnProperty("maxConcurrentRunCount")) if (!$util.isInteger(message.maxConcurrentRunCount) && !(message.maxConcurrentRunCount && $util.isInteger(message.maxConcurrentRunCount.low) && $util.isInteger(message.maxConcurrentRunCount.high))) return "maxConcurrentRunCount: integer|Long expected"; + if (message.maxConcurrentActiveRunCount != null && message.hasOwnProperty("maxConcurrentActiveRunCount")) + if (!$util.isInteger(message.maxConcurrentActiveRunCount) && !(message.maxConcurrentActiveRunCount && $util.isInteger(message.maxConcurrentActiveRunCount.low) && $util.isInteger(message.maxConcurrentActiveRunCount.high))) + return "maxConcurrentActiveRunCount: integer|Long expected"; if (message.allowQueueing != null && message.hasOwnProperty("allowQueueing")) if (typeof message.allowQueueing !== "boolean") return "allowQueueing: boolean expected"; @@ -741059,6 +743598,15 @@ message.maxConcurrentRunCount = object.maxConcurrentRunCount; else if (typeof object.maxConcurrentRunCount === "object") message.maxConcurrentRunCount = new $util.LongBits(object.maxConcurrentRunCount.low >>> 0, object.maxConcurrentRunCount.high >>> 0).toNumber(); + if (object.maxConcurrentActiveRunCount != null) + if ($util.Long) + (message.maxConcurrentActiveRunCount = $util.Long.fromValue(object.maxConcurrentActiveRunCount)).unsigned = false; + else if (typeof object.maxConcurrentActiveRunCount === "string") + message.maxConcurrentActiveRunCount = parseInt(object.maxConcurrentActiveRunCount, 10); + else if (typeof object.maxConcurrentActiveRunCount === "number") + message.maxConcurrentActiveRunCount = object.maxConcurrentActiveRunCount; + else if (typeof object.maxConcurrentActiveRunCount === "object") + message.maxConcurrentActiveRunCount = new $util.LongBits(object.maxConcurrentActiveRunCount.low >>> 0, object.maxConcurrentActiveRunCount.high >>> 0).toNumber(); if (object.allowQueueing != null) message.allowQueueing = Boolean(object.allowQueueing); if (object.catchUp != null) @@ -741113,6 +743661,11 @@ object.startedRunCount = options.longs === String ? "0" : 0; object.lastScheduledRunResponse = null; object.updateTime = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maxConcurrentActiveRunCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxConcurrentActiveRunCount = options.longs === String ? "0" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -741175,6 +743728,11 @@ if (options.oneofs) object.request = "createNotebookExecutionJobRequest"; } + if (message.maxConcurrentActiveRunCount != null && message.hasOwnProperty("maxConcurrentActiveRunCount")) + if (typeof message.maxConcurrentActiveRunCount === "number") + object.maxConcurrentActiveRunCount = options.longs === String ? String(message.maxConcurrentActiveRunCount) : message.maxConcurrentActiveRunCount; + else + object.maxConcurrentActiveRunCount = options.longs === String ? $util.Long.prototype.toString.call(message.maxConcurrentActiveRunCount) : options.longs === Number ? new $util.LongBits(message.maxConcurrentActiveRunCount.low >>> 0, message.maxConcurrentActiveRunCount.high >>> 0).toNumber() : message.maxConcurrentActiveRunCount; return object; }; diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index 6a6bf5bf715..2b4908ec314 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -471,7 +471,8 @@ "source": { "oneof": [ "gcsSource", - "bigquerySource" + "bigquerySource", + "vertexMultimodalDatasetSource" ] } }, @@ -484,6 +485,10 @@ "type": "BigQuerySource", "id": 3 }, + "vertexMultimodalDatasetSource": { + "type": "VertexMultimodalDatasetSource", + "id": 4 + }, "instancesFormat": { "type": "string", "id": 1, @@ -520,7 +525,8 @@ "destination": { "oneof": [ "gcsDestination", - "bigqueryDestination" + "bigqueryDestination", + "vertexMultimodalDatasetDestination" ] } }, @@ -533,6 +539,10 @@ "type": "BigQueryDestination", "id": 3 }, + "vertexMultimodalDatasetDestination": { + "type": "VertexMultimodalDatasetDestination", + "id": 6 + }, "predictionsFormat": { "type": "string", "id": 1, @@ -547,7 +557,8 @@ "outputLocation": { "oneof": [ "gcsOutputDirectory", - "bigqueryOutputDataset" + "bigqueryOutputDataset", + "vertexMultimodalDatasetName" ] } }, @@ -566,6 +577,14 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "vertexMultimodalDatasetName": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Dataset" + } + }, "bigqueryOutputTable": { "type": "string", "id": 4, @@ -1342,6 +1361,36 @@ } } }, + "VertexMultimodalDatasetSource": { + "fields": { + "datasetName": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Dataset" + } + } + } + }, + "VertexMultimodalDatasetDestination": { + "fields": { + "bigqueryDestination": { + "type": "BigQueryDestination", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "displayName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, "CsvDestination": { "fields": { "gcsDestination": { @@ -7183,7 +7232,8 @@ "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "IDENTIFIER" + "(google.api.field_behavior)": "IDENTIFIER", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Dataset" } }, "displayName": { @@ -8597,7 +8647,8 @@ "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "IDENTIFIER" + "(google.api.field_behavior)": "IDENTIFIER", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/DatasetVersion" } }, "createTime": { @@ -33698,6 +33749,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "maxConcurrentActiveRunCount": { + "type": "int64", + "id": 21, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "allowQueueing": { "type": "bool", "id": 12, @@ -39432,7 +39490,8 @@ "source": { "oneof": [ "gcsSource", - "bigquerySource" + "bigquerySource", + "vertexMultimodalDatasetSource" ] } }, @@ -39445,6 +39504,10 @@ "type": "BigQuerySource", "id": 3 }, + "vertexMultimodalDatasetSource": { + "type": "VertexMultimodalDatasetSource", + "id": 4 + }, "instancesFormat": { "type": "string", "id": 1, @@ -39481,7 +39544,8 @@ "destination": { "oneof": [ "gcsDestination", - "bigqueryDestination" + "bigqueryDestination", + "vertexMultimodalDatasetDestination" ] } }, @@ -39494,6 +39558,10 @@ "type": "BigQueryDestination", "id": 3 }, + "vertexMultimodalDatasetDestination": { + "type": "VertexMultimodalDatasetDestination", + "id": 6 + }, "predictionsFormat": { "type": "string", "id": 1, @@ -39508,7 +39576,8 @@ "outputLocation": { "oneof": [ "gcsOutputDirectory", - "bigqueryOutputDataset" + "bigqueryOutputDataset", + "vertexMultimodalDatasetName" ] } }, @@ -39527,6 +39596,14 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "vertexMultimodalDatasetName": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Dataset" + } + }, "bigqueryOutputTable": { "type": "string", "id": 4, @@ -40307,6 +40384,36 @@ } } }, + "VertexMultimodalDatasetSource": { + "fields": { + "datasetName": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Dataset" + } + } + } + }, + "VertexMultimodalDatasetDestination": { + "fields": { + "bigqueryDestination": { + "type": "BigQueryDestination", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "displayName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, "CsvDestination": { "fields": { "gcsDestination": { @@ -47083,7 +47190,8 @@ "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "IDENTIFIER" + "(google.api.field_behavior)": "IDENTIFIER", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Dataset" } }, "displayName": { @@ -48805,6 +48913,13 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "modelArmorConfig": { + "type": "ModelArmorConfig", + "id": 11, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "generationConfig": { "type": "GenerationConfig", "id": 4, @@ -48859,7 +48974,8 @@ "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "IDENTIFIER" + "(google.api.field_behavior)": "IDENTIFIER", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/DatasetVersion" } }, "createTime": { @@ -50742,13 +50858,19 @@ "responseType": "EvaluateInstancesResponse", "options": { "(google.api.http).post": "/v1beta1/{location=projects/*/locations/*}:evaluateInstances", - "(google.api.http).body": "*" + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1beta1:evaluateInstances", + "(google.api.http).additional_bindings.body": "*" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1beta1/{location=projects/*/locations/*}:evaluateInstances", - "body": "*" + "body": "*", + "additional_bindings": { + "post": "/v1beta1:evaluateInstances", + "body": "*" + } } } ] @@ -50759,6 +50881,8 @@ "options": { "(google.api.http).post": "/v1beta1/{location=projects/*/locations/*}:evaluateDataset", "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1beta1:evaluateDataset", + "(google.api.http).additional_bindings.body": "*", "(google.longrunning.operation_info).response_type": "EvaluateDatasetResponse", "(google.longrunning.operation_info).metadata_type": "EvaluateDatasetOperationMetadata" }, @@ -50766,7 +50890,11 @@ { "(google.api.http)": { "post": "/v1beta1/{location=projects/*/locations/*}:evaluateDataset", - "body": "*" + "body": "*", + "additional_bindings": { + "post": "/v1beta1:evaluateDataset", + "body": "*" + } } }, { @@ -50943,6 +51071,9 @@ "oneofs": { "metricSpec": { "oneof": [ + "predefinedMetricSpec", + "computationBasedMetricSpec", + "llmBasedMetricSpec", "pointwiseMetricSpec", "pairwiseMetricSpec", "exactMatchSpec", @@ -50952,6 +51083,18 @@ } }, "fields": { + "predefinedMetricSpec": { + "type": "PredefinedMetricSpec", + "id": 8 + }, + "computationBasedMetricSpec": { + "type": "ComputationBasedMetricSpec", + "id": 9 + }, + "llmBasedMetricSpec": { + "type": "LLMBasedMetricSpec", + "id": 10 + }, "pointwiseMetricSpec": { "type": "PointwiseMetricSpec", "id": 2 @@ -51410,6 +51553,188 @@ "rubricBasedInstructionFollowingResult": { "type": "RubricBasedInstructionFollowingResult", "id": 38 + }, + "metricResults": { + "rule": "repeated", + "type": "MetricResult", + "id": 43 + } + } + }, + "MetricResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + }, + "_explanation": { + "oneof": [ + "explanation" + ] + }, + "_error": { + "oneof": [ + "error" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, + "explanation": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, + "error": { + "type": "google.rpc.Status", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "PredefinedMetricSpec": { + "fields": { + "metricSpecName": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "metricSpecParameters": { + "type": "google.protobuf.Struct", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ComputationBasedMetricSpec": { + "oneofs": { + "_type": { + "oneof": [ + "type" + ] + }, + "_parameters": { + "oneof": [ + "parameters" + ] + } + }, + "fields": { + "type": { + "type": "ComputationBasedMetricType", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "parameters": { + "type": "google.protobuf.Struct", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + } + }, + "nested": { + "ComputationBasedMetricType": { + "values": { + "COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED": 0, + "EXACT_MATCH": 1, + "BLEU": 2, + "ROUGE": 3 + } + } + } + }, + "LLMBasedMetricSpec": { + "oneofs": { + "rubricsSource": { + "oneof": [ + "rubricGroupKey", + "predefinedRubricGenerationSpec" + ] + }, + "_metricPromptTemplate": { + "oneof": [ + "metricPromptTemplate" + ] + }, + "_systemInstruction": { + "oneof": [ + "systemInstruction" + ] + }, + "_judgeAutoraterConfig": { + "oneof": [ + "judgeAutoraterConfig" + ] + }, + "_additionalConfig": { + "oneof": [ + "additionalConfig" + ] + } + }, + "fields": { + "rubricGroupKey": { + "type": "string", + "id": 4 + }, + "predefinedRubricGenerationSpec": { + "type": "PredefinedMetricSpec", + "id": 6 + }, + "metricPromptTemplate": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "systemInstruction": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "judgeAutoraterConfig": { + "type": "AutoraterConfig", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "additionalConfig": { + "type": "google.protobuf.Struct", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } } } }, @@ -81201,6 +81526,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "maxConcurrentActiveRunCount": { + "type": "int64", + "id": 21, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "allowQueueing": { "type": "bool", "id": 12, diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json index 15e2a3864d0..ba099920ba3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json @@ -955,7 +955,7 @@ "regionTag": "aiplatform_v1_generated_DatasetService_ListAnnotations_async", "title": "DataFoundryService listAnnotations Sample", "origin": "API_DEFINITION", - "description": " Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. It is only used for exporting conversation data to CCAI Insights.", + "description": " Lists Annotations belongs to a dataitem.", "canonical": true, "file": "dataset_service.list_annotations.js", "language": "JAVASCRIPT", diff --git a/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts b/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts index fea8dea4dd9..dd077b1bdd8 100644 --- a/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts @@ -3276,9 +3276,7 @@ export class DatasetServiceClient { ) as AsyncIterable; } /** - * Lists Annotations belongs to a dataitem - * This RPC is only available in InternalDatasetService. It is only used for - * exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * * @param {Object} request * The request object that will be sent.