diff --git a/packages/google-cloud-aiplatform/README.md b/packages/google-cloud-aiplatform/README.md index 5f217c275cb..48beb4eaaad 100644 --- a/packages/google-cloud-aiplatform/README.md +++ b/packages/google-cloud-aiplatform/README.md @@ -131,6 +131,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Featurestore_service.create_featurestore | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.create_featurestore.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.create_featurestore.js,samples/README.md) | | Featurestore_service.delete_entity_type | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_entity_type.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_entity_type.js,samples/README.md) | | Featurestore_service.delete_feature | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_feature.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_feature.js,samples/README.md) | +| Featurestore_service.delete_feature_values | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_feature_values.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_feature_values.js,samples/README.md) | | Featurestore_service.delete_featurestore | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_featurestore.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_featurestore.js,samples/README.md) | | Featurestore_service.export_feature_values | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.export_feature_values.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.export_feature_values.js,samples/README.md) | | Featurestore_service.get_entity_type | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.get_entity_type.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.get_entity_type.js,samples/README.md) | @@ -228,6 +229,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Metadata_service.update_execution | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.update_execution.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.update_execution.js,samples/README.md) | | Migration_service.batch_migrate_resources | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/migration_service.batch_migrate_resources.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/migration_service.batch_migrate_resources.js,samples/README.md) | | Migration_service.search_migratable_resources | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/migration_service.search_migratable_resources.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/migration_service.search_migratable_resources.js,samples/README.md) | +| Model_service.batch_import_evaluated_annotations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/model_service.batch_import_evaluated_annotations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/model_service.batch_import_evaluated_annotations.js,samples/README.md) | | Model_service.batch_import_model_evaluation_slices | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/model_service.batch_import_model_evaluation_slices.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/model_service.batch_import_model_evaluation_slices.js,samples/README.md) | | Model_service.copy_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/model_service.copy_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/model_service.copy_model.js,samples/README.md) | | Model_service.delete_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/model_service.delete_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/model_service.delete_model.js,samples/README.md) | @@ -440,6 +442,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Metadata_service.update_execution | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_execution.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_execution.js,samples/README.md) | | Migration_service.batch_migrate_resources | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/migration_service.batch_migrate_resources.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/migration_service.batch_migrate_resources.js,samples/README.md) | | Migration_service.search_migratable_resources | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/migration_service.search_migratable_resources.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/migration_service.search_migratable_resources.js,samples/README.md) | +| Model_service.batch_import_evaluated_annotations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.batch_import_evaluated_annotations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.batch_import_evaluated_annotations.js,samples/README.md) | | Model_service.batch_import_model_evaluation_slices | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.batch_import_model_evaluation_slices.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.batch_import_model_evaluation_slices.js,samples/README.md) | | Model_service.copy_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.copy_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.copy_model.js,samples/README.md) | | Model_service.delete_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.delete_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.delete_model.js,samples/README.md) | diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/accelerator_type.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/accelerator_type.proto index d8c61e0762a..38682297e64 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/accelerator_type.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/accelerator_type.proto @@ -25,6 +25,7 @@ option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; option ruby_package = "Google::Cloud::AIPlatform::V1"; // Represents a hardware accelerator type. +// NEXT ID: 11. enum AcceleratorType { // Unspecified accelerator type, which means no accelerator. ACCELERATOR_TYPE_UNSPECIFIED = 0; @@ -52,4 +53,7 @@ enum AcceleratorType { // TPU v3. TPU_V3 = 7; + + // TPU v4. + TPU_V4_POD = 10; } 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 3370f884362..74fc97a4fbb 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 @@ -273,7 +273,11 @@ message BatchPredictionJob { // Exactly one of model and unmanaged_container_model must be set. // // The model resource name may contain version id or version alias to specify - // the version, if no version is specified, the default version will be used. + // the version. + // Example: `projects/{project}/locations/{location}/models/{model}@2` + // or + // `projects/{project}/locations/{location}/models/{model}@golden` + // if no version is specified, the default version will be deployed. string model = 3 [(google.api.resource_reference) = { type: "aiplatform.googleapis.com/Model" }]; @@ -439,4 +443,13 @@ message BatchPredictionJob { // is set, then all resources created by the BatchPredictionJob will be // encrypted with the provided encryption key. EncryptionSpec encryption_spec = 24; + + // For custom-trained Models and AutoML Tabular Models, the container of the + // DeployedModel instances will send `stderr` and `stdout` streams to + // Stackdriver Logging by default. Please note that the logs incur cost, + // which are subject to [Cloud Logging + // pricing](https://cloud.google.com/stackdriver/pricing). + // + // User can disable container logging by setting this flag to true. + bool disable_container_logging = 34; } 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 e9fcca74eb2..2020dafa178 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 @@ -169,9 +169,33 @@ message ExportDataConfig { GcsDestination gcs_destination = 1; } + // The instructions how the export data should be split between the + // training, validation and test sets. + oneof split { + // Split based on fractions defining the size of each set. + ExportFractionSplit fraction_split = 5; + } + // A filter on Annotations of the Dataset. Only Annotations on to-be-exported // DataItems(specified by [data_items_filter][]) that match this filter will // be exported. The filter syntax is the same as in // [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations]. string annotations_filter = 2; } + +// Assigns the input data to training, validation, and test sets as per the +// given fractions. Any of `training_fraction`, `validation_fraction` and +// `test_fraction` may optionally be provided, they must sum to up to 1. If the +// provided ones sum to less than 1, the remainder is assigned to sets as +// decided by Vertex AI. If none of the fractions are set, by default roughly +// 80% of data is used for training, 10% for validation, and 10% for test. +message ExportFractionSplit { + // The fraction of the input data that is to be used to train the Model. + double training_fraction = 1; + + // The fraction of the input data that is to be used to validate the Model. + double validation_fraction = 2; + + // The fraction of the input data that is to be used to evaluate the Model. + double test_fraction = 3; +} 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 70223bef1d8..f575e6937fc 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 @@ -27,6 +27,7 @@ import "google/cloud/aiplatform/v1/dataset.proto"; import "google/cloud/aiplatform/v1/operation.proto"; import "google/cloud/aiplatform/v1/saved_query.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto index edbfc0cbe4e..4dbfca05caa 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto @@ -169,7 +169,11 @@ message DeployedModel { // Endpoint. // // The resource name may contain version id or version alias to specify the - // version, if no version is specified, the default version will be deployed. + // version. + // Example: `projects/{project}/locations/{location}/models/{model}@2` + // or + // `projects/{project}/locations/{location}/models/{model}@golden` + // if no version is specified, the default version will be deployed. string model = 2 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint_service.proto index f7aed01fafa..00235dd73cc 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint_service.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/aiplatform/v1/endpoint.proto"; import "google/cloud/aiplatform/v1/operation.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/evaluated_annotation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/evaluated_annotation.proto new file mode 100644 index 00000000000..35da290810f --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/evaluated_annotation.proto @@ -0,0 +1,185 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/aiplatform/v1/explanation.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "EvaluatedAnnotationProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// True positive, false positive, or false negative. +// +// EvaluatedAnnotation is only available under ModelEvaluationSlice with slice +// of `annotationSpec` dimension. +message EvaluatedAnnotation { + // Describes the type of the EvaluatedAnnotation. The type is determined + enum EvaluatedAnnotationType { + // Invalid value. + EVALUATED_ANNOTATION_TYPE_UNSPECIFIED = 0; + + // The EvaluatedAnnotation is a true positive. It has a prediction created + // by the Model and a ground truth Annotation which the prediction matches. + TRUE_POSITIVE = 1; + + // The EvaluatedAnnotation is false positive. It has a prediction created by + // the Model which does not match any ground truth annotation. + FALSE_POSITIVE = 2; + + // The EvaluatedAnnotation is false negative. It has a ground truth + // annotation which is not matched by any of the model created predictions. + FALSE_NEGATIVE = 3; + } + + // Output only. Type of the EvaluatedAnnotation. + EvaluatedAnnotationType type = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The model predicted annotations. + // + // For true positive, there is one and only one prediction, which matches the + // only one ground truth annotation in + // [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. + // + // For false positive, there is one and only one prediction, which doesn't + // match any ground truth annotation of the corresponding + // [data_item_view_id][EvaluatedAnnotation.data_item_view_id]. + // + // For false negative, there are zero or more predictions which are similar to + // the only ground truth annotation in + // [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths] + // but not enough for a match. + // + // The schema of the prediction is stored in + // [ModelEvaluation.annotation_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.annotation_schema_uri] + repeated google.protobuf.Value predictions = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ground truth Annotations, i.e. the Annotations that exist + // in the test data the Model is evaluated on. + // + // For true positive, there is one and only one ground truth annotation, which + // matches the only prediction in + // [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions]. + // + // For false positive, there are zero or more ground truth annotations that + // are similar to the only prediction in + // [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions], + // but not enough for a match. + // + // For false negative, there is one and only one ground truth annotation, + // which doesn't match any predictions created by the model. + // + // The schema of the ground truth is stored in + // [ModelEvaluation.annotation_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.annotation_schema_uri] + repeated google.protobuf.Value ground_truths = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The data item payload that the Model predicted this + // EvaluatedAnnotation on. + google.protobuf.Value data_item_payload = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. ID of the EvaluatedDataItemView under the same ancestor + // ModelEvaluation. The EvaluatedDataItemView consists of all ground truths + // and predictions on + // [data_item_payload][google.cloud.aiplatform.v1.EvaluatedAnnotation.data_item_payload]. + // + // Can be passed in + // [GetEvaluatedDataItemView's][ModelService.GetEvaluatedDataItemView][] + // [id][GetEvaluatedDataItemViewRequest.id]. + string evaluated_data_item_view_id = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Explanations of + // [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions]. + // Each element of the explanations indicates the explanation for one + // explanation Method. + // + // The attributions list in the + // [EvaluatedAnnotationExplanation.explanation][google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.explanation] + // object corresponds to the + // [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions] + // list. For example, the second element in the attributions list explains the + // second element in the predictions list. + repeated EvaluatedAnnotationExplanation explanations = 8; + + // Annotations of model error analysis results. + repeated ErrorAnalysisAnnotation error_analysis_annotations = 9; +} + +// Explanation result of the prediction produced by the Model. +message EvaluatedAnnotationExplanation { + // Explanation type. + // + // For AutoML Image Classification models, possible values are: + // + // * `image-integrated-gradients` + // * `image-xrai` + string explanation_type = 1; + + // Explanation attribution response details. + Explanation explanation = 2; +} + +// Model error analysis for each annotation. +message ErrorAnalysisAnnotation { + // Attributed items for a given annotation, typically representing neighbors + // from the training sets constrained by the query type. + message AttributedItem { + // The unique ID for each annotation. Used by FE to allocate the annotation + // in DB. + string annotation_resource_name = 1; + + // The distance of this item to the annotation. + double distance = 2; + } + + // The query type used for finding the attributed items. + enum QueryType { + // Unspecified query type for model error analysis. + QUERY_TYPE_UNSPECIFIED = 0; + + // Query similar samples across all classes in the dataset. + ALL_SIMILAR = 1; + + // Query similar samples from the same class of the input sample. + SAME_CLASS_SIMILAR = 2; + + // Query dissimilar samples from the same class of the input sample. + SAME_CLASS_DISSIMILAR = 3; + } + + // Attributed items for a given annotation, typically representing neighbors + // from the training sets constrained by the query type. + repeated AttributedItem attributed_items = 1; + + // The query type used for finding the attributed items. + QueryType query_type = 2; + + // The outlier score of this annotated item. Usually defined as the min of all + // distances from attributed items. + double outlier_score = 3; + + // The threshold used to determine if this annotation is an outlier or not. + double outlier_threshold = 4; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore.proto index 9e8d2d9b455..62bfd22df47 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore.proto @@ -52,6 +52,15 @@ message Featurestore { // The maximum number of nodes to scale up to. Must be greater than // min_node_count, and less than or equal to 10 times of 'min_node_count'. int32 max_node_count = 2; + + // Optional. The cpu utilization that the Autoscaler should be trying to + // achieve. This number is on a scale from 0 (no utilization) to 100 + // (total utilization), and is limited between 10 and 80. When a cluster's + // CPU utilization exceeds the target that you have set, Bigtable + // immediately adds nodes to the cluster. When CPU utilization is + // substantially lower than the target, Bigtable removes nodes. If not set + // or set to 0, default to 50. + int32 cpu_utilization_target = 3 [(google.api.field_behavior) = OPTIONAL]; } // The number of nodes for the online store. The number of nodes doesn't diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto index 7dfa325abbf..99e66b13f0d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto @@ -46,12 +46,6 @@ message FeaturestoreMonitoringConfig { // Configuration of the snapshot analysis based monitoring pipeline // running interval. The value indicates number of days. - // If both - // [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] - // and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][] - // are set when creating/updating EntityTypes/Features, - // [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] - // will be used. int32 monitoring_interval_days = 3; // Customized export features time window for snapshot analysis. Unit is one @@ -62,7 +56,9 @@ message FeaturestoreMonitoringConfig { // Configuration of the Featurestore's ImportFeature Analysis Based // Monitoring. This type of analysis generates statistics for values of each - // Feature imported by every [ImportFeatureValues][] operation. + // Feature imported by every + // [ImportFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.ImportFeatureValues] + // operation. message ImportFeaturesAnalysis { // The state defines whether to enable ImportFeature analysis. enum State { @@ -89,7 +85,9 @@ message FeaturestoreMonitoringConfig { } // Defines the baseline to do anomaly detection for feature values imported - // by each [ImportFeatureValues][] operation. + // by each + // [ImportFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.ImportFeatureValues] + // operation. enum Baseline { // Should not be used. BASELINE_UNSPECIFIED = 0; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_service.proto index 86c3afb3509..0ea8d4ff2a4 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_service.proto @@ -27,8 +27,10 @@ import "google/cloud/aiplatform/v1/featurestore.proto"; import "google/cloud/aiplatform/v1/io.proto"; import "google/cloud/aiplatform/v1/operation.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +import "google/type/interval.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; @@ -295,6 +297,29 @@ service FeaturestoreService { }; } + // Delete Feature values from Featurestore. + // + // The progress of the deletion is tracked by the returned operation. The + // deleted feature values are guaranteed to be invisible to subsequent read + // operations after the operation is marked as successfully done. + // + // If a delete feature values operation fails, the feature values + // returned from reads and exports may be inconsistent. If consistency is + // required, the caller must retry the same delete request again and wait till + // the new operation returned is marked as successfully done. + rpc DeleteFeatureValues(DeleteFeatureValuesRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:deleteFeatureValues" + body: "*" + }; + option (google.api.method_signature) = "entity_type"; + option (google.longrunning.operation_info) = { + response_type: "DeleteFeatureValuesResponse" + metadata_type: "DeleteFeatureValuesOperationMetadata" + }; + } + // Searches Features matching a query in a given project. rpc SearchFeatures(SearchFeaturesRequest) returns (SearchFeaturesResponse) { option (google.api.http) = { @@ -1280,6 +1305,12 @@ message BatchReadFeatureValuesOperationMetadata { GenericOperationMetadata generic_metadata = 1; } +// Details of operations that delete Feature values. +message DeleteFeatureValuesOperationMetadata { + // Operation metadata for Featurestore delete Features values. + GenericOperationMetadata generic_metadata = 1; +} + // Details of operations that perform create EntityType. message CreateEntityTypeOperationMetadata { // Operation metadata for EntityType. @@ -1297,3 +1328,120 @@ message BatchCreateFeaturesOperationMetadata { // Operation metadata for Feature. GenericOperationMetadata generic_metadata = 1; } + +// Request message for +// [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureValues]. +message DeleteFeatureValuesRequest { + // Message to select entity. + // If an entity id is selected, all the feature values corresponding to the + // entity id will be deleted, including the entityId. + message SelectEntity { + // Required. Selectors choosing feature values of which entity id to be + // deleted from the EntityType. + EntityIdSelector entity_id_selector = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // Message to select time range and feature. + // Values of the selected feature generated within an inclusive time range + // will be deleted. Using this option permanently deletes the feature values + // from the specified feature IDs within the specified time range. + // This might include data from the online storage. If you want to retain + // any deleted historical data in the online storage, you must re-ingest it. + message SelectTimeRangeAndFeature { + // Required. Select feature generated within a half-inclusive time range. + // The time range is lower inclusive and upper exclusive. + google.type.Interval time_range = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Selectors choosing which feature values to be deleted from the + // EntityType. + FeatureSelector feature_selector = 2 + [(google.api.field_behavior) = REQUIRED]; + + // If set, data will not be deleted from online storage. + // When time range is older than the data in online storage, setting this to + // be true will make the deletion have no impact on online serving. + bool skip_online_storage_delete = 3; + } + + // Defines options to select feature values to be deleted. + oneof DeleteOption { + // Select feature values to be deleted by specifying entities. + SelectEntity select_entity = 2; + + // Select feature values to be deleted by specifying time range and + // features. + SelectTimeRangeAndFeature select_time_range_and_feature = 3; + } + + // Required. The resource name of the EntityType grouping the Features for + // which values are being deleted from. Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + string entity_type = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/EntityType" + } + ]; +} + +// Response message for +// [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureValues]. +message DeleteFeatureValuesResponse { + // Response message if the request uses the SelectEntity option. + message SelectEntity { + // The count of deleted entity rows in the offline storage. + // Each row corresponds to the combination of an entity ID and a timestamp. + // One entity ID can have multiple rows in the offline storage. + int64 offline_storage_deleted_entity_row_count = 1; + + // The count of deleted entities in the online storage. + // Each entity ID corresponds to one entity. + int64 online_storage_deleted_entity_count = 2; + } + + // Response message if the request uses the SelectTimeRangeAndFeature option. + message SelectTimeRangeAndFeature { + // The count of the features or columns impacted. + // This is the same as the feature count in the request. + int64 impacted_feature_count = 1; + + // The count of modified entity rows in the offline storage. + // Each row corresponds to the combination of an entity ID and a timestamp. + // One entity ID can have multiple rows in the offline storage. + // Within each row, only the features specified in the request are + // deleted. + int64 offline_storage_modified_entity_row_count = 2; + + // The count of modified entities in the online storage. + // Each entity ID corresponds to one entity. + // Within each entity, only the features specified in the request are + // deleted. + int64 online_storage_modified_entity_count = 3; + } + + // Response based on which delete option is specified in the + // request + oneof response { + // Response for request specifying the entities to delete + SelectEntity select_entity = 1; + + // Response for request specifying time range and feature + SelectTimeRangeAndFeature select_time_range_and_feature = 2; + } +} + +// Selector for entityId. Getting ids from the given source. +message EntityIdSelector { + // Details about the source data, including the location of the storage and + // the format. + oneof EntityIdsSource { + // Source of Csv + CsvSource csv_source = 3; + } + + // Source column that holds entity IDs. If not provided, entity IDs are + // extracted from the column named `entity_id`. + string entity_id_field = 5; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint_service.proto index 561edf93e28..f1be91add20 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint_service.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/aiplatform/v1/index_endpoint.proto"; import "google/cloud/aiplatform/v1/operation.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_service.proto index 229825e50ee..2fc0a19705c 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_service.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/aiplatform/v1/index.proto"; import "google/cloud/aiplatform/v1/operation.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_state.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_state.proto index 16efd4556fa..0bd30c510ad 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_state.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_state.proto @@ -57,10 +57,7 @@ enum JobState { // The job has expired. JOB_STATE_EXPIRED = 9; - // The job is being updated. The job is only able to be updated at RUNNING - // state; if the update operation succeeds, job goes back to RUNNING state; if - // the update operation fails, the job goes back to RUNNING state with error - // messages written to [ModelDeploymentMonitoringJob.partial_errors][] field - // if it is a ModelDeploymentMonitoringJob. + // The job is being updated. Only jobs in the `RUNNING` state can be updated. + // After updating, the job goes back to the `RUNNING` state. JOB_STATE_UPDATING = 10; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_service.proto index 04a07627fcc..77432392363 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_service.proto @@ -29,6 +29,7 @@ import "google/cloud/aiplatform/v1/metadata_schema.proto"; import "google/cloud/aiplatform/v1/metadata_store.proto"; import "google/cloud/aiplatform/v1/operation.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model.proto index 8ca72f5260b..6f04eb34846 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model.proto @@ -208,12 +208,12 @@ message Model { // deploying this Model. The specification is ingested upon // [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], // and all binaries it contains are copied and stored internally by Vertex AI. - // Not present for AutoML Models. + // Not present for AutoML Models or Large Models. ModelContainerSpec container_spec = 9 [(google.api.field_behavior) = INPUT_ONLY]; // Immutable. The path to the directory containing the Model artifact and any - // of its supporting files. Not present for AutoML Models. + // of its supporting files. Not present for AutoML Models or Large Models. string artifact_uri = 26 [(google.api.field_behavior) = IMMUTABLE]; // Output only. When this Model is deployed, its prediction resources are @@ -341,11 +341,13 @@ message Model { // The default explanation specification for this Model. // - // The Model can be used for [requesting - // explanation][PredictionService.Explain] after being - // [deployed][google.cloud.aiplatform.v1.EndpointService.DeployModel] if it is - // populated. The Model can be used for [batch - // explanation][BatchPredictionJob.generate_explanation] if it is populated. + // The Model can be used for + // [requesting + // explanation][google.cloud.aiplatform.v1.PredictionService.Explain] after + // being [deployed][google.cloud.aiplatform.v1.EndpointService.DeployModel] if + // it is populated. The Model can be used for [batch + // explanation][google.cloud.aiplatform.v1.BatchPredictionJob.generate_explanation] + // if it is populated. // // All fields of the explanation_spec can be overridden by // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] @@ -356,13 +358,16 @@ message Model { // of [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. // // If the default explanation specification is not set for this Model, this - // Model can still be used for [requesting - // explanation][PredictionService.Explain] by setting + // Model can still be used for + // [requesting + // explanation][google.cloud.aiplatform.v1.PredictionService.Explain] by + // setting // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] // of // [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1.DeployModelRequest.deployed_model] - // and for [batch explanation][BatchPredictionJob.generate_explanation] by - // setting + // and for [batch + // explanation][google.cloud.aiplatform.v1.BatchPredictionJob.generate_explanation] + // by setting // [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] // of [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. ExplanationSpec explanation_spec = 23; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_evaluation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_evaluation.proto index ecf0f9e014c..6b9499d1a11 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_evaluation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_evaluation.proto @@ -79,8 +79,8 @@ message ModelEvaluation { // Points to a YAML file stored on Google Cloud Storage describing // [EvaluatedDataItemView.data_item_payload][] and - // [EvaluatedAnnotation.data_item_payload][]. The schema is defined as an - // OpenAPI 3.0.2 [Schema + // [EvaluatedAnnotation.data_item_payload][google.cloud.aiplatform.v1.EvaluatedAnnotation.data_item_payload]. + // The schema is defined as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). // // This field is not populated if there are neither EvaluatedDataItemViews nor @@ -90,9 +90,10 @@ message ModelEvaluation { // Points to a YAML file stored on Google Cloud Storage describing // [EvaluatedDataItemView.predictions][], // [EvaluatedDataItemView.ground_truths][], - // [EvaluatedAnnotation.predictions][], and - // [EvaluatedAnnotation.ground_truths][]. The schema is defined as an - // OpenAPI 3.0.2 [Schema + // [EvaluatedAnnotation.predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions], + // and + // [EvaluatedAnnotation.ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. + // The schema is defined as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). // // This field is not populated if there are neither EvaluatedDataItemViews nor diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto index dd7949b772b..d870eb7b8fb 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto @@ -18,8 +18,10 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/explanation.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; @@ -39,6 +41,109 @@ message ModelEvaluationSlice { // Definition of a slice. message Slice { + // Specification for how the data should be sliced. + message SliceSpec { + // Specification message containing the config for this SliceSpec. + // When `kind` is selected as `value` and/or `range`, only a single slice + // will be computed. + // When `all_values` is present, a separate slice will be computed for + // each possible label/value for the corresponding key in `config`. + // Examples, with feature zip_code with values 12345, 23334, 88888 and + // feature country with values "US", "Canada", "Mexico" in the dataset: + // + // Example 1: + // + // { + // "zip_code": { "value": { "float_value": 12345.0 } } + // } + // + // A single slice for any data with zip_code 12345 in the dataset. + // + // Example 2: + // + // { + // "zip_code": { "range": { "low": 12345, "high": 20000 } } + // } + // + // A single slice containing data where the zip_codes between 12345 and + // 20000 For this example, data with the zip_code of 12345 will be in this + // slice. + // + // Example 3: + // + // { + // "zip_code": { "range": { "low": 10000, "high": 20000 } }, + // "country": { "value": { "string_value": "US" } } + // } + // + // A single slice containing data where the zip_codes between 10000 and + // 20000 has the country "US". For this example, data with the zip_code of + // 12345 and country "US" will be in this slice. + // + // Example 4: + // + // { "country": {"all_values": { "value": true } } } + // + // Three slices are computed, one for each unique country in the dataset. + // + // Example 5: + // + // { + // "country": { "all_values": { "value": true } }, + // "zip_code": { "value": { "float_value": 12345.0 } } + // } + // + // Three slices are computed, one for each unique country in the dataset + // where the zip_code is also 12345. For this example, data with zip_code + // 12345 and country "US" will be in one slice, zip_code 12345 and country + // "Canada" in another slice, and zip_code 12345 and country "Mexico" in + // another slice, totaling 3 slices. + message SliceConfig { + oneof kind { + // A unique specific value for a given feature. + // Example: `{ "value": { "string_value": "12345" } }` + Value value = 1; + + // A range of values for a numerical feature. + // Example: `{"range":{"low":10000.0,"high":50000.0}}` + // will capture 12345 and 23334 in the slice. + Range range = 2; + + // If all_values is set to true, then all possible labels of the keyed + // feature will have another slice computed. + // Example: `{"all_values":{"value":true}}` + google.protobuf.BoolValue all_values = 3; + } + } + + // A range of values for slice(s). + // `low` is inclusive, `high` is exclusive. + message Range { + // Inclusive low value for the range. + float low = 1; + + // Exclusive high value for the range. + float high = 2; + } + + // Single value that supports strings and floats. + message Value { + oneof kind { + // String type. + string string_value = 1; + + // Float type. + float float_value = 2; + } + } + + // Mapping configuration for this SliceSpec. + // The key is the name of the feature. + // By default, the key will be prefixed by "instance" as a dictionary + // prefix for Vertex Batch Predictions output format. + map configs = 1; + } + // Output only. The dimension of the slice. // Well-known dimensions are: // * `annotationSpec`: This slice is on the test data that has either @@ -46,10 +151,15 @@ message ModelEvaluationSlice { // [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name] // equals to // [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value]. + // * `slice`: This slice is a user customized slice defined by its + // SliceSpec. string dimension = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The value of the dimension in this slice. string value = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Specification for how the data was sliced. + SliceSpec slice_spec = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Output only. The resource name of the ModelEvaluationSlice. @@ -73,4 +183,11 @@ message ModelEvaluationSlice { // Output only. Timestamp when this ModelEvaluationSlice was created. google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Aggregated explanation metrics for the Model's prediction + // output over the data this ModelEvaluation uses. This field is populated + // only if the Model is evaluated with explanations, and only for tabular + // Models. + ModelExplanation model_explanation = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_service.proto index 4afe6afcac5..dc1fe7bdfec 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_service.proto @@ -21,12 +21,14 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1/evaluated_annotation.proto"; import "google/cloud/aiplatform/v1/io.proto"; import "google/cloud/aiplatform/v1/model.proto"; import "google/cloud/aiplatform/v1/model_evaluation.proto"; import "google/cloud/aiplatform/v1/model_evaluation_slice.proto"; import "google/cloud/aiplatform/v1/operation.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; @@ -111,8 +113,9 @@ service ModelService { // Deletes a Model version. // - // Model version can only be deleted if there are no [DeployedModels][] - // created from it. Deleting the only version in the Model is not allowed. Use + // Model version can only be deleted if there are no + // [DeployedModels][google.cloud.aiplatform.v1.DeployedModel] created from it. + // Deleting the only version in the Model is not allowed. Use // [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for // deleting the Model instead. rpc DeleteModelVersion(DeleteModelVersionRequest) @@ -190,6 +193,16 @@ service ModelService { option (google.api.method_signature) = "parent,model_evaluation_slices"; } + // Imports a list of externally generated EvaluatedAnnotations. + rpc BatchImportEvaluatedAnnotations(BatchImportEvaluatedAnnotationsRequest) + returns (BatchImportEvaluatedAnnotationsResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/models/*/evaluations/*/slices/*}:batchImport" + body: "*" + }; + option (google.api.method_signature) = "parent,evaluated_annotations"; + } + // Gets a ModelEvaluation. rpc GetModelEvaluation(GetModelEvaluationRequest) returns (ModelEvaluation) { option (google.api.http) = { @@ -711,6 +724,32 @@ message BatchImportModelEvaluationSlicesResponse { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Request message for +// [ModelService.BatchImportEvaluatedAnnotations][google.cloud.aiplatform.v1.ModelService.BatchImportEvaluatedAnnotations] +message BatchImportEvaluatedAnnotationsRequest { + // Required. The name of the parent ModelEvaluationSlice resource. + // Format: + // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ModelEvaluationSlice" + } + ]; + + // Required. Evaluated annotations resource to be imported. + repeated EvaluatedAnnotation evaluated_annotations = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for +// [ModelService.BatchImportEvaluatedAnnotations][google.cloud.aiplatform.v1.ModelService.BatchImportEvaluatedAnnotations] +message BatchImportEvaluatedAnnotationsResponse { + // Output only. Number of EvaluatedAnnotations imported. + int32 imported_evaluated_annotations_count = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Request message for // [ModelService.GetModelEvaluation][google.cloud.aiplatform.v1.ModelService.GetModelEvaluation]. message GetModelEvaluationRequest { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/nas_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/nas_job.proto index f763b655f9f..1d670eeca46 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/nas_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/nas_job.proto @@ -96,7 +96,7 @@ message NasJob { // Optional. Enable a separation of Custom model training // and restricted image training for tenant project. bool enable_restricted_image_training = 14 - [(google.api.field_behavior) = OPTIONAL]; + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } // Represents a NasTrial details along with it's parameters. If there is a diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_service.proto index 7bd1055f80f..63899ce24f9 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_service.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/operation.proto"; import "google/cloud/aiplatform/v1/pipeline_job.proto"; import "google/cloud/aiplatform/v1/training_pipeline.proto"; import "google/longrunning/operations.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/specialist_pool_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/specialist_pool_service.proto index 0f1f7531f3f..c0d368081dc 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/specialist_pool_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/specialist_pool_service.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/aiplatform/v1/operation.proto"; import "google/cloud/aiplatform/v1/specialist_pool.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_service.proto index 8a17a622101..63834044a70 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_service.proto @@ -27,6 +27,7 @@ import "google/cloud/aiplatform/v1/tensorboard_experiment.proto"; import "google/cloud/aiplatform/v1/tensorboard_run.proto"; import "google/cloud/aiplatform/v1/tensorboard_time_series.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; @@ -403,7 +404,8 @@ message ReadTensorboardUsageRequest { ]; } -// Response message for [TensorboardService.GetTensorboardUsage][]. +// Response message for +// [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage]. message ReadTensorboardUsageResponse { // Per user usage data. message PerUserUsageData { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/vizier_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/vizier_service.proto index d269b87efae..e3b467f18c9 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/vizier_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/vizier_service.proto @@ -158,7 +158,7 @@ service VizierService { // Checks whether a Trial should stop or not. Returns a // long-running operation. When the operation is successful, // it will contain a - // [CheckTrialEarlyStoppingStateResponse][google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse]. + // [CheckTrialEarlyStoppingStateResponse][google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse]. rpc CheckTrialEarlyStoppingState(CheckTrialEarlyStoppingStateRequest) returns (google.longrunning.Operation) { option (google.api.http) = { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/accelerator_type.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/accelerator_type.proto index ebee15157ee..5587dc99f91 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/accelerator_type.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/accelerator_type.proto @@ -25,6 +25,7 @@ option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Represents a hardware accelerator type. +// NEXT ID: 11. enum AcceleratorType { // Unspecified accelerator type, which means no accelerator. ACCELERATOR_TYPE_UNSPECIFIED = 0; @@ -55,4 +56,7 @@ enum AcceleratorType { // TPU v3. TPU_V3 = 7; + + // TPU v4. + TPU_V4_POD = 10; } 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 cbdd9f046a2..72599c8fc10 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 @@ -278,7 +278,11 @@ message BatchPredictionJob { // Exactly one of model and unmanaged_container_model must be set. // // The model resource name may contain version id or version alias to specify - // the version, if no version is specified, the default version will be used. + // the version. + // Example: `projects/{project}/locations/{location}/models/{model}@2` + // or + // `projects/{project}/locations/{location}/models/{model}@golden` + // if no version is specified, the default version will be deployed. string model = 3 [(google.api.resource_reference) = { type: "aiplatform.googleapis.com/Model" }]; @@ -456,4 +460,13 @@ message BatchPredictionJob { // Output only. The running status of the model monitoring pipeline. google.rpc.Status model_monitoring_status = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // For custom-trained Models and AutoML Tabular Models, the container of the + // DeployedModel instances will send `stderr` and `stdout` streams to + // Stackdriver Logging by default. Please note that the logs incur cost, + // which are subject to [Cloud Logging + // pricing](https://cloud.google.com/stackdriver/pricing). + // + // User can disable container logging by setting this flag to true. + bool disable_container_logging = 34; } 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 b89a9525f3a..0ea636da74c 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 @@ -170,9 +170,33 @@ message ExportDataConfig { GcsDestination gcs_destination = 1; } + // The instructions how the export data should be split between the + // training, validation and test sets. + oneof split { + // Split based on fractions defining the size of each set. + ExportFractionSplit fraction_split = 5; + } + // A filter on Annotations of the Dataset. Only Annotations on to-be-exported // DataItems(specified by [data_items_filter][]) that match this filter will // be exported. The filter syntax is the same as in // [ListAnnotations][google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations]. string annotations_filter = 2; } + +// Assigns the input data to training, validation, and test sets as per the +// given fractions. Any of `training_fraction`, `validation_fraction` and +// `test_fraction` may optionally be provided, they must sum to up to 1. If the +// provided ones sum to less than 1, the remainder is assigned to sets as +// decided by Vertex AI. If none of the fractions are set, by default roughly +// 80% of data is used for training, 10% for validation, and 10% for test. +message ExportFractionSplit { + // The fraction of the input data that is to be used to train the Model. + double training_fraction = 1; + + // The fraction of the input data that is to be used to validate the Model. + double validation_fraction = 2; + + // The fraction of the input data that is to be used to evaluate the Model. + double test_fraction = 3; +} 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 fdef69d1502..a2cae6d5f49 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 @@ -27,6 +27,7 @@ import "google/cloud/aiplatform/v1beta1/dataset.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/cloud/aiplatform/v1beta1/saved_query.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto index fbce75a91a7..0f11428f40c 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto @@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto"; import "google/cloud/aiplatform/v1beta1/endpoint.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto index e5528607bf1..7486b872e70 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto @@ -176,7 +176,11 @@ message DeployedModel { // Endpoint. // // The resource name may contain version id or version alias to specify the - // version, if no version is specified, the default version will be deployed. + // version. + // Example: `projects/{project}/locations/{location}/models/{model}@2` + // or + // `projects/{project}/locations/{location}/models/{model}@golden` + // if no version is specified, the default version will be deployed. string model = 2 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto index d48a018b2fa..76b61d90589 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/endpoint.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto new file mode 100644 index 00000000000..9379cdeb365 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto @@ -0,0 +1,185 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/cloud/aiplatform/v1beta1/explanation.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "EvaluatedAnnotationProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// True positive, false positive, or false negative. +// +// EvaluatedAnnotation is only available under ModelEvaluationSlice with slice +// of `annotationSpec` dimension. +message EvaluatedAnnotation { + // Describes the type of the EvaluatedAnnotation. The type is determined + enum EvaluatedAnnotationType { + // Invalid value. + EVALUATED_ANNOTATION_TYPE_UNSPECIFIED = 0; + + // The EvaluatedAnnotation is a true positive. It has a prediction created + // by the Model and a ground truth Annotation which the prediction matches. + TRUE_POSITIVE = 1; + + // The EvaluatedAnnotation is false positive. It has a prediction created by + // the Model which does not match any ground truth annotation. + FALSE_POSITIVE = 2; + + // The EvaluatedAnnotation is false negative. It has a ground truth + // annotation which is not matched by any of the model created predictions. + FALSE_NEGATIVE = 3; + } + + // Output only. Type of the EvaluatedAnnotation. + EvaluatedAnnotationType type = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The model predicted annotations. + // + // For true positive, there is one and only one prediction, which matches the + // only one ground truth annotation in + // [ground_truths][google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.ground_truths]. + // + // For false positive, there is one and only one prediction, which doesn't + // match any ground truth annotation of the corresponding + // [data_item_view_id][EvaluatedAnnotation.data_item_view_id]. + // + // For false negative, there are zero or more predictions which are similar to + // the only ground truth annotation in + // [ground_truths][google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.ground_truths] + // but not enough for a match. + // + // The schema of the prediction is stored in + // [ModelEvaluation.annotation_schema_uri][] + repeated google.protobuf.Value predictions = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ground truth Annotations, i.e. the Annotations that exist + // in the test data the Model is evaluated on. + // + // For true positive, there is one and only one ground truth annotation, which + // matches the only prediction in + // [predictions][google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.predictions]. + // + // For false positive, there are zero or more ground truth annotations that + // are similar to the only prediction in + // [predictions][google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.predictions], + // but not enough for a match. + // + // For false negative, there is one and only one ground truth annotation, + // which doesn't match any predictions created by the model. + // + // The schema of the ground truth is stored in + // [ModelEvaluation.annotation_schema_uri][] + repeated google.protobuf.Value ground_truths = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The data item payload that the Model predicted this + // EvaluatedAnnotation on. + google.protobuf.Value data_item_payload = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. ID of the EvaluatedDataItemView under the same ancestor + // ModelEvaluation. The EvaluatedDataItemView consists of all ground truths + // and predictions on + // [data_item_payload][google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.data_item_payload]. + // + // Can be passed in + // [GetEvaluatedDataItemView's][ModelService.GetEvaluatedDataItemView][] + // [id][GetEvaluatedDataItemViewRequest.id]. + string evaluated_data_item_view_id = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Explanations of + // [predictions][google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.predictions]. + // Each element of the explanations indicates the explanation for one + // explanation Method. + // + // The attributions list in the + // [EvaluatedAnnotationExplanation.explanation][google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation.explanation] + // object corresponds to the + // [predictions][google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.predictions] + // list. For example, the second element in the attributions list explains the + // second element in the predictions list. + repeated EvaluatedAnnotationExplanation explanations = 8; + + // Annotations of model error analysis results. + repeated ErrorAnalysisAnnotation error_analysis_annotations = 9; +} + +// Explanation result of the prediction produced by the Model. +message EvaluatedAnnotationExplanation { + // Explanation type. + // + // For AutoML Image Classification models, possible values are: + // + // * `image-integrated-gradients` + // * `image-xrai` + string explanation_type = 1; + + // Explanation attribution response details. + Explanation explanation = 2; +} + +// Model error analysis for each annotation. +message ErrorAnalysisAnnotation { + // Attributed items for a given annotation, typically representing neighbors + // from the training sets constrained by the query type. + message AttributedItem { + // The unique ID for each annotation. Used by FE to allocate the annotation + // in DB. + string annotation_resource_name = 1; + + // The distance of this item to the annotation. + double distance = 2; + } + + // The query type used for finding the attributed items. + enum QueryType { + // Unspecified query type for model error analysis. + QUERY_TYPE_UNSPECIFIED = 0; + + // Query similar samples across all classes in the dataset. + ALL_SIMILAR = 1; + + // Query similar samples from the same class of the input sample. + SAME_CLASS_SIMILAR = 2; + + // Query dissimilar samples from the same class of the input sample. + SAME_CLASS_DISSIMILAR = 3; + } + + // Attributed items for a given annotation, typically representing neighbors + // from the training sets constrained by the query type. + repeated AttributedItem attributed_items = 1; + + // The query type used for finding the attributed items. + QueryType query_type = 2; + + // The outlier score of this annotated item. Usually defined as the min of all + // distances from attributed items. + double outlier_score = 3; + + // The threshold used to determine if this annotation is an outlier or not. + double outlier_threshold = 4; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore.proto index a5c0ad452b9..8ae1c7d8169 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore.proto @@ -52,6 +52,15 @@ message Featurestore { // The maximum number of nodes to scale up to. Must be greater than // min_node_count, and less than or equal to 10 times of 'min_node_count'. int32 max_node_count = 2; + + // Optional. The cpu utilization that the Autoscaler should be trying to + // achieve. This number is on a scale from 0 (no utilization) to 100 + // (total utilization), and is limited between 10 and 80. When a cluster's + // CPU utilization exceeds the target that you have set, Bigtable + // immediately adds nodes to the cluster. When CPU utilization is + // substantially lower than the target, Bigtable removes nodes. If not set + // or set to 0, default to 50. + int32 cpu_utilization_target = 3 [(google.api.field_behavior) = OPTIONAL]; } // The number of nodes for the online store. The number of nodes doesn't diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto index 3f1653dc02a..7099d8e0bee 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto @@ -48,17 +48,16 @@ message FeaturestoreMonitoringConfig { // Configuration of the snapshot analysis based monitoring pipeline running // interval. The value is rolled up to full day. + // If both + // [monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] + // and the deprecated `monitoring_interval` field + // are set when creating/updating EntityTypes/Features, + // [monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] + // will be used. google.protobuf.Duration monitoring_interval = 2 [deprecated = true]; // Configuration of the snapshot analysis based monitoring pipeline // running interval. The value indicates number of days. - // If both - // [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] - // and - // [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] - // are set when creating/updating EntityTypes/Features, - // [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] - // will be used. int32 monitoring_interval_days = 3; // Customized export features time window for snapshot analysis. Unit is one @@ -69,7 +68,9 @@ message FeaturestoreMonitoringConfig { // Configuration of the Featurestore's ImportFeature Analysis Based // Monitoring. This type of analysis generates statistics for values of each - // Feature imported by every [ImportFeatureValues][] operation. + // Feature imported by every + // [ImportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValues] + // operation. message ImportFeaturesAnalysis { // The state defines whether to enable ImportFeature analysis. enum State { @@ -96,7 +97,9 @@ message FeaturestoreMonitoringConfig { } // Defines the baseline to do anomaly detection for feature values imported - // by each [ImportFeatureValues][] operation. + // by each + // [ImportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValues] + // operation. enum Baseline { // Should not be used. BASELINE_UNSPECIFIED = 0; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto index 688deafa645..86fa13380f9 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto @@ -27,6 +27,7 @@ import "google/cloud/aiplatform/v1beta1/featurestore.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "google/type/interval.proto"; @@ -1387,7 +1388,49 @@ message DeleteFeatureValuesRequest { // Response message for // [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues]. -message DeleteFeatureValuesResponse {} +message DeleteFeatureValuesResponse { + // Response message if the request uses the SelectEntity option. + message SelectEntity { + // The count of deleted entity rows in the offline storage. + // Each row corresponds to the combination of an entity ID and a timestamp. + // One entity ID can have multiple rows in the offline storage. + int64 offline_storage_deleted_entity_row_count = 1; + + // The count of deleted entities in the online storage. + // Each entity ID corresponds to one entity. + int64 online_storage_deleted_entity_count = 2; + } + + // Response message if the request uses the SelectTimeRangeAndFeature option. + message SelectTimeRangeAndFeature { + // The count of the features or columns impacted. + // This is the same as the feature count in the request. + int64 impacted_feature_count = 1; + + // The count of modified entity rows in the offline storage. + // Each row corresponds to the combination of an entity ID and a timestamp. + // One entity ID can have multiple rows in the offline storage. + // Within each row, only the features specified in the request are + // deleted. + int64 offline_storage_modified_entity_row_count = 2; + + // The count of modified entities in the online storage. + // Each entity ID corresponds to one entity. + // Within each entity, only the features specified in the request are + // deleted. + int64 online_storage_modified_entity_count = 3; + } + + // Response based on which delete option is specified in the + // request + oneof response { + // Response for request specifying the entities to delete + SelectEntity select_entity = 1; + + // Response for request specifying time range and feature + SelectTimeRangeAndFeature select_time_range_and_feature = 2; + } +} // Selector for entityId. Getting ids from the given source. message EntityIdSelector { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint_service.proto index 64e1a2cc115..fbbc5095c60 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint_service.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/index_endpoint.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_service.proto index 2565ca7ae86..f74394c0ea7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_service.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/index.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_state.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_state.proto index fb0ffdc33d2..7a53cd2cfc3 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_state.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_state.proto @@ -57,10 +57,7 @@ enum JobState { // The job has expired. JOB_STATE_EXPIRED = 9; - // The job is being updated. The job is only able to be updated at RUNNING - // state; if the update operation succeeds, job goes back to RUNNING state; if - // the update operation fails, the job goes back to RUNNING state with error - // messages written to [ModelDeploymentMonitoringJob.partial_errors][] field - // if it is a ModelDeploymentMonitoringJob. + // The job is being updated. Only jobs in the `RUNNING` state can be updated. + // After updating, the job goes back to the `RUNNING` state. JOB_STATE_UPDATING = 10; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/match_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/match_service.proto index 07acb17b08f..bac8de1b3f3 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/match_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/match_service.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_service.proto index b1b6c664c93..8e23652d576 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_service.proto @@ -29,6 +29,7 @@ import "google/cloud/aiplatform/v1beta1/metadata_schema.proto"; import "google/cloud/aiplatform/v1beta1/metadata_store.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto index ed2b51e1848..5801b2e4282 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto @@ -103,6 +103,13 @@ message Model { ]; } + // Contains information about the Large Model. + message LargeModelReference { + // Required. The unique name of the large Foundation or pre-built model. + // Like "chat-panda", "text-panda". + string name = 1 [(google.api.field_behavior) = REQUIRED]; + } + // Identifies a type of Model's prediction resources. enum DeploymentResourcesType { // Should not be used. @@ -210,12 +217,12 @@ message Model { // deploying this Model. The specification is ingested upon // [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], // and all binaries it contains are copied and stored internally by Vertex AI. - // Not present for AutoML Models. + // Not present for AutoML Models or Large Models. ModelContainerSpec container_spec = 9 [(google.api.field_behavior) = INPUT_ONLY]; // Immutable. The path to the directory containing the Model artifact and any - // of its supporting files. Not present for AutoML Models. + // of its supporting files. Not present for AutoML Models or Large Models. string artifact_uri = 26 [(google.api.field_behavior) = IMMUTABLE]; // Output only. When this Model is deployed, its prediction resources are @@ -343,11 +350,14 @@ message Model { // The default explanation specification for this Model. // - // The Model can be used for [requesting - // explanation][PredictionService.Explain] after being + // The Model can be used for + // [requesting + // explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] + // after being // [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if // it is populated. The Model can be used for [batch - // explanation][BatchPredictionJob.generate_explanation] if it is populated. + // explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation] + // if it is populated. // // All fields of the explanation_spec can be overridden by // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] @@ -359,13 +369,16 @@ message Model { // [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. // // If the default explanation specification is not set for this Model, this - // Model can still be used for [requesting - // explanation][PredictionService.Explain] by setting + // Model can still be used for + // [requesting + // explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] by + // setting // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] // of // [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] - // and for [batch explanation][BatchPredictionJob.generate_explanation] by - // setting + // and for [batch + // explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation] + // by setting // [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] // of // [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. @@ -403,6 +416,11 @@ message Model { // is // `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. string metadata_artifact = 44 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Used to specify the large model reference. + // Only present for Large Models. + LargeModelReference large_model_reference = 45 + [(google.api.field_behavior) = OPTIONAL]; } // Contains the schemata used in Model's predictions and explanations via diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto index 145cbda470e..287ee6c3115 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto @@ -18,8 +18,10 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/explanation.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; @@ -39,6 +41,109 @@ message ModelEvaluationSlice { // Definition of a slice. message Slice { + // Specification for how the data should be sliced. + message SliceSpec { + // Specification message containing the config for this SliceSpec. + // When `kind` is selected as `value` and/or `range`, only a single slice + // will be computed. + // When `all_values` is present, a separate slice will be computed for + // each possible label/value for the corresponding key in `config`. + // Examples, with feature zip_code with values 12345, 23334, 88888 and + // feature country with values "US", "Canada", "Mexico" in the dataset: + // + // Example 1: + // + // { + // "zip_code": { "value": { "float_value": 12345.0 } } + // } + // + // A single slice for any data with zip_code 12345 in the dataset. + // + // Example 2: + // + // { + // "zip_code": { "range": { "low": 12345, "high": 20000 } } + // } + // + // A single slice containing data where the zip_codes between 12345 and + // 20000 For this example, data with the zip_code of 12345 will be in this + // slice. + // + // Example 3: + // + // { + // "zip_code": { "range": { "low": 10000, "high": 20000 } }, + // "country": { "value": { "string_value": "US" } } + // } + // + // A single slice containing data where the zip_codes between 10000 and + // 20000 has the country "US". For this example, data with the zip_code of + // 12345 and country "US" will be in this slice. + // + // Example 4: + // + // { "country": {"all_values": { "value": true } } } + // + // Three slices are computed, one for each unique country in the dataset. + // + // Example 5: + // + // { + // "country": { "all_values": { "value": true } }, + // "zip_code": { "value": { "float_value": 12345.0 } } + // } + // + // Three slices are computed, one for each unique country in the dataset + // where the zip_code is also 12345. For this example, data with zip_code + // 12345 and country "US" will be in one slice, zip_code 12345 and country + // "Canada" in another slice, and zip_code 12345 and country "Mexico" in + // another slice, totaling 3 slices. + message SliceConfig { + oneof kind { + // A unique specific value for a given feature. + // Example: `{ "value": { "string_value": "12345" } }` + Value value = 1; + + // A range of values for a numerical feature. + // Example: `{"range":{"low":10000.0,"high":50000.0}}` + // will capture 12345 and 23334 in the slice. + Range range = 2; + + // If all_values is set to true, then all possible labels of the keyed + // feature will have another slice computed. + // Example: `{"all_values":{"value":true}}` + google.protobuf.BoolValue all_values = 3; + } + } + + // A range of values for slice(s). + // `low` is inclusive, `high` is exclusive. + message Range { + // Inclusive low value for the range. + float low = 1; + + // Exclusive high value for the range. + float high = 2; + } + + // Single value that supports strings and floats. + message Value { + oneof kind { + // String type. + string string_value = 1; + + // Float type. + float float_value = 2; + } + } + + // Mapping configuration for this SliceSpec. + // The key is the name of the feature. + // By default, the key will be prefixed by "instance" as a dictionary + // prefix for Vertex Batch Predictions output format. + map configs = 1; + } + // Output only. The dimension of the slice. // Well-known dimensions are: // * `annotationSpec`: This slice is on the test data that has either @@ -46,10 +151,15 @@ message ModelEvaluationSlice { // [AnnotationSpec.display_name][google.cloud.aiplatform.v1beta1.AnnotationSpec.display_name] // equals to // [value][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.value]. + // * `slice`: This slice is a user customized slice defined by its + // SliceSpec. string dimension = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The value of the dimension in this slice. string value = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Specification for how the data was sliced. + SliceSpec slice_spec = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Output only. The resource name of the ModelEvaluationSlice. @@ -74,4 +184,11 @@ message ModelEvaluationSlice { // Output only. Timestamp when this ModelEvaluationSlice was created. google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Aggregated explanation metrics for the Model's prediction + // output over the data this ModelEvaluation uses. This field is populated + // only if the Model is evaluated with explanations, and only for tabular + // Models. + ModelExplanation model_explanation = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_service.proto index c1a68c12c52..af56ead5abd 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_service.proto @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1beta1/evaluated_annotation.proto"; import "google/cloud/aiplatform/v1beta1/explanation.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/model.proto"; @@ -28,6 +29,7 @@ import "google/cloud/aiplatform/v1beta1/model_evaluation.proto"; import "google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -126,8 +128,9 @@ service ModelService { // Deletes a Model version. // - // Model version can only be deleted if there are no [DeployedModels][] - // created from it. Deleting the only version in the Model is not allowed. Use + // Model version can only be deleted if there are no + // [DeployedModels][google.cloud.aiplatform.v1beta1.DeployedModel] created + // from it. Deleting the only version in the Model is not allowed. Use // [DeleteModel][google.cloud.aiplatform.v1beta1.ModelService.DeleteModel] for // deleting the Model instead. rpc DeleteModelVersion(DeleteModelVersionRequest) @@ -205,6 +208,16 @@ service ModelService { option (google.api.method_signature) = "parent,model_evaluation_slices"; } + // Imports a list of externally generated EvaluatedAnnotations. + rpc BatchImportEvaluatedAnnotations(BatchImportEvaluatedAnnotationsRequest) + returns (BatchImportEvaluatedAnnotationsResponse) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/models/*/evaluations/*/slices/*}:batchImport" + body: "*" + }; + option (google.api.method_signature) = "parent,evaluated_annotations"; + } + // Gets a ModelEvaluation. rpc GetModelEvaluation(GetModelEvaluationRequest) returns (ModelEvaluation) { option (google.api.http) = { @@ -743,6 +756,32 @@ message BatchImportModelEvaluationSlicesResponse { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Request message for +// [ModelService.BatchImportEvaluatedAnnotations][google.cloud.aiplatform.v1beta1.ModelService.BatchImportEvaluatedAnnotations] +message BatchImportEvaluatedAnnotationsRequest { + // Required. The name of the parent ModelEvaluationSlice resource. + // Format: + // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ModelEvaluationSlice" + } + ]; + + // Required. Evaluated annotations resource to be imported. + repeated EvaluatedAnnotation evaluated_annotations = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for +// [ModelService.BatchImportEvaluatedAnnotations][google.cloud.aiplatform.v1beta1.ModelService.BatchImportEvaluatedAnnotations] +message BatchImportEvaluatedAnnotationsResponse { + // Output only. Number of EvaluatedAnnotations imported. + int32 imported_evaluated_annotations_count = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Request message for // [ModelService.GetModelEvaluation][google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluation]. message GetModelEvaluationRequest { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/nas_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/nas_job.proto index 383d3c5aca2..39f468cc15d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/nas_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/nas_job.proto @@ -96,7 +96,7 @@ message NasJob { // Optional. Enable a separation of Custom model training // and restricted image training for tenant project. bool enable_restricted_image_training = 14 - [(google.api.field_behavior) = OPTIONAL]; + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } // Represents a NasTrial details along with it's parameters. If there is a diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto index d17c375342e..e0e4d9ee466 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/cloud/aiplatform/v1beta1/pipeline_job.proto"; import "google/cloud/aiplatform/v1beta1/training_pipeline.proto"; import "google/longrunning/operations.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto index 01d037b812e..82a2f8f2572 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/cloud/aiplatform/v1beta1/specialist_pool.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_service.proto index 2a150320bec..2dbd620baef 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_service.proto @@ -27,6 +27,7 @@ import "google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto"; import "google/cloud/aiplatform/v1beta1/tensorboard_run.proto"; import "google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -402,7 +403,8 @@ message ReadTensorboardUsageRequest { ]; } -// Response message for [TensorboardService.GetTensorboardUsage][]. +// Response message for +// [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardUsage]. message ReadTensorboardUsageResponse { // Per user usage data. message PerUserUsageData { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/vizier_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/vizier_service.proto index 6f2f0eac399..0e75beaa337 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/vizier_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/vizier_service.proto @@ -158,7 +158,7 @@ service VizierService { // Checks whether a Trial should stop or not. Returns a // long-running operation. When the operation is successful, // it will contain a - // [CheckTrialEarlyStoppingStateResponse][google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse]. + // [CheckTrialEarlyStoppingStateResponse][google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse]. rpc CheckTrialEarlyStoppingState(CheckTrialEarlyStoppingStateRequest) returns (google.longrunning.Operation) { option (google.api.http) = { diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index c10cea7b743..2169d9ffd23 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -36,7 +36,8 @@ export namespace google { NVIDIA_TESLA_T4 = 5, NVIDIA_TESLA_A100 = 8, TPU_V2 = 6, - TPU_V3 = 7 + TPU_V3 = 7, + TPU_V4_POD = 10 } /** Properties of an Annotation. */ @@ -664,6 +665,9 @@ export namespace google { /** BatchPredictionJob encryptionSpec */ encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** BatchPredictionJob disableContainerLogging */ + disableContainerLogging?: (boolean|null); } /** Represents a BatchPredictionJob. */ @@ -753,6 +757,9 @@ export namespace google { /** BatchPredictionJob encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** BatchPredictionJob disableContainerLogging. */ + public disableContainerLogging: boolean; + /** * Creates a new BatchPredictionJob instance using the specified properties. * @param [properties] Properties to set @@ -9081,6 +9088,9 @@ export namespace google { /** ExportDataConfig gcsDestination */ gcsDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** ExportDataConfig fractionSplit */ + fractionSplit?: (google.cloud.aiplatform.v1.IExportFractionSplit|null); + /** ExportDataConfig annotationsFilter */ annotationsFilter?: (string|null); } @@ -9097,12 +9107,18 @@ export namespace google { /** ExportDataConfig gcsDestination. */ public gcsDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** ExportDataConfig fractionSplit. */ + public fractionSplit?: (google.cloud.aiplatform.v1.IExportFractionSplit|null); + /** ExportDataConfig annotationsFilter. */ public annotationsFilter: string; /** ExportDataConfig destination. */ public destination?: "gcsDestination"; + /** ExportDataConfig split. */ + public split?: "fractionSplit"; + /** * Creates a new ExportDataConfig instance using the specified properties. * @param [properties] Properties to set @@ -9181,6 +9197,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an ExportFractionSplit. */ + interface IExportFractionSplit { + + /** ExportFractionSplit trainingFraction */ + trainingFraction?: (number|null); + + /** ExportFractionSplit validationFraction */ + validationFraction?: (number|null); + + /** ExportFractionSplit testFraction */ + testFraction?: (number|null); + } + + /** Represents an ExportFractionSplit. */ + class ExportFractionSplit implements IExportFractionSplit { + + /** + * Constructs a new ExportFractionSplit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExportFractionSplit); + + /** ExportFractionSplit trainingFraction. */ + public trainingFraction: number; + + /** ExportFractionSplit validationFraction. */ + public validationFraction: number; + + /** ExportFractionSplit testFraction. */ + public testFraction: number; + + /** + * Creates a new ExportFractionSplit instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportFractionSplit instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExportFractionSplit): google.cloud.aiplatform.v1.ExportFractionSplit; + + /** + * Encodes the specified ExportFractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFractionSplit.verify|verify} messages. + * @param message ExportFractionSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IExportFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExportFractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFractionSplit.verify|verify} messages. + * @param message ExportFractionSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExportFractionSplit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportFractionSplit + * @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.ExportFractionSplit; + + /** + * Decodes an ExportFractionSplit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportFractionSplit + * @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.ExportFractionSplit; + + /** + * Verifies an ExportFractionSplit 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 an ExportFractionSplit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportFractionSplit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportFractionSplit; + + /** + * Creates a plain object from an ExportFractionSplit message. Also converts values to other types if specified. + * @param message ExportFractionSplit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExportFractionSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExportFractionSplit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExportFractionSplit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SavedQuery. */ interface ISavedQuery { @@ -15178,6 +15303,482 @@ export namespace google { } } + /** Properties of an EvaluatedAnnotation. */ + interface IEvaluatedAnnotation { + + /** EvaluatedAnnotation type */ + type?: (google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType|keyof typeof google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType|null); + + /** EvaluatedAnnotation predictions */ + predictions?: (google.protobuf.IValue[]|null); + + /** EvaluatedAnnotation groundTruths */ + groundTruths?: (google.protobuf.IValue[]|null); + + /** EvaluatedAnnotation dataItemPayload */ + dataItemPayload?: (google.protobuf.IValue|null); + + /** EvaluatedAnnotation evaluatedDataItemViewId */ + evaluatedDataItemViewId?: (string|null); + + /** EvaluatedAnnotation explanations */ + explanations?: (google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation[]|null); + + /** EvaluatedAnnotation errorAnalysisAnnotations */ + errorAnalysisAnnotations?: (google.cloud.aiplatform.v1.IErrorAnalysisAnnotation[]|null); + } + + /** Represents an EvaluatedAnnotation. */ + class EvaluatedAnnotation implements IEvaluatedAnnotation { + + /** + * Constructs a new EvaluatedAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IEvaluatedAnnotation); + + /** EvaluatedAnnotation type. */ + public type: (google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType|keyof typeof google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType); + + /** EvaluatedAnnotation predictions. */ + public predictions: google.protobuf.IValue[]; + + /** EvaluatedAnnotation groundTruths. */ + public groundTruths: google.protobuf.IValue[]; + + /** EvaluatedAnnotation dataItemPayload. */ + public dataItemPayload?: (google.protobuf.IValue|null); + + /** EvaluatedAnnotation evaluatedDataItemViewId. */ + public evaluatedDataItemViewId: string; + + /** EvaluatedAnnotation explanations. */ + public explanations: google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation[]; + + /** EvaluatedAnnotation errorAnalysisAnnotations. */ + public errorAnalysisAnnotations: google.cloud.aiplatform.v1.IErrorAnalysisAnnotation[]; + + /** + * Creates a new EvaluatedAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns EvaluatedAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IEvaluatedAnnotation): google.cloud.aiplatform.v1.EvaluatedAnnotation; + + /** + * Encodes the specified EvaluatedAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluatedAnnotation.verify|verify} messages. + * @param message EvaluatedAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IEvaluatedAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EvaluatedAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluatedAnnotation.verify|verify} messages. + * @param message EvaluatedAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IEvaluatedAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EvaluatedAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EvaluatedAnnotation + * @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.EvaluatedAnnotation; + + /** + * Decodes an EvaluatedAnnotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EvaluatedAnnotation + * @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.EvaluatedAnnotation; + + /** + * Verifies an EvaluatedAnnotation 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 an EvaluatedAnnotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EvaluatedAnnotation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.EvaluatedAnnotation; + + /** + * Creates a plain object from an EvaluatedAnnotation message. Also converts values to other types if specified. + * @param message EvaluatedAnnotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.EvaluatedAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EvaluatedAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EvaluatedAnnotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace EvaluatedAnnotation { + + /** EvaluatedAnnotationType enum. */ + enum EvaluatedAnnotationType { + EVALUATED_ANNOTATION_TYPE_UNSPECIFIED = 0, + TRUE_POSITIVE = 1, + FALSE_POSITIVE = 2, + FALSE_NEGATIVE = 3 + } + } + + /** Properties of an EvaluatedAnnotationExplanation. */ + interface IEvaluatedAnnotationExplanation { + + /** EvaluatedAnnotationExplanation explanationType */ + explanationType?: (string|null); + + /** EvaluatedAnnotationExplanation explanation */ + explanation?: (google.cloud.aiplatform.v1.IExplanation|null); + } + + /** Represents an EvaluatedAnnotationExplanation. */ + class EvaluatedAnnotationExplanation implements IEvaluatedAnnotationExplanation { + + /** + * Constructs a new EvaluatedAnnotationExplanation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation); + + /** EvaluatedAnnotationExplanation explanationType. */ + public explanationType: string; + + /** EvaluatedAnnotationExplanation explanation. */ + public explanation?: (google.cloud.aiplatform.v1.IExplanation|null); + + /** + * Creates a new EvaluatedAnnotationExplanation instance using the specified properties. + * @param [properties] Properties to set + * @returns EvaluatedAnnotationExplanation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation): google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation; + + /** + * Encodes the specified EvaluatedAnnotationExplanation message. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.verify|verify} messages. + * @param message EvaluatedAnnotationExplanation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EvaluatedAnnotationExplanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.verify|verify} messages. + * @param message EvaluatedAnnotationExplanation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EvaluatedAnnotationExplanation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EvaluatedAnnotationExplanation + * @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.EvaluatedAnnotationExplanation; + + /** + * Decodes an EvaluatedAnnotationExplanation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EvaluatedAnnotationExplanation + * @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.EvaluatedAnnotationExplanation; + + /** + * Verifies an EvaluatedAnnotationExplanation 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 an EvaluatedAnnotationExplanation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EvaluatedAnnotationExplanation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation; + + /** + * Creates a plain object from an EvaluatedAnnotationExplanation message. Also converts values to other types if specified. + * @param message EvaluatedAnnotationExplanation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EvaluatedAnnotationExplanation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EvaluatedAnnotationExplanation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ErrorAnalysisAnnotation. */ + interface IErrorAnalysisAnnotation { + + /** ErrorAnalysisAnnotation attributedItems */ + attributedItems?: (google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem[]|null); + + /** ErrorAnalysisAnnotation queryType */ + queryType?: (google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType|keyof typeof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType|null); + + /** ErrorAnalysisAnnotation outlierScore */ + outlierScore?: (number|null); + + /** ErrorAnalysisAnnotation outlierThreshold */ + outlierThreshold?: (number|null); + } + + /** Represents an ErrorAnalysisAnnotation. */ + class ErrorAnalysisAnnotation implements IErrorAnalysisAnnotation { + + /** + * Constructs a new ErrorAnalysisAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IErrorAnalysisAnnotation); + + /** ErrorAnalysisAnnotation attributedItems. */ + public attributedItems: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem[]; + + /** ErrorAnalysisAnnotation queryType. */ + public queryType: (google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType|keyof typeof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType); + + /** ErrorAnalysisAnnotation outlierScore. */ + public outlierScore: number; + + /** ErrorAnalysisAnnotation outlierThreshold. */ + public outlierThreshold: number; + + /** + * Creates a new ErrorAnalysisAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns ErrorAnalysisAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IErrorAnalysisAnnotation): google.cloud.aiplatform.v1.ErrorAnalysisAnnotation; + + /** + * Encodes the specified ErrorAnalysisAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.verify|verify} messages. + * @param message ErrorAnalysisAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IErrorAnalysisAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ErrorAnalysisAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.verify|verify} messages. + * @param message ErrorAnalysisAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IErrorAnalysisAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ErrorAnalysisAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ErrorAnalysisAnnotation + * @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.ErrorAnalysisAnnotation; + + /** + * Decodes an ErrorAnalysisAnnotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ErrorAnalysisAnnotation + * @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.ErrorAnalysisAnnotation; + + /** + * Verifies an ErrorAnalysisAnnotation 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 an ErrorAnalysisAnnotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ErrorAnalysisAnnotation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ErrorAnalysisAnnotation; + + /** + * Creates a plain object from an ErrorAnalysisAnnotation message. Also converts values to other types if specified. + * @param message ErrorAnalysisAnnotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ErrorAnalysisAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ErrorAnalysisAnnotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ErrorAnalysisAnnotation { + + /** Properties of an AttributedItem. */ + interface IAttributedItem { + + /** AttributedItem annotationResourceName */ + annotationResourceName?: (string|null); + + /** AttributedItem distance */ + distance?: (number|null); + } + + /** Represents an AttributedItem. */ + class AttributedItem implements IAttributedItem { + + /** + * Constructs a new AttributedItem. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem); + + /** AttributedItem annotationResourceName. */ + public annotationResourceName: string; + + /** AttributedItem distance. */ + public distance: number; + + /** + * Creates a new AttributedItem instance using the specified properties. + * @param [properties] Properties to set + * @returns AttributedItem instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem): google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem; + + /** + * Encodes the specified AttributedItem message. Does not implicitly {@link google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem.verify|verify} messages. + * @param message AttributedItem message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AttributedItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem.verify|verify} messages. + * @param message AttributedItem message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AttributedItem message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AttributedItem + * @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.ErrorAnalysisAnnotation.AttributedItem; + + /** + * Decodes an AttributedItem message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AttributedItem + * @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.ErrorAnalysisAnnotation.AttributedItem; + + /** + * Verifies an AttributedItem 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 an AttributedItem message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AttributedItem + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem; + + /** + * Creates a plain object from an AttributedItem message. Also converts values to other types if specified. + * @param message AttributedItem + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AttributedItem to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AttributedItem + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** QueryType enum. */ + enum QueryType { + QUERY_TYPE_UNSPECIFIED = 0, + ALL_SIMILAR = 1, + SAME_CLASS_SIMILAR = 2, + SAME_CLASS_DISSIMILAR = 3 + } + } + /** Properties of an Event. */ interface IEvent { @@ -16336,6 +16937,9 @@ export namespace google { /** Scaling maxNodeCount */ maxNodeCount?: (number|null); + + /** Scaling cpuUtilizationTarget */ + cpuUtilizationTarget?: (number|null); } /** Represents a Scaling. */ @@ -16353,6 +16957,9 @@ export namespace google { /** Scaling maxNodeCount. */ public maxNodeCount: number; + /** Scaling cpuUtilizationTarget. */ + public cpuUtilizationTarget: number; + /** * Creates a new Scaling instance using the specified properties. * @param [properties] Properties to set @@ -18585,6 +19192,20 @@ export namespace google { */ public exportFeatureValues(request: google.cloud.aiplatform.v1.IExportFeatureValuesRequest): Promise; + /** + * Calls DeleteFeatureValues. + * @param request DeleteFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteFeatureValues(request: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureValuesCallback): void; + + /** + * Calls DeleteFeatureValues. + * @param request DeleteFeatureValuesRequest message or plain object + * @returns Promise + */ + public deleteFeatureValues(request: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest): Promise; + /** * Calls SearchFeatures. * @param request SearchFeaturesRequest message or plain object @@ -18735,6 +19356,13 @@ export namespace google { */ type ExportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteFeatureValues}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|searchFeatures}. * @param error Error, if any @@ -23067,6 +23695,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteFeatureValuesOperationMetadata. */ + interface IDeleteFeatureValuesOperationMetadata { + + /** DeleteFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } + + /** Represents a DeleteFeatureValuesOperationMetadata. */ + class DeleteFeatureValuesOperationMetadata implements IDeleteFeatureValuesOperationMetadata { + + /** + * Constructs a new DeleteFeatureValuesOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata); + + /** DeleteFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** + * Creates a new DeleteFeatureValuesOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteFeatureValuesOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata): google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata; + + /** + * Encodes the specified DeleteFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata.verify|verify} messages. + * @param message DeleteFeatureValuesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata.verify|verify} messages. + * @param message DeleteFeatureValuesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteFeatureValuesOperationMetadata + * @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.DeleteFeatureValuesOperationMetadata; + + /** + * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteFeatureValuesOperationMetadata + * @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.DeleteFeatureValuesOperationMetadata; + + /** + * Verifies a DeleteFeatureValuesOperationMetadata 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 DeleteFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteFeatureValuesOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata; + + /** + * Creates a plain object from a DeleteFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @param message DeleteFeatureValuesOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteFeatureValuesOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteFeatureValuesOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a CreateEntityTypeOperationMetadata. */ interface ICreateEntityTypeOperationMetadata { @@ -23358,6 +24083,754 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteFeatureValuesRequest. */ + interface IDeleteFeatureValuesRequest { + + /** DeleteFeatureValuesRequest selectEntity */ + selectEntity?: (google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity|null); + + /** DeleteFeatureValuesRequest selectTimeRangeAndFeature */ + selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null); + + /** DeleteFeatureValuesRequest entityType */ + entityType?: (string|null); + } + + /** Represents a DeleteFeatureValuesRequest. */ + class DeleteFeatureValuesRequest implements IDeleteFeatureValuesRequest { + + /** + * Constructs a new DeleteFeatureValuesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest); + + /** DeleteFeatureValuesRequest selectEntity. */ + public selectEntity?: (google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity|null); + + /** DeleteFeatureValuesRequest selectTimeRangeAndFeature. */ + public selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null); + + /** DeleteFeatureValuesRequest entityType. */ + public entityType: string; + + /** DeleteFeatureValuesRequest DeleteOption. */ + public DeleteOption?: ("selectEntity"|"selectTimeRangeAndFeature"); + + /** + * Creates a new DeleteFeatureValuesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteFeatureValuesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest; + + /** + * Encodes the specified DeleteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.verify|verify} messages. + * @param message DeleteFeatureValuesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.verify|verify} messages. + * @param message DeleteFeatureValuesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteFeatureValuesRequest + * @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.DeleteFeatureValuesRequest; + + /** + * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteFeatureValuesRequest + * @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.DeleteFeatureValuesRequest; + + /** + * Verifies a DeleteFeatureValuesRequest 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 DeleteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteFeatureValuesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest; + + /** + * Creates a plain object from a DeleteFeatureValuesRequest message. Also converts values to other types if specified. + * @param message DeleteFeatureValuesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteFeatureValuesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteFeatureValuesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DeleteFeatureValuesRequest { + + /** Properties of a SelectEntity. */ + interface ISelectEntity { + + /** SelectEntity entityIdSelector */ + entityIdSelector?: (google.cloud.aiplatform.v1.IEntityIdSelector|null); + } + + /** Represents a SelectEntity. */ + class SelectEntity implements ISelectEntity { + + /** + * Constructs a new SelectEntity. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity); + + /** SelectEntity entityIdSelector. */ + public entityIdSelector?: (google.cloud.aiplatform.v1.IEntityIdSelector|null); + + /** + * Creates a new SelectEntity instance using the specified properties. + * @param [properties] Properties to set + * @returns SelectEntity instance + */ + public static create(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity; + + /** + * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. + * @param message SelectEntity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. + * @param message SelectEntity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SelectEntity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SelectEntity + * @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.DeleteFeatureValuesRequest.SelectEntity; + + /** + * Decodes a SelectEntity message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SelectEntity + * @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.DeleteFeatureValuesRequest.SelectEntity; + + /** + * Verifies a SelectEntity 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 SelectEntity message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SelectEntity + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity; + + /** + * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. + * @param message SelectEntity + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SelectEntity to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SelectEntity + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SelectTimeRangeAndFeature. */ + interface ISelectTimeRangeAndFeature { + + /** SelectTimeRangeAndFeature timeRange */ + timeRange?: (google.type.IInterval|null); + + /** SelectTimeRangeAndFeature featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); + + /** SelectTimeRangeAndFeature skipOnlineStorageDelete */ + skipOnlineStorageDelete?: (boolean|null); + } + + /** Represents a SelectTimeRangeAndFeature. */ + class SelectTimeRangeAndFeature implements ISelectTimeRangeAndFeature { + + /** + * Constructs a new SelectTimeRangeAndFeature. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature); + + /** SelectTimeRangeAndFeature timeRange. */ + public timeRange?: (google.type.IInterval|null); + + /** SelectTimeRangeAndFeature featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); + + /** SelectTimeRangeAndFeature skipOnlineStorageDelete. */ + public skipOnlineStorageDelete: boolean; + + /** + * Creates a new SelectTimeRangeAndFeature instance using the specified properties. + * @param [properties] Properties to set + * @returns SelectTimeRangeAndFeature instance + */ + public static create(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. + * @param message SelectTimeRangeAndFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. + * @param message SelectTimeRangeAndFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SelectTimeRangeAndFeature + * @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.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SelectTimeRangeAndFeature + * @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.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Verifies a SelectTimeRangeAndFeature 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 SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SelectTimeRangeAndFeature + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. + * @param message SelectTimeRangeAndFeature + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SelectTimeRangeAndFeature to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SelectTimeRangeAndFeature + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a DeleteFeatureValuesResponse. */ + interface IDeleteFeatureValuesResponse { + + /** DeleteFeatureValuesResponse selectEntity */ + selectEntity?: (google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity|null); + + /** DeleteFeatureValuesResponse selectTimeRangeAndFeature */ + selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature|null); + } + + /** Represents a DeleteFeatureValuesResponse. */ + class DeleteFeatureValuesResponse implements IDeleteFeatureValuesResponse { + + /** + * Constructs a new DeleteFeatureValuesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse); + + /** DeleteFeatureValuesResponse selectEntity. */ + public selectEntity?: (google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity|null); + + /** DeleteFeatureValuesResponse selectTimeRangeAndFeature. */ + public selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature|null); + + /** DeleteFeatureValuesResponse response. */ + public response?: ("selectEntity"|"selectTimeRangeAndFeature"); + + /** + * Creates a new DeleteFeatureValuesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteFeatureValuesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse; + + /** + * Encodes the specified DeleteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.verify|verify} messages. + * @param message DeleteFeatureValuesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.verify|verify} messages. + * @param message DeleteFeatureValuesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteFeatureValuesResponse + * @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.DeleteFeatureValuesResponse; + + /** + * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteFeatureValuesResponse + * @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.DeleteFeatureValuesResponse; + + /** + * Verifies a DeleteFeatureValuesResponse 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 DeleteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteFeatureValuesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse; + + /** + * Creates a plain object from a DeleteFeatureValuesResponse message. Also converts values to other types if specified. + * @param message DeleteFeatureValuesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteFeatureValuesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteFeatureValuesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DeleteFeatureValuesResponse { + + /** Properties of a SelectEntity. */ + interface ISelectEntity { + + /** SelectEntity offlineStorageDeletedEntityRowCount */ + offlineStorageDeletedEntityRowCount?: (number|Long|string|null); + + /** SelectEntity onlineStorageDeletedEntityCount */ + onlineStorageDeletedEntityCount?: (number|Long|string|null); + } + + /** Represents a SelectEntity. */ + class SelectEntity implements ISelectEntity { + + /** + * Constructs a new SelectEntity. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity); + + /** SelectEntity offlineStorageDeletedEntityRowCount. */ + public offlineStorageDeletedEntityRowCount: (number|Long|string); + + /** SelectEntity onlineStorageDeletedEntityCount. */ + public onlineStorageDeletedEntityCount: (number|Long|string); + + /** + * Creates a new SelectEntity instance using the specified properties. + * @param [properties] Properties to set + * @returns SelectEntity instance + */ + public static create(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity; + + /** + * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.verify|verify} messages. + * @param message SelectEntity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.verify|verify} messages. + * @param message SelectEntity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SelectEntity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SelectEntity + * @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.DeleteFeatureValuesResponse.SelectEntity; + + /** + * Decodes a SelectEntity message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SelectEntity + * @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.DeleteFeatureValuesResponse.SelectEntity; + + /** + * Verifies a SelectEntity 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 SelectEntity message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SelectEntity + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity; + + /** + * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. + * @param message SelectEntity + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SelectEntity to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SelectEntity + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SelectTimeRangeAndFeature. */ + interface ISelectTimeRangeAndFeature { + + /** SelectTimeRangeAndFeature impactedFeatureCount */ + impactedFeatureCount?: (number|Long|string|null); + + /** SelectTimeRangeAndFeature offlineStorageModifiedEntityRowCount */ + offlineStorageModifiedEntityRowCount?: (number|Long|string|null); + + /** SelectTimeRangeAndFeature onlineStorageModifiedEntityCount */ + onlineStorageModifiedEntityCount?: (number|Long|string|null); + } + + /** Represents a SelectTimeRangeAndFeature. */ + class SelectTimeRangeAndFeature implements ISelectTimeRangeAndFeature { + + /** + * Constructs a new SelectTimeRangeAndFeature. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature); + + /** SelectTimeRangeAndFeature impactedFeatureCount. */ + public impactedFeatureCount: (number|Long|string); + + /** SelectTimeRangeAndFeature offlineStorageModifiedEntityRowCount. */ + public offlineStorageModifiedEntityRowCount: (number|Long|string); + + /** SelectTimeRangeAndFeature onlineStorageModifiedEntityCount. */ + public onlineStorageModifiedEntityCount: (number|Long|string); + + /** + * Creates a new SelectTimeRangeAndFeature instance using the specified properties. + * @param [properties] Properties to set + * @returns SelectTimeRangeAndFeature instance + */ + public static create(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature; + + /** + * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify|verify} messages. + * @param message SelectTimeRangeAndFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify|verify} messages. + * @param message SelectTimeRangeAndFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SelectTimeRangeAndFeature + * @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.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SelectTimeRangeAndFeature + * @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.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature; + + /** + * Verifies a SelectTimeRangeAndFeature 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 SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SelectTimeRangeAndFeature + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature; + + /** + * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. + * @param message SelectTimeRangeAndFeature + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SelectTimeRangeAndFeature to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SelectTimeRangeAndFeature + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an EntityIdSelector. */ + interface IEntityIdSelector { + + /** EntityIdSelector csvSource */ + csvSource?: (google.cloud.aiplatform.v1.ICsvSource|null); + + /** EntityIdSelector entityIdField */ + entityIdField?: (string|null); + } + + /** Represents an EntityIdSelector. */ + class EntityIdSelector implements IEntityIdSelector { + + /** + * Constructs a new EntityIdSelector. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IEntityIdSelector); + + /** EntityIdSelector csvSource. */ + public csvSource?: (google.cloud.aiplatform.v1.ICsvSource|null); + + /** EntityIdSelector entityIdField. */ + public entityIdField: string; + + /** EntityIdSelector EntityIdsSource. */ + public EntityIdsSource?: "csvSource"; + + /** + * Creates a new EntityIdSelector instance using the specified properties. + * @param [properties] Properties to set + * @returns EntityIdSelector instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IEntityIdSelector): google.cloud.aiplatform.v1.EntityIdSelector; + + /** + * Encodes the specified EntityIdSelector message. Does not implicitly {@link google.cloud.aiplatform.v1.EntityIdSelector.verify|verify} messages. + * @param message EntityIdSelector message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IEntityIdSelector, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EntityIdSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EntityIdSelector.verify|verify} messages. + * @param message EntityIdSelector message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IEntityIdSelector, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EntityIdSelector message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EntityIdSelector + * @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.EntityIdSelector; + + /** + * Decodes an EntityIdSelector message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EntityIdSelector + * @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.EntityIdSelector; + + /** + * Verifies an EntityIdSelector 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 an EntityIdSelector message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EntityIdSelector + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.EntityIdSelector; + + /** + * Creates a plain object from an EntityIdSelector message. Also converts values to other types if specified. + * @param message EntityIdSelector + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.EntityIdSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EntityIdSelector to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EntityIdSelector + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a HyperparameterTuningJob. */ interface IHyperparameterTuningJob { @@ -48172,6 +49645,9 @@ export namespace google { /** ModelEvaluationSlice createTime */ createTime?: (google.protobuf.ITimestamp|null); + + /** ModelEvaluationSlice modelExplanation */ + modelExplanation?: (google.cloud.aiplatform.v1.IModelExplanation|null); } /** Represents a ModelEvaluationSlice. */ @@ -48198,6 +49674,9 @@ export namespace google { /** ModelEvaluationSlice createTime. */ public createTime?: (google.protobuf.ITimestamp|null); + /** ModelEvaluationSlice modelExplanation. */ + public modelExplanation?: (google.cloud.aiplatform.v1.IModelExplanation|null); + /** * Creates a new ModelEvaluationSlice instance using the specified properties. * @param [properties] Properties to set @@ -48286,6 +49765,9 @@ export namespace google { /** Slice value */ value?: (string|null); + + /** Slice sliceSpec */ + sliceSpec?: (google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.ISliceSpec|null); } /** Represents a Slice. */ @@ -48303,6 +49785,9 @@ export namespace google { /** Slice value. */ public value: string; + /** Slice sliceSpec. */ + public sliceSpec?: (google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.ISliceSpec|null); + /** * Creates a new Slice instance using the specified properties. * @param [properties] Properties to set @@ -48380,6 +49865,430 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + namespace Slice { + + /** Properties of a SliceSpec. */ + interface ISliceSpec { + + /** SliceSpec configs */ + configs?: ({ [k: string]: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig }|null); + } + + /** Represents a SliceSpec. */ + class SliceSpec implements ISliceSpec { + + /** + * Constructs a new SliceSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.ISliceSpec); + + /** SliceSpec configs. */ + public configs: { [k: string]: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig }; + + /** + * Creates a new SliceSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns SliceSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.ISliceSpec): google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec; + + /** + * Encodes the specified SliceSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.verify|verify} messages. + * @param message SliceSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.ISliceSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SliceSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.verify|verify} messages. + * @param message SliceSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.ISliceSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SliceSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SliceSpec + * @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.ModelEvaluationSlice.Slice.SliceSpec; + + /** + * Decodes a SliceSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SliceSpec + * @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.ModelEvaluationSlice.Slice.SliceSpec; + + /** + * Verifies a SliceSpec 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 SliceSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SliceSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec; + + /** + * Creates a plain object from a SliceSpec message. Also converts values to other types if specified. + * @param message SliceSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SliceSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SliceSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SliceSpec { + + /** Properties of a SliceConfig. */ + interface ISliceConfig { + + /** SliceConfig value */ + value?: (google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IValue|null); + + /** SliceConfig range */ + range?: (google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IRange|null); + + /** SliceConfig allValues */ + allValues?: (google.protobuf.IBoolValue|null); + } + + /** Represents a SliceConfig. */ + class SliceConfig implements ISliceConfig { + + /** + * Constructs a new SliceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig); + + /** SliceConfig value. */ + public value?: (google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IValue|null); + + /** SliceConfig range. */ + public range?: (google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IRange|null); + + /** SliceConfig allValues. */ + public allValues?: (google.protobuf.IBoolValue|null); + + /** SliceConfig kind. */ + public kind?: ("value"|"range"|"allValues"); + + /** + * Creates a new SliceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SliceConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig): google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig; + + /** + * Encodes the specified SliceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify|verify} messages. + * @param message SliceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SliceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify|verify} messages. + * @param message SliceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SliceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SliceConfig + * @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.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig; + + /** + * Decodes a SliceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SliceConfig + * @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.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig; + + /** + * Verifies a SliceConfig 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 SliceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SliceConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig; + + /** + * Creates a plain object from a SliceConfig message. Also converts values to other types if specified. + * @param message SliceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SliceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SliceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Range. */ + interface IRange { + + /** Range low */ + low?: (number|null); + + /** Range high */ + high?: (number|null); + } + + /** Represents a Range. */ + class Range implements IRange { + + /** + * Constructs a new Range. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IRange); + + /** Range low. */ + public low: number; + + /** Range high. */ + public high: number; + + /** + * Creates a new Range instance using the specified properties. + * @param [properties] Properties to set + * @returns Range instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IRange): google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range; + + /** + * Encodes the specified Range message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify|verify} messages. + * @param message Range message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Range message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify|verify} messages. + * @param message Range message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Range message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Range + * @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.ModelEvaluationSlice.Slice.SliceSpec.Range; + + /** + * Decodes a Range message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Range + * @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.ModelEvaluationSlice.Slice.SliceSpec.Range; + + /** + * Verifies a Range 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 Range message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Range + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range; + + /** + * Creates a plain object from a Range message. Also converts values to other types if specified. + * @param message Range + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Range to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Range + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Value. */ + interface IValue { + + /** Value stringValue */ + stringValue?: (string|null); + + /** Value floatValue */ + floatValue?: (number|null); + } + + /** Represents a Value. */ + class Value implements IValue { + + /** + * Constructs a new Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IValue); + + /** Value stringValue. */ + public stringValue?: (string|null); + + /** Value floatValue. */ + public floatValue?: (number|null); + + /** Value kind. */ + public kind?: ("stringValue"|"floatValue"); + + /** + * Creates a new Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Value instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IValue): google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Value + * @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.ModelEvaluationSlice.Slice.SliceSpec.Value; + + /** + * Decodes a Value message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Value + * @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.ModelEvaluationSlice.Slice.SliceSpec.Value; + + /** + * Verifies a Value 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 Value message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Value + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value; + + /** + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @param message Value + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Value to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } } /** Represents a ModelService */ @@ -48570,6 +50479,20 @@ export namespace google { */ public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest): Promise; + /** + * Calls BatchImportEvaluatedAnnotations. + * @param request BatchImportEvaluatedAnnotationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchImportEvaluatedAnnotationsResponse + */ + public batchImportEvaluatedAnnotations(request: google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest, callback: google.cloud.aiplatform.v1.ModelService.BatchImportEvaluatedAnnotationsCallback): void; + + /** + * Calls BatchImportEvaluatedAnnotations. + * @param request BatchImportEvaluatedAnnotationsRequest message or plain object + * @returns Promise + */ + public batchImportEvaluatedAnnotations(request: google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest): Promise; + /** * Calls GetModelEvaluation. * @param request GetModelEvaluationRequest message or plain object @@ -48713,6 +50636,13 @@ export namespace google { */ type BatchImportModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|batchImportEvaluatedAnnotations}. + * @param error Error, if any + * @param [response] BatchImportEvaluatedAnnotationsResponse + */ + type BatchImportEvaluatedAnnotationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluation}. * @param error Error, if any @@ -51162,6 +53092,206 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a BatchImportEvaluatedAnnotationsRequest. */ + interface IBatchImportEvaluatedAnnotationsRequest { + + /** BatchImportEvaluatedAnnotationsRequest parent */ + parent?: (string|null); + + /** BatchImportEvaluatedAnnotationsRequest evaluatedAnnotations */ + evaluatedAnnotations?: (google.cloud.aiplatform.v1.IEvaluatedAnnotation[]|null); + } + + /** Represents a BatchImportEvaluatedAnnotationsRequest. */ + class BatchImportEvaluatedAnnotationsRequest implements IBatchImportEvaluatedAnnotationsRequest { + + /** + * Constructs a new BatchImportEvaluatedAnnotationsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest); + + /** BatchImportEvaluatedAnnotationsRequest parent. */ + public parent: string; + + /** BatchImportEvaluatedAnnotationsRequest evaluatedAnnotations. */ + public evaluatedAnnotations: google.cloud.aiplatform.v1.IEvaluatedAnnotation[]; + + /** + * Creates a new BatchImportEvaluatedAnnotationsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchImportEvaluatedAnnotationsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest): google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest; + + /** + * Encodes the specified BatchImportEvaluatedAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest.verify|verify} messages. + * @param message BatchImportEvaluatedAnnotationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchImportEvaluatedAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest.verify|verify} messages. + * @param message BatchImportEvaluatedAnnotationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchImportEvaluatedAnnotationsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchImportEvaluatedAnnotationsRequest + * @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.BatchImportEvaluatedAnnotationsRequest; + + /** + * Decodes a BatchImportEvaluatedAnnotationsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchImportEvaluatedAnnotationsRequest + * @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.BatchImportEvaluatedAnnotationsRequest; + + /** + * Verifies a BatchImportEvaluatedAnnotationsRequest 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 BatchImportEvaluatedAnnotationsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchImportEvaluatedAnnotationsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest; + + /** + * Creates a plain object from a BatchImportEvaluatedAnnotationsRequest message. Also converts values to other types if specified. + * @param message BatchImportEvaluatedAnnotationsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchImportEvaluatedAnnotationsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchImportEvaluatedAnnotationsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BatchImportEvaluatedAnnotationsResponse. */ + interface IBatchImportEvaluatedAnnotationsResponse { + + /** BatchImportEvaluatedAnnotationsResponse importedEvaluatedAnnotationsCount */ + importedEvaluatedAnnotationsCount?: (number|null); + } + + /** Represents a BatchImportEvaluatedAnnotationsResponse. */ + class BatchImportEvaluatedAnnotationsResponse implements IBatchImportEvaluatedAnnotationsResponse { + + /** + * Constructs a new BatchImportEvaluatedAnnotationsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsResponse); + + /** BatchImportEvaluatedAnnotationsResponse importedEvaluatedAnnotationsCount. */ + public importedEvaluatedAnnotationsCount: number; + + /** + * Creates a new BatchImportEvaluatedAnnotationsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchImportEvaluatedAnnotationsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsResponse): google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse; + + /** + * Encodes the specified BatchImportEvaluatedAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse.verify|verify} messages. + * @param message BatchImportEvaluatedAnnotationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchImportEvaluatedAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse.verify|verify} messages. + * @param message BatchImportEvaluatedAnnotationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchImportEvaluatedAnnotationsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchImportEvaluatedAnnotationsResponse + * @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.BatchImportEvaluatedAnnotationsResponse; + + /** + * Decodes a BatchImportEvaluatedAnnotationsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchImportEvaluatedAnnotationsResponse + * @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.BatchImportEvaluatedAnnotationsResponse; + + /** + * Verifies a BatchImportEvaluatedAnnotationsResponse 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 BatchImportEvaluatedAnnotationsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchImportEvaluatedAnnotationsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse; + + /** + * Creates a plain object from a BatchImportEvaluatedAnnotationsResponse message. Also converts values to other types if specified. + * @param message BatchImportEvaluatedAnnotationsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchImportEvaluatedAnnotationsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchImportEvaluatedAnnotationsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetModelEvaluationRequest. */ interface IGetModelEvaluationRequest { @@ -73239,7 +75369,8 @@ export namespace google { NVIDIA_TESLA_A100 = 8, NVIDIA_A100_80GB = 9, TPU_V2 = 6, - TPU_V3 = 7 + TPU_V3 = 7, + TPU_V4_POD = 10 } /** Properties of an Annotation. */ @@ -73876,6 +76007,9 @@ export namespace google { /** BatchPredictionJob modelMonitoringStatus */ modelMonitoringStatus?: (google.rpc.IStatus|null); + + /** BatchPredictionJob disableContainerLogging */ + disableContainerLogging?: (boolean|null); } /** Represents a BatchPredictionJob. */ @@ -73974,6 +76108,9 @@ export namespace google { /** BatchPredictionJob modelMonitoringStatus. */ public modelMonitoringStatus?: (google.rpc.IStatus|null); + /** BatchPredictionJob disableContainerLogging. */ + public disableContainerLogging: boolean; + /** * Creates a new BatchPredictionJob instance using the specified properties. * @param [properties] Properties to set @@ -81978,6 +84115,9 @@ export namespace google { /** Model metadataArtifact */ metadataArtifact?: (string|null); + + /** Model largeModelReference */ + largeModelReference?: (google.cloud.aiplatform.v1beta1.Model.ILargeModelReference|null); } /** Represents a Model. */ @@ -82073,6 +84213,9 @@ export namespace google { /** Model metadataArtifact. */ public metadataArtifact: string; + /** Model largeModelReference. */ + public largeModelReference?: (google.cloud.aiplatform.v1beta1.Model.ILargeModelReference|null); + /** * Creates a new Model instance using the specified properties. * @param [properties] Properties to set @@ -82363,6 +84506,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a LargeModelReference. */ + interface ILargeModelReference { + + /** LargeModelReference name */ + name?: (string|null); + } + + /** Represents a LargeModelReference. */ + class LargeModelReference implements ILargeModelReference { + + /** + * Constructs a new LargeModelReference. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Model.ILargeModelReference); + + /** LargeModelReference name. */ + public name: string; + + /** + * Creates a new LargeModelReference instance using the specified properties. + * @param [properties] Properties to set + * @returns LargeModelReference instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Model.ILargeModelReference): google.cloud.aiplatform.v1beta1.Model.LargeModelReference; + + /** + * Encodes the specified LargeModelReference message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.LargeModelReference.verify|verify} messages. + * @param message LargeModelReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Model.ILargeModelReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LargeModelReference message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.LargeModelReference.verify|verify} messages. + * @param message LargeModelReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Model.ILargeModelReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LargeModelReference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LargeModelReference + * @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.Model.LargeModelReference; + + /** + * Decodes a LargeModelReference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LargeModelReference + * @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.Model.LargeModelReference; + + /** + * Verifies a LargeModelReference 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 LargeModelReference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LargeModelReference + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model.LargeModelReference; + + /** + * Creates a plain object from a LargeModelReference message. Also converts values to other types if specified. + * @param message LargeModelReference + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Model.LargeModelReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LargeModelReference to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LargeModelReference + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** DeploymentResourcesType enum. */ enum DeploymentResourcesType { DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED = 0, @@ -84911,6 +87151,9 @@ export namespace google { /** ExportDataConfig gcsDestination */ gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** ExportDataConfig fractionSplit */ + fractionSplit?: (google.cloud.aiplatform.v1beta1.IExportFractionSplit|null); + /** ExportDataConfig annotationsFilter */ annotationsFilter?: (string|null); } @@ -84927,12 +87170,18 @@ export namespace google { /** ExportDataConfig gcsDestination. */ public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** ExportDataConfig fractionSplit. */ + public fractionSplit?: (google.cloud.aiplatform.v1beta1.IExportFractionSplit|null); + /** ExportDataConfig annotationsFilter. */ public annotationsFilter: string; /** ExportDataConfig destination. */ public destination?: "gcsDestination"; + /** ExportDataConfig split. */ + public split?: "fractionSplit"; + /** * Creates a new ExportDataConfig instance using the specified properties. * @param [properties] Properties to set @@ -85011,6 +87260,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an ExportFractionSplit. */ + interface IExportFractionSplit { + + /** ExportFractionSplit trainingFraction */ + trainingFraction?: (number|null); + + /** ExportFractionSplit validationFraction */ + validationFraction?: (number|null); + + /** ExportFractionSplit testFraction */ + testFraction?: (number|null); + } + + /** Represents an ExportFractionSplit. */ + class ExportFractionSplit implements IExportFractionSplit { + + /** + * Constructs a new ExportFractionSplit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFractionSplit); + + /** ExportFractionSplit trainingFraction. */ + public trainingFraction: number; + + /** ExportFractionSplit validationFraction. */ + public validationFraction: number; + + /** ExportFractionSplit testFraction. */ + public testFraction: number; + + /** + * Creates a new ExportFractionSplit instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportFractionSplit instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFractionSplit): google.cloud.aiplatform.v1beta1.ExportFractionSplit; + + /** + * Encodes the specified ExportFractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFractionSplit.verify|verify} messages. + * @param message ExportFractionSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IExportFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExportFractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFractionSplit.verify|verify} messages. + * @param message ExportFractionSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExportFractionSplit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportFractionSplit + * @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.ExportFractionSplit; + + /** + * Decodes an ExportFractionSplit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportFractionSplit + * @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.ExportFractionSplit; + + /** + * Verifies an ExportFractionSplit 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 an ExportFractionSplit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportFractionSplit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFractionSplit; + + /** + * Creates a plain object from an ExportFractionSplit message. Also converts values to other types if specified. + * @param message ExportFractionSplit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFractionSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExportFractionSplit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExportFractionSplit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SavedQuery. */ interface ISavedQuery { @@ -92203,6 +94561,482 @@ export namespace google { } } + /** Properties of an EvaluatedAnnotation. */ + interface IEvaluatedAnnotation { + + /** EvaluatedAnnotation type */ + type?: (google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.EvaluatedAnnotationType|keyof typeof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.EvaluatedAnnotationType|null); + + /** EvaluatedAnnotation predictions */ + predictions?: (google.protobuf.IValue[]|null); + + /** EvaluatedAnnotation groundTruths */ + groundTruths?: (google.protobuf.IValue[]|null); + + /** EvaluatedAnnotation dataItemPayload */ + dataItemPayload?: (google.protobuf.IValue|null); + + /** EvaluatedAnnotation evaluatedDataItemViewId */ + evaluatedDataItemViewId?: (string|null); + + /** EvaluatedAnnotation explanations */ + explanations?: (google.cloud.aiplatform.v1beta1.IEvaluatedAnnotationExplanation[]|null); + + /** EvaluatedAnnotation errorAnalysisAnnotations */ + errorAnalysisAnnotations?: (google.cloud.aiplatform.v1beta1.IErrorAnalysisAnnotation[]|null); + } + + /** Represents an EvaluatedAnnotation. */ + class EvaluatedAnnotation implements IEvaluatedAnnotation { + + /** + * Constructs a new EvaluatedAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IEvaluatedAnnotation); + + /** EvaluatedAnnotation type. */ + public type: (google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.EvaluatedAnnotationType|keyof typeof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.EvaluatedAnnotationType); + + /** EvaluatedAnnotation predictions. */ + public predictions: google.protobuf.IValue[]; + + /** EvaluatedAnnotation groundTruths. */ + public groundTruths: google.protobuf.IValue[]; + + /** EvaluatedAnnotation dataItemPayload. */ + public dataItemPayload?: (google.protobuf.IValue|null); + + /** EvaluatedAnnotation evaluatedDataItemViewId. */ + public evaluatedDataItemViewId: string; + + /** EvaluatedAnnotation explanations. */ + public explanations: google.cloud.aiplatform.v1beta1.IEvaluatedAnnotationExplanation[]; + + /** EvaluatedAnnotation errorAnalysisAnnotations. */ + public errorAnalysisAnnotations: google.cloud.aiplatform.v1beta1.IErrorAnalysisAnnotation[]; + + /** + * Creates a new EvaluatedAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns EvaluatedAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IEvaluatedAnnotation): google.cloud.aiplatform.v1beta1.EvaluatedAnnotation; + + /** + * Encodes the specified EvaluatedAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.verify|verify} messages. + * @param message EvaluatedAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IEvaluatedAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EvaluatedAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.verify|verify} messages. + * @param message EvaluatedAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEvaluatedAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EvaluatedAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EvaluatedAnnotation + * @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.EvaluatedAnnotation; + + /** + * Decodes an EvaluatedAnnotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EvaluatedAnnotation + * @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.EvaluatedAnnotation; + + /** + * Verifies an EvaluatedAnnotation 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 an EvaluatedAnnotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EvaluatedAnnotation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EvaluatedAnnotation; + + /** + * Creates a plain object from an EvaluatedAnnotation message. Also converts values to other types if specified. + * @param message EvaluatedAnnotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.EvaluatedAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EvaluatedAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EvaluatedAnnotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace EvaluatedAnnotation { + + /** EvaluatedAnnotationType enum. */ + enum EvaluatedAnnotationType { + EVALUATED_ANNOTATION_TYPE_UNSPECIFIED = 0, + TRUE_POSITIVE = 1, + FALSE_POSITIVE = 2, + FALSE_NEGATIVE = 3 + } + } + + /** Properties of an EvaluatedAnnotationExplanation. */ + interface IEvaluatedAnnotationExplanation { + + /** EvaluatedAnnotationExplanation explanationType */ + explanationType?: (string|null); + + /** EvaluatedAnnotationExplanation explanation */ + explanation?: (google.cloud.aiplatform.v1beta1.IExplanation|null); + } + + /** Represents an EvaluatedAnnotationExplanation. */ + class EvaluatedAnnotationExplanation implements IEvaluatedAnnotationExplanation { + + /** + * Constructs a new EvaluatedAnnotationExplanation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IEvaluatedAnnotationExplanation); + + /** EvaluatedAnnotationExplanation explanationType. */ + public explanationType: string; + + /** EvaluatedAnnotationExplanation explanation. */ + public explanation?: (google.cloud.aiplatform.v1beta1.IExplanation|null); + + /** + * Creates a new EvaluatedAnnotationExplanation instance using the specified properties. + * @param [properties] Properties to set + * @returns EvaluatedAnnotationExplanation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IEvaluatedAnnotationExplanation): google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation; + + /** + * Encodes the specified EvaluatedAnnotationExplanation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation.verify|verify} messages. + * @param message EvaluatedAnnotationExplanation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IEvaluatedAnnotationExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EvaluatedAnnotationExplanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation.verify|verify} messages. + * @param message EvaluatedAnnotationExplanation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEvaluatedAnnotationExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EvaluatedAnnotationExplanation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EvaluatedAnnotationExplanation + * @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.EvaluatedAnnotationExplanation; + + /** + * Decodes an EvaluatedAnnotationExplanation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EvaluatedAnnotationExplanation + * @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.EvaluatedAnnotationExplanation; + + /** + * Verifies an EvaluatedAnnotationExplanation 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 an EvaluatedAnnotationExplanation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EvaluatedAnnotationExplanation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation; + + /** + * Creates a plain object from an EvaluatedAnnotationExplanation message. Also converts values to other types if specified. + * @param message EvaluatedAnnotationExplanation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EvaluatedAnnotationExplanation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EvaluatedAnnotationExplanation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ErrorAnalysisAnnotation. */ + interface IErrorAnalysisAnnotation { + + /** ErrorAnalysisAnnotation attributedItems */ + attributedItems?: (google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.IAttributedItem[]|null); + + /** ErrorAnalysisAnnotation queryType */ + queryType?: (google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.QueryType|keyof typeof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.QueryType|null); + + /** ErrorAnalysisAnnotation outlierScore */ + outlierScore?: (number|null); + + /** ErrorAnalysisAnnotation outlierThreshold */ + outlierThreshold?: (number|null); + } + + /** Represents an ErrorAnalysisAnnotation. */ + class ErrorAnalysisAnnotation implements IErrorAnalysisAnnotation { + + /** + * Constructs a new ErrorAnalysisAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IErrorAnalysisAnnotation); + + /** ErrorAnalysisAnnotation attributedItems. */ + public attributedItems: google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.IAttributedItem[]; + + /** ErrorAnalysisAnnotation queryType. */ + public queryType: (google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.QueryType|keyof typeof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.QueryType); + + /** ErrorAnalysisAnnotation outlierScore. */ + public outlierScore: number; + + /** ErrorAnalysisAnnotation outlierThreshold. */ + public outlierThreshold: number; + + /** + * Creates a new ErrorAnalysisAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns ErrorAnalysisAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IErrorAnalysisAnnotation): google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation; + + /** + * Encodes the specified ErrorAnalysisAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.verify|verify} messages. + * @param message ErrorAnalysisAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IErrorAnalysisAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ErrorAnalysisAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.verify|verify} messages. + * @param message ErrorAnalysisAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IErrorAnalysisAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ErrorAnalysisAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ErrorAnalysisAnnotation + * @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.ErrorAnalysisAnnotation; + + /** + * Decodes an ErrorAnalysisAnnotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ErrorAnalysisAnnotation + * @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.ErrorAnalysisAnnotation; + + /** + * Verifies an ErrorAnalysisAnnotation 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 an ErrorAnalysisAnnotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ErrorAnalysisAnnotation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation; + + /** + * Creates a plain object from an ErrorAnalysisAnnotation message. Also converts values to other types if specified. + * @param message ErrorAnalysisAnnotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ErrorAnalysisAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ErrorAnalysisAnnotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ErrorAnalysisAnnotation { + + /** Properties of an AttributedItem. */ + interface IAttributedItem { + + /** AttributedItem annotationResourceName */ + annotationResourceName?: (string|null); + + /** AttributedItem distance */ + distance?: (number|null); + } + + /** Represents an AttributedItem. */ + class AttributedItem implements IAttributedItem { + + /** + * Constructs a new AttributedItem. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.IAttributedItem); + + /** AttributedItem annotationResourceName. */ + public annotationResourceName: string; + + /** AttributedItem distance. */ + public distance: number; + + /** + * Creates a new AttributedItem instance using the specified properties. + * @param [properties] Properties to set + * @returns AttributedItem instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.IAttributedItem): google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem; + + /** + * Encodes the specified AttributedItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem.verify|verify} messages. + * @param message AttributedItem message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.IAttributedItem, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AttributedItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem.verify|verify} messages. + * @param message AttributedItem message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.IAttributedItem, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AttributedItem message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AttributedItem + * @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.ErrorAnalysisAnnotation.AttributedItem; + + /** + * Decodes an AttributedItem message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AttributedItem + * @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.ErrorAnalysisAnnotation.AttributedItem; + + /** + * Verifies an AttributedItem 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 an AttributedItem message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AttributedItem + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem; + + /** + * Creates a plain object from an AttributedItem message. Also converts values to other types if specified. + * @param message AttributedItem + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AttributedItem to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AttributedItem + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** QueryType enum. */ + enum QueryType { + QUERY_TYPE_UNSPECIFIED = 0, + ALL_SIMILAR = 1, + SAME_CLASS_SIMILAR = 2, + SAME_CLASS_DISSIMILAR = 3 + } + } + /** Properties of an Event. */ interface IEvent { @@ -93246,6 +96080,9 @@ export namespace google { /** Scaling maxNodeCount */ maxNodeCount?: (number|null); + + /** Scaling cpuUtilizationTarget */ + cpuUtilizationTarget?: (number|null); } /** Represents a Scaling. */ @@ -93263,6 +96100,9 @@ export namespace google { /** Scaling maxNodeCount. */ public maxNodeCount: number; + /** Scaling cpuUtilizationTarget. */ + public cpuUtilizationTarget: number; + /** * Creates a new Scaling instance using the specified properties. * @param [properties] Properties to set @@ -100709,6 +103549,12 @@ export namespace google { /** Properties of a DeleteFeatureValuesResponse. */ interface IDeleteFeatureValuesResponse { + + /** DeleteFeatureValuesResponse selectEntity */ + selectEntity?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectEntity|null); + + /** DeleteFeatureValuesResponse selectTimeRangeAndFeature */ + selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature|null); } /** Represents a DeleteFeatureValuesResponse. */ @@ -100720,6 +103566,15 @@ export namespace google { */ constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesResponse); + /** DeleteFeatureValuesResponse selectEntity. */ + public selectEntity?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectEntity|null); + + /** DeleteFeatureValuesResponse selectTimeRangeAndFeature. */ + public selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature|null); + + /** DeleteFeatureValuesResponse response. */ + public response?: ("selectEntity"|"selectTimeRangeAndFeature"); + /** * Creates a new DeleteFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set @@ -100798,6 +103653,221 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace DeleteFeatureValuesResponse { + + /** Properties of a SelectEntity. */ + interface ISelectEntity { + + /** SelectEntity offlineStorageDeletedEntityRowCount */ + offlineStorageDeletedEntityRowCount?: (number|Long|string|null); + + /** SelectEntity onlineStorageDeletedEntityCount */ + onlineStorageDeletedEntityCount?: (number|Long|string|null); + } + + /** Represents a SelectEntity. */ + class SelectEntity implements ISelectEntity { + + /** + * Constructs a new SelectEntity. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectEntity); + + /** SelectEntity offlineStorageDeletedEntityRowCount. */ + public offlineStorageDeletedEntityRowCount: (number|Long|string); + + /** SelectEntity onlineStorageDeletedEntityCount. */ + public onlineStorageDeletedEntityCount: (number|Long|string); + + /** + * Creates a new SelectEntity instance using the specified properties. + * @param [properties] Properties to set + * @returns SelectEntity instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectEntity): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity; + + /** + * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity.verify|verify} messages. + * @param message SelectEntity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity.verify|verify} messages. + * @param message SelectEntity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SelectEntity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SelectEntity + * @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.DeleteFeatureValuesResponse.SelectEntity; + + /** + * Decodes a SelectEntity message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SelectEntity + * @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.DeleteFeatureValuesResponse.SelectEntity; + + /** + * Verifies a SelectEntity 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 SelectEntity message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SelectEntity + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity; + + /** + * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. + * @param message SelectEntity + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SelectEntity to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SelectEntity + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SelectTimeRangeAndFeature. */ + interface ISelectTimeRangeAndFeature { + + /** SelectTimeRangeAndFeature impactedFeatureCount */ + impactedFeatureCount?: (number|Long|string|null); + + /** SelectTimeRangeAndFeature offlineStorageModifiedEntityRowCount */ + offlineStorageModifiedEntityRowCount?: (number|Long|string|null); + + /** SelectTimeRangeAndFeature onlineStorageModifiedEntityCount */ + onlineStorageModifiedEntityCount?: (number|Long|string|null); + } + + /** Represents a SelectTimeRangeAndFeature. */ + class SelectTimeRangeAndFeature implements ISelectTimeRangeAndFeature { + + /** + * Constructs a new SelectTimeRangeAndFeature. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature); + + /** SelectTimeRangeAndFeature impactedFeatureCount. */ + public impactedFeatureCount: (number|Long|string); + + /** SelectTimeRangeAndFeature offlineStorageModifiedEntityRowCount. */ + public offlineStorageModifiedEntityRowCount: (number|Long|string); + + /** SelectTimeRangeAndFeature onlineStorageModifiedEntityCount. */ + public onlineStorageModifiedEntityCount: (number|Long|string); + + /** + * Creates a new SelectTimeRangeAndFeature instance using the specified properties. + * @param [properties] Properties to set + * @returns SelectTimeRangeAndFeature instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature; + + /** + * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify|verify} messages. + * @param message SelectTimeRangeAndFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify|verify} messages. + * @param message SelectTimeRangeAndFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SelectTimeRangeAndFeature + * @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.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SelectTimeRangeAndFeature + * @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.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature; + + /** + * Verifies a SelectTimeRangeAndFeature 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 SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SelectTimeRangeAndFeature + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature; + + /** + * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. + * @param message SelectTimeRangeAndFeature + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SelectTimeRangeAndFeature to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SelectTimeRangeAndFeature + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + /** Properties of an EntityIdSelector. */ interface IEntityIdSelector { @@ -124645,6 +127715,9 @@ export namespace google { /** ModelEvaluationSlice createTime */ createTime?: (google.protobuf.ITimestamp|null); + + /** ModelEvaluationSlice modelExplanation */ + modelExplanation?: (google.cloud.aiplatform.v1beta1.IModelExplanation|null); } /** Represents a ModelEvaluationSlice. */ @@ -124671,6 +127744,9 @@ export namespace google { /** ModelEvaluationSlice createTime. */ public createTime?: (google.protobuf.ITimestamp|null); + /** ModelEvaluationSlice modelExplanation. */ + public modelExplanation?: (google.cloud.aiplatform.v1beta1.IModelExplanation|null); + /** * Creates a new ModelEvaluationSlice instance using the specified properties. * @param [properties] Properties to set @@ -124759,6 +127835,9 @@ export namespace google { /** Slice value */ value?: (string|null); + + /** Slice sliceSpec */ + sliceSpec?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null); } /** Represents a Slice. */ @@ -124776,6 +127855,9 @@ export namespace google { /** Slice value. */ public value: string; + /** Slice sliceSpec. */ + public sliceSpec?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null); + /** * Creates a new Slice instance using the specified properties. * @param [properties] Properties to set @@ -124853,6 +127935,430 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + namespace Slice { + + /** Properties of a SliceSpec. */ + interface ISliceSpec { + + /** SliceSpec configs */ + configs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig }|null); + } + + /** Represents a SliceSpec. */ + class SliceSpec implements ISliceSpec { + + /** + * Constructs a new SliceSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec); + + /** SliceSpec configs. */ + public configs: { [k: string]: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig }; + + /** + * Creates a new SliceSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns SliceSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec; + + /** + * Encodes the specified SliceSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify|verify} messages. + * @param message SliceSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SliceSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify|verify} messages. + * @param message SliceSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SliceSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SliceSpec + * @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.ModelEvaluationSlice.Slice.SliceSpec; + + /** + * Decodes a SliceSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SliceSpec + * @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.ModelEvaluationSlice.Slice.SliceSpec; + + /** + * Verifies a SliceSpec 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 SliceSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SliceSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec; + + /** + * Creates a plain object from a SliceSpec message. Also converts values to other types if specified. + * @param message SliceSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SliceSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SliceSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SliceSpec { + + /** Properties of a SliceConfig. */ + interface ISliceConfig { + + /** SliceConfig value */ + value?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue|null); + + /** SliceConfig range */ + range?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange|null); + + /** SliceConfig allValues */ + allValues?: (google.protobuf.IBoolValue|null); + } + + /** Represents a SliceConfig. */ + class SliceConfig implements ISliceConfig { + + /** + * Constructs a new SliceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig); + + /** SliceConfig value. */ + public value?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue|null); + + /** SliceConfig range. */ + public range?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange|null); + + /** SliceConfig allValues. */ + public allValues?: (google.protobuf.IBoolValue|null); + + /** SliceConfig kind. */ + public kind?: ("value"|"range"|"allValues"); + + /** + * Creates a new SliceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SliceConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig; + + /** + * Encodes the specified SliceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify|verify} messages. + * @param message SliceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SliceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify|verify} messages. + * @param message SliceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SliceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SliceConfig + * @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.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig; + + /** + * Decodes a SliceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SliceConfig + * @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.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig; + + /** + * Verifies a SliceConfig 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 SliceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SliceConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig; + + /** + * Creates a plain object from a SliceConfig message. Also converts values to other types if specified. + * @param message SliceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SliceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SliceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Range. */ + interface IRange { + + /** Range low */ + low?: (number|null); + + /** Range high */ + high?: (number|null); + } + + /** Represents a Range. */ + class Range implements IRange { + + /** + * Constructs a new Range. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange); + + /** Range low. */ + public low: number; + + /** Range high. */ + public high: number; + + /** + * Creates a new Range instance using the specified properties. + * @param [properties] Properties to set + * @returns Range instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range; + + /** + * Encodes the specified Range message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify|verify} messages. + * @param message Range message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Range message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify|verify} messages. + * @param message Range message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Range message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Range + * @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.ModelEvaluationSlice.Slice.SliceSpec.Range; + + /** + * Decodes a Range message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Range + * @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.ModelEvaluationSlice.Slice.SliceSpec.Range; + + /** + * Verifies a Range 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 Range message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Range + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range; + + /** + * Creates a plain object from a Range message. Also converts values to other types if specified. + * @param message Range + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Range to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Range + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Value. */ + interface IValue { + + /** Value stringValue */ + stringValue?: (string|null); + + /** Value floatValue */ + floatValue?: (number|null); + } + + /** Represents a Value. */ + class Value implements IValue { + + /** + * Constructs a new Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue); + + /** Value stringValue. */ + public stringValue?: (string|null); + + /** Value floatValue. */ + public floatValue?: (number|null); + + /** Value kind. */ + public kind?: ("stringValue"|"floatValue"); + + /** + * Creates a new Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Value instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Value + * @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.ModelEvaluationSlice.Slice.SliceSpec.Value; + + /** + * Decodes a Value message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Value + * @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.ModelEvaluationSlice.Slice.SliceSpec.Value; + + /** + * Verifies a Value 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 Value message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Value + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value; + + /** + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @param message Value + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Value to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } } /** Represents a ModelService */ @@ -125057,6 +128563,20 @@ export namespace google { */ public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest): Promise; + /** + * Calls BatchImportEvaluatedAnnotations. + * @param request BatchImportEvaluatedAnnotationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchImportEvaluatedAnnotationsResponse + */ + public batchImportEvaluatedAnnotations(request: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.BatchImportEvaluatedAnnotationsCallback): void; + + /** + * Calls BatchImportEvaluatedAnnotations. + * @param request BatchImportEvaluatedAnnotationsRequest message or plain object + * @returns Promise + */ + public batchImportEvaluatedAnnotations(request: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest): Promise; + /** * Calls GetModelEvaluation. * @param request GetModelEvaluationRequest message or plain object @@ -125207,6 +128727,13 @@ export namespace google { */ type BatchImportModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|batchImportEvaluatedAnnotations}. + * @param error Error, if any + * @param [response] BatchImportEvaluatedAnnotationsResponse + */ + type BatchImportEvaluatedAnnotationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|getModelEvaluation}. * @param error Error, if any @@ -127941,6 +131468,206 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a BatchImportEvaluatedAnnotationsRequest. */ + interface IBatchImportEvaluatedAnnotationsRequest { + + /** BatchImportEvaluatedAnnotationsRequest parent */ + parent?: (string|null); + + /** BatchImportEvaluatedAnnotationsRequest evaluatedAnnotations */ + evaluatedAnnotations?: (google.cloud.aiplatform.v1beta1.IEvaluatedAnnotation[]|null); + } + + /** Represents a BatchImportEvaluatedAnnotationsRequest. */ + class BatchImportEvaluatedAnnotationsRequest implements IBatchImportEvaluatedAnnotationsRequest { + + /** + * Constructs a new BatchImportEvaluatedAnnotationsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest); + + /** BatchImportEvaluatedAnnotationsRequest parent. */ + public parent: string; + + /** BatchImportEvaluatedAnnotationsRequest evaluatedAnnotations. */ + public evaluatedAnnotations: google.cloud.aiplatform.v1beta1.IEvaluatedAnnotation[]; + + /** + * Creates a new BatchImportEvaluatedAnnotationsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchImportEvaluatedAnnotationsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest; + + /** + * Encodes the specified BatchImportEvaluatedAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.verify|verify} messages. + * @param message BatchImportEvaluatedAnnotationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchImportEvaluatedAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.verify|verify} messages. + * @param message BatchImportEvaluatedAnnotationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchImportEvaluatedAnnotationsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchImportEvaluatedAnnotationsRequest + * @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.BatchImportEvaluatedAnnotationsRequest; + + /** + * Decodes a BatchImportEvaluatedAnnotationsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchImportEvaluatedAnnotationsRequest + * @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.BatchImportEvaluatedAnnotationsRequest; + + /** + * Verifies a BatchImportEvaluatedAnnotationsRequest 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 BatchImportEvaluatedAnnotationsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchImportEvaluatedAnnotationsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest; + + /** + * Creates a plain object from a BatchImportEvaluatedAnnotationsRequest message. Also converts values to other types if specified. + * @param message BatchImportEvaluatedAnnotationsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchImportEvaluatedAnnotationsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchImportEvaluatedAnnotationsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BatchImportEvaluatedAnnotationsResponse. */ + interface IBatchImportEvaluatedAnnotationsResponse { + + /** BatchImportEvaluatedAnnotationsResponse importedEvaluatedAnnotationsCount */ + importedEvaluatedAnnotationsCount?: (number|null); + } + + /** Represents a BatchImportEvaluatedAnnotationsResponse. */ + class BatchImportEvaluatedAnnotationsResponse implements IBatchImportEvaluatedAnnotationsResponse { + + /** + * Constructs a new BatchImportEvaluatedAnnotationsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse); + + /** BatchImportEvaluatedAnnotationsResponse importedEvaluatedAnnotationsCount. */ + public importedEvaluatedAnnotationsCount: number; + + /** + * Creates a new BatchImportEvaluatedAnnotationsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchImportEvaluatedAnnotationsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse; + + /** + * Encodes the specified BatchImportEvaluatedAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse.verify|verify} messages. + * @param message BatchImportEvaluatedAnnotationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchImportEvaluatedAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse.verify|verify} messages. + * @param message BatchImportEvaluatedAnnotationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchImportEvaluatedAnnotationsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchImportEvaluatedAnnotationsResponse + * @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.BatchImportEvaluatedAnnotationsResponse; + + /** + * Decodes a BatchImportEvaluatedAnnotationsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchImportEvaluatedAnnotationsResponse + * @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.BatchImportEvaluatedAnnotationsResponse; + + /** + * Verifies a BatchImportEvaluatedAnnotationsResponse 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 BatchImportEvaluatedAnnotationsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchImportEvaluatedAnnotationsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse; + + /** + * Creates a plain object from a BatchImportEvaluatedAnnotationsResponse message. Also converts values to other types if specified. + * @param message BatchImportEvaluatedAnnotationsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchImportEvaluatedAnnotationsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchImportEvaluatedAnnotationsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetModelEvaluationRequest. */ interface IGetModelEvaluationRequest { diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index 8ee8e8c7dd2..d1f7f028b42 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -79,6 +79,7 @@ * @property {number} NVIDIA_TESLA_A100=8 NVIDIA_TESLA_A100 value * @property {number} TPU_V2=6 TPU_V2 value * @property {number} TPU_V3=7 TPU_V3 value + * @property {number} TPU_V4_POD=10 TPU_V4_POD value */ v1.AcceleratorType = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -91,6 +92,7 @@ values[valuesById[8] = "NVIDIA_TESLA_A100"] = 8; values[valuesById[6] = "TPU_V2"] = 6; values[valuesById[7] = "TPU_V3"] = 7; + values[valuesById[10] = "TPU_V4_POD"] = 10; return values; })(); @@ -1675,6 +1677,7 @@ * @property {google.protobuf.ITimestamp|null} [updateTime] BatchPredictionJob updateTime * @property {Object.|null} [labels] BatchPredictionJob labels * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] BatchPredictionJob encryptionSpec + * @property {boolean|null} [disableContainerLogging] BatchPredictionJob disableContainerLogging */ /** @@ -1902,6 +1905,14 @@ */ BatchPredictionJob.prototype.encryptionSpec = null; + /** + * BatchPredictionJob disableContainerLogging. + * @member {boolean} disableContainerLogging + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.disableContainerLogging = false; + /** * Creates a new BatchPredictionJob instance using the specified properties. * @function create @@ -1980,6 +1991,8 @@ writer.uint32(/* id 29, wireType 2 =*/234).string(message.serviceAccount); if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) writer.uint32(/* id 30, wireType 2 =*/242).string(message.modelVersionId); + if (message.disableContainerLogging != null && Object.hasOwnProperty.call(message, "disableContainerLogging")) + writer.uint32(/* id 34, wireType 0 =*/272).bool(message.disableContainerLogging); return writer; }; @@ -2139,6 +2152,10 @@ message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); break; } + case 34: { + message.disableContainerLogging = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -2311,6 +2328,9 @@ if (error) return "encryptionSpec." + error; } + if (message.disableContainerLogging != null && message.hasOwnProperty("disableContainerLogging")) + if (typeof message.disableContainerLogging !== "boolean") + return "disableContainerLogging: boolean expected"; return null; }; @@ -2492,6 +2512,8 @@ throw TypeError(".google.cloud.aiplatform.v1.BatchPredictionJob.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); } + if (object.disableContainerLogging != null) + message.disableContainerLogging = Boolean(object.disableContainerLogging); return message; }; @@ -2537,6 +2559,7 @@ object.unmanagedContainerModel = null; object.serviceAccount = ""; object.modelVersionId = ""; + object.disableContainerLogging = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -2597,6 +2620,8 @@ object.serviceAccount = message.serviceAccount; if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) object.modelVersionId = message.modelVersionId; + if (message.disableContainerLogging != null && message.hasOwnProperty("disableContainerLogging")) + object.disableContainerLogging = message.disableContainerLogging; return object; }; @@ -13131,6 +13156,7 @@ case 8: case 6: case 7: + case 10: break; } if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) @@ -13196,6 +13222,10 @@ case 7: message.acceleratorType = 7; break; + case "TPU_V4_POD": + case 10: + message.acceleratorType = 10; + break; } if (object.acceleratorCount != null) message.acceleratorCount = object.acceleratorCount | 0; @@ -24366,6 +24396,7 @@ * @memberof google.cloud.aiplatform.v1 * @interface IExportDataConfig * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [gcsDestination] ExportDataConfig gcsDestination + * @property {google.cloud.aiplatform.v1.IExportFractionSplit|null} [fractionSplit] ExportDataConfig fractionSplit * @property {string|null} [annotationsFilter] ExportDataConfig annotationsFilter */ @@ -24392,6 +24423,14 @@ */ ExportDataConfig.prototype.gcsDestination = null; + /** + * ExportDataConfig fractionSplit. + * @member {google.cloud.aiplatform.v1.IExportFractionSplit|null|undefined} fractionSplit + * @memberof google.cloud.aiplatform.v1.ExportDataConfig + * @instance + */ + ExportDataConfig.prototype.fractionSplit = null; + /** * ExportDataConfig annotationsFilter. * @member {string} annotationsFilter @@ -24414,6 +24453,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * ExportDataConfig split. + * @member {"fractionSplit"|undefined} split + * @memberof google.cloud.aiplatform.v1.ExportDataConfig + * @instance + */ + Object.defineProperty(ExportDataConfig.prototype, "split", { + get: $util.oneOfGetter($oneOfFields = ["fractionSplit"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new ExportDataConfig instance using the specified properties. * @function create @@ -24442,6 +24492,8 @@ $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.gcsDestination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.annotationsFilter != null && Object.hasOwnProperty.call(message, "annotationsFilter")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.annotationsFilter); + if (message.fractionSplit != null && Object.hasOwnProperty.call(message, "fractionSplit")) + $root.google.cloud.aiplatform.v1.ExportFractionSplit.encode(message.fractionSplit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -24480,6 +24532,10 @@ message.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); break; } + case 5: { + message.fractionSplit = $root.google.cloud.aiplatform.v1.ExportFractionSplit.decode(reader, reader.uint32()); + break; + } case 2: { message.annotationsFilter = reader.string(); break; @@ -24528,6 +24584,14 @@ return "gcsDestination." + error; } } + if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1.ExportFractionSplit.verify(message.fractionSplit); + if (error) + return "fractionSplit." + error; + } + } if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) if (!$util.isString(message.annotationsFilter)) return "annotationsFilter: string expected"; @@ -24551,6 +24615,11 @@ throw TypeError(".google.cloud.aiplatform.v1.ExportDataConfig.gcsDestination: object expected"); message.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.gcsDestination); } + if (object.fractionSplit != null) { + if (typeof object.fractionSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportDataConfig.fractionSplit: object expected"); + message.fractionSplit = $root.google.cloud.aiplatform.v1.ExportFractionSplit.fromObject(object.fractionSplit); + } if (object.annotationsFilter != null) message.annotationsFilter = String(object.annotationsFilter); return message; @@ -24578,6 +24647,11 @@ } if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) object.annotationsFilter = message.annotationsFilter; + if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { + object.fractionSplit = $root.google.cloud.aiplatform.v1.ExportFractionSplit.toObject(message.fractionSplit, options); + if (options.oneofs) + object.split = "fractionSplit"; + } return object; }; @@ -24610,6 +24684,256 @@ return ExportDataConfig; })(); + v1.ExportFractionSplit = (function() { + + /** + * Properties of an ExportFractionSplit. + * @memberof google.cloud.aiplatform.v1 + * @interface IExportFractionSplit + * @property {number|null} [trainingFraction] ExportFractionSplit trainingFraction + * @property {number|null} [validationFraction] ExportFractionSplit validationFraction + * @property {number|null} [testFraction] ExportFractionSplit testFraction + */ + + /** + * Constructs a new ExportFractionSplit. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ExportFractionSplit. + * @implements IExportFractionSplit + * @constructor + * @param {google.cloud.aiplatform.v1.IExportFractionSplit=} [properties] Properties to set + */ + function ExportFractionSplit(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]]; + } + + /** + * ExportFractionSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1.ExportFractionSplit + * @instance + */ + ExportFractionSplit.prototype.trainingFraction = 0; + + /** + * ExportFractionSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1.ExportFractionSplit + * @instance + */ + ExportFractionSplit.prototype.validationFraction = 0; + + /** + * ExportFractionSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1.ExportFractionSplit + * @instance + */ + ExportFractionSplit.prototype.testFraction = 0; + + /** + * Creates a new ExportFractionSplit instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExportFractionSplit + * @static + * @param {google.cloud.aiplatform.v1.IExportFractionSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExportFractionSplit} ExportFractionSplit instance + */ + ExportFractionSplit.create = function create(properties) { + return new ExportFractionSplit(properties); + }; + + /** + * Encodes the specified ExportFractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFractionSplit.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExportFractionSplit + * @static + * @param {google.cloud.aiplatform.v1.IExportFractionSplit} message ExportFractionSplit message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportFractionSplit.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); + if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); + if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); + return writer; + }; + + /** + * Encodes the specified ExportFractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFractionSplit.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportFractionSplit + * @static + * @param {google.cloud.aiplatform.v1.IExportFractionSplit} message ExportFractionSplit message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportFractionSplit.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExportFractionSplit message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExportFractionSplit + * @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.ExportFractionSplit} ExportFractionSplit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportFractionSplit.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportFractionSplit(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.trainingFraction = reader.double(); + break; + } + case 2: { + message.validationFraction = reader.double(); + break; + } + case 3: { + message.testFraction = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExportFractionSplit message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportFractionSplit + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExportFractionSplit} ExportFractionSplit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportFractionSplit.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExportFractionSplit message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExportFractionSplit + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExportFractionSplit.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + if (typeof message.trainingFraction !== "number") + return "trainingFraction: number expected"; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + if (typeof message.validationFraction !== "number") + return "validationFraction: number expected"; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + if (typeof message.testFraction !== "number") + return "testFraction: number expected"; + return null; + }; + + /** + * Creates an ExportFractionSplit message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExportFractionSplit + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExportFractionSplit} ExportFractionSplit + */ + ExportFractionSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExportFractionSplit) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExportFractionSplit(); + if (object.trainingFraction != null) + message.trainingFraction = Number(object.trainingFraction); + if (object.validationFraction != null) + message.validationFraction = Number(object.validationFraction); + if (object.testFraction != null) + message.testFraction = Number(object.testFraction); + return message; + }; + + /** + * Creates a plain object from an ExportFractionSplit message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExportFractionSplit + * @static + * @param {google.cloud.aiplatform.v1.ExportFractionSplit} message ExportFractionSplit + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExportFractionSplit.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; + } + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; + return object; + }; + + /** + * Converts this ExportFractionSplit to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExportFractionSplit + * @instance + * @returns {Object.} JSON object + */ + ExportFractionSplit.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExportFractionSplit + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExportFractionSplit + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExportFractionSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportFractionSplit"; + }; + + return ExportFractionSplit; + })(); + v1.SavedQuery = (function() { /** @@ -38866,6 +39190,1287 @@ return FeaturestoreMonitoringConfig; })(); + v1.EvaluatedAnnotation = (function() { + + /** + * Properties of an EvaluatedAnnotation. + * @memberof google.cloud.aiplatform.v1 + * @interface IEvaluatedAnnotation + * @property {google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType|null} [type] EvaluatedAnnotation type + * @property {Array.|null} [predictions] EvaluatedAnnotation predictions + * @property {Array.|null} [groundTruths] EvaluatedAnnotation groundTruths + * @property {google.protobuf.IValue|null} [dataItemPayload] EvaluatedAnnotation dataItemPayload + * @property {string|null} [evaluatedDataItemViewId] EvaluatedAnnotation evaluatedDataItemViewId + * @property {Array.|null} [explanations] EvaluatedAnnotation explanations + * @property {Array.|null} [errorAnalysisAnnotations] EvaluatedAnnotation errorAnalysisAnnotations + */ + + /** + * Constructs a new EvaluatedAnnotation. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an EvaluatedAnnotation. + * @implements IEvaluatedAnnotation + * @constructor + * @param {google.cloud.aiplatform.v1.IEvaluatedAnnotation=} [properties] Properties to set + */ + function EvaluatedAnnotation(properties) { + this.predictions = []; + this.groundTruths = []; + this.explanations = []; + this.errorAnalysisAnnotations = []; + 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]]; + } + + /** + * EvaluatedAnnotation type. + * @member {google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType} type + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @instance + */ + EvaluatedAnnotation.prototype.type = 0; + + /** + * EvaluatedAnnotation predictions. + * @member {Array.} predictions + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @instance + */ + EvaluatedAnnotation.prototype.predictions = $util.emptyArray; + + /** + * EvaluatedAnnotation groundTruths. + * @member {Array.} groundTruths + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @instance + */ + EvaluatedAnnotation.prototype.groundTruths = $util.emptyArray; + + /** + * EvaluatedAnnotation dataItemPayload. + * @member {google.protobuf.IValue|null|undefined} dataItemPayload + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @instance + */ + EvaluatedAnnotation.prototype.dataItemPayload = null; + + /** + * EvaluatedAnnotation evaluatedDataItemViewId. + * @member {string} evaluatedDataItemViewId + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @instance + */ + EvaluatedAnnotation.prototype.evaluatedDataItemViewId = ""; + + /** + * EvaluatedAnnotation explanations. + * @member {Array.} explanations + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @instance + */ + EvaluatedAnnotation.prototype.explanations = $util.emptyArray; + + /** + * EvaluatedAnnotation errorAnalysisAnnotations. + * @member {Array.} errorAnalysisAnnotations + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @instance + */ + EvaluatedAnnotation.prototype.errorAnalysisAnnotations = $util.emptyArray; + + /** + * Creates a new EvaluatedAnnotation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @static + * @param {google.cloud.aiplatform.v1.IEvaluatedAnnotation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.EvaluatedAnnotation} EvaluatedAnnotation instance + */ + EvaluatedAnnotation.create = function create(properties) { + return new EvaluatedAnnotation(properties); + }; + + /** + * Encodes the specified EvaluatedAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluatedAnnotation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @static + * @param {google.cloud.aiplatform.v1.IEvaluatedAnnotation} message EvaluatedAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EvaluatedAnnotation.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.predictions != null && message.predictions.length) + for (var i = 0; i < message.predictions.length; ++i) + $root.google.protobuf.Value.encode(message.predictions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.groundTruths != null && message.groundTruths.length) + for (var i = 0; i < message.groundTruths.length; ++i) + $root.google.protobuf.Value.encode(message.groundTruths[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.dataItemPayload != null && Object.hasOwnProperty.call(message, "dataItemPayload")) + $root.google.protobuf.Value.encode(message.dataItemPayload, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.evaluatedDataItemViewId != null && Object.hasOwnProperty.call(message, "evaluatedDataItemViewId")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.evaluatedDataItemViewId); + if (message.explanations != null && message.explanations.length) + for (var i = 0; i < message.explanations.length; ++i) + $root.google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.encode(message.explanations[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.errorAnalysisAnnotations != null && message.errorAnalysisAnnotations.length) + for (var i = 0; i < message.errorAnalysisAnnotations.length; ++i) + $root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.encode(message.errorAnalysisAnnotations[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EvaluatedAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluatedAnnotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @static + * @param {google.cloud.aiplatform.v1.IEvaluatedAnnotation} message EvaluatedAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EvaluatedAnnotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EvaluatedAnnotation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @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.EvaluatedAnnotation} EvaluatedAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EvaluatedAnnotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.EvaluatedAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 2: { + if (!(message.predictions && message.predictions.length)) + message.predictions = []; + message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.groundTruths && message.groundTruths.length)) + message.groundTruths = []; + message.groundTruths.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + case 5: { + message.dataItemPayload = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 6: { + message.evaluatedDataItemViewId = reader.string(); + break; + } + case 8: { + if (!(message.explanations && message.explanations.length)) + message.explanations = []; + message.explanations.push($root.google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.decode(reader, reader.uint32())); + break; + } + case 9: { + if (!(message.errorAnalysisAnnotations && message.errorAnalysisAnnotations.length)) + message.errorAnalysisAnnotations = []; + message.errorAnalysisAnnotations.push($root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EvaluatedAnnotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.EvaluatedAnnotation} EvaluatedAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EvaluatedAnnotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EvaluatedAnnotation message. + * @function verify + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EvaluatedAnnotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.predictions != null && message.hasOwnProperty("predictions")) { + if (!Array.isArray(message.predictions)) + return "predictions: array expected"; + for (var i = 0; i < message.predictions.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.predictions[i]); + if (error) + return "predictions." + error; + } + } + if (message.groundTruths != null && message.hasOwnProperty("groundTruths")) { + if (!Array.isArray(message.groundTruths)) + return "groundTruths: array expected"; + for (var i = 0; i < message.groundTruths.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.groundTruths[i]); + if (error) + return "groundTruths." + error; + } + } + if (message.dataItemPayload != null && message.hasOwnProperty("dataItemPayload")) { + var error = $root.google.protobuf.Value.verify(message.dataItemPayload); + if (error) + return "dataItemPayload." + error; + } + if (message.evaluatedDataItemViewId != null && message.hasOwnProperty("evaluatedDataItemViewId")) + if (!$util.isString(message.evaluatedDataItemViewId)) + return "evaluatedDataItemViewId: string expected"; + if (message.explanations != null && message.hasOwnProperty("explanations")) { + if (!Array.isArray(message.explanations)) + return "explanations: array expected"; + for (var i = 0; i < message.explanations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.verify(message.explanations[i]); + if (error) + return "explanations." + error; + } + } + if (message.errorAnalysisAnnotations != null && message.hasOwnProperty("errorAnalysisAnnotations")) { + if (!Array.isArray(message.errorAnalysisAnnotations)) + return "errorAnalysisAnnotations: array expected"; + for (var i = 0; i < message.errorAnalysisAnnotations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.verify(message.errorAnalysisAnnotations[i]); + if (error) + return "errorAnalysisAnnotations." + error; + } + } + return null; + }; + + /** + * Creates an EvaluatedAnnotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.EvaluatedAnnotation} EvaluatedAnnotation + */ + EvaluatedAnnotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.EvaluatedAnnotation) + return object; + var message = new $root.google.cloud.aiplatform.v1.EvaluatedAnnotation(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "EVALUATED_ANNOTATION_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "TRUE_POSITIVE": + case 1: + message.type = 1; + break; + case "FALSE_POSITIVE": + case 2: + message.type = 2; + break; + case "FALSE_NEGATIVE": + case 3: + message.type = 3; + break; + } + if (object.predictions) { + if (!Array.isArray(object.predictions)) + throw TypeError(".google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions: array expected"); + message.predictions = []; + for (var i = 0; i < object.predictions.length; ++i) { + if (typeof object.predictions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions: object expected"); + message.predictions[i] = $root.google.protobuf.Value.fromObject(object.predictions[i]); + } + } + if (object.groundTruths) { + if (!Array.isArray(object.groundTruths)) + throw TypeError(".google.cloud.aiplatform.v1.EvaluatedAnnotation.groundTruths: array expected"); + message.groundTruths = []; + for (var i = 0; i < object.groundTruths.length; ++i) { + if (typeof object.groundTruths[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluatedAnnotation.groundTruths: object expected"); + message.groundTruths[i] = $root.google.protobuf.Value.fromObject(object.groundTruths[i]); + } + } + if (object.dataItemPayload != null) { + if (typeof object.dataItemPayload !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluatedAnnotation.dataItemPayload: object expected"); + message.dataItemPayload = $root.google.protobuf.Value.fromObject(object.dataItemPayload); + } + if (object.evaluatedDataItemViewId != null) + message.evaluatedDataItemViewId = String(object.evaluatedDataItemViewId); + if (object.explanations) { + if (!Array.isArray(object.explanations)) + throw TypeError(".google.cloud.aiplatform.v1.EvaluatedAnnotation.explanations: array expected"); + message.explanations = []; + for (var i = 0; i < object.explanations.length; ++i) { + if (typeof object.explanations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluatedAnnotation.explanations: object expected"); + message.explanations[i] = $root.google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.fromObject(object.explanations[i]); + } + } + if (object.errorAnalysisAnnotations) { + if (!Array.isArray(object.errorAnalysisAnnotations)) + throw TypeError(".google.cloud.aiplatform.v1.EvaluatedAnnotation.errorAnalysisAnnotations: array expected"); + message.errorAnalysisAnnotations = []; + for (var i = 0; i < object.errorAnalysisAnnotations.length; ++i) { + if (typeof object.errorAnalysisAnnotations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluatedAnnotation.errorAnalysisAnnotations: object expected"); + message.errorAnalysisAnnotations[i] = $root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.fromObject(object.errorAnalysisAnnotations[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EvaluatedAnnotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @static + * @param {google.cloud.aiplatform.v1.EvaluatedAnnotation} message EvaluatedAnnotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EvaluatedAnnotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.predictions = []; + object.groundTruths = []; + object.explanations = []; + object.errorAnalysisAnnotations = []; + } + if (options.defaults) { + object.type = options.enums === String ? "EVALUATED_ANNOTATION_TYPE_UNSPECIFIED" : 0; + object.dataItemPayload = null; + object.evaluatedDataItemViewId = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType[message.type] === undefined ? message.type : $root.google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType[message.type] : message.type; + if (message.predictions && message.predictions.length) { + object.predictions = []; + for (var j = 0; j < message.predictions.length; ++j) + object.predictions[j] = $root.google.protobuf.Value.toObject(message.predictions[j], options); + } + if (message.groundTruths && message.groundTruths.length) { + object.groundTruths = []; + for (var j = 0; j < message.groundTruths.length; ++j) + object.groundTruths[j] = $root.google.protobuf.Value.toObject(message.groundTruths[j], options); + } + if (message.dataItemPayload != null && message.hasOwnProperty("dataItemPayload")) + object.dataItemPayload = $root.google.protobuf.Value.toObject(message.dataItemPayload, options); + if (message.evaluatedDataItemViewId != null && message.hasOwnProperty("evaluatedDataItemViewId")) + object.evaluatedDataItemViewId = message.evaluatedDataItemViewId; + if (message.explanations && message.explanations.length) { + object.explanations = []; + for (var j = 0; j < message.explanations.length; ++j) + object.explanations[j] = $root.google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.toObject(message.explanations[j], options); + } + if (message.errorAnalysisAnnotations && message.errorAnalysisAnnotations.length) { + object.errorAnalysisAnnotations = []; + for (var j = 0; j < message.errorAnalysisAnnotations.length; ++j) + object.errorAnalysisAnnotations[j] = $root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.toObject(message.errorAnalysisAnnotations[j], options); + } + return object; + }; + + /** + * Converts this EvaluatedAnnotation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @instance + * @returns {Object.} JSON object + */ + EvaluatedAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EvaluatedAnnotation + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EvaluatedAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.EvaluatedAnnotation"; + }; + + /** + * EvaluatedAnnotationType enum. + * @name google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType + * @enum {number} + * @property {number} EVALUATED_ANNOTATION_TYPE_UNSPECIFIED=0 EVALUATED_ANNOTATION_TYPE_UNSPECIFIED value + * @property {number} TRUE_POSITIVE=1 TRUE_POSITIVE value + * @property {number} FALSE_POSITIVE=2 FALSE_POSITIVE value + * @property {number} FALSE_NEGATIVE=3 FALSE_NEGATIVE value + */ + EvaluatedAnnotation.EvaluatedAnnotationType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EVALUATED_ANNOTATION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TRUE_POSITIVE"] = 1; + values[valuesById[2] = "FALSE_POSITIVE"] = 2; + values[valuesById[3] = "FALSE_NEGATIVE"] = 3; + return values; + })(); + + return EvaluatedAnnotation; + })(); + + v1.EvaluatedAnnotationExplanation = (function() { + + /** + * Properties of an EvaluatedAnnotationExplanation. + * @memberof google.cloud.aiplatform.v1 + * @interface IEvaluatedAnnotationExplanation + * @property {string|null} [explanationType] EvaluatedAnnotationExplanation explanationType + * @property {google.cloud.aiplatform.v1.IExplanation|null} [explanation] EvaluatedAnnotationExplanation explanation + */ + + /** + * Constructs a new EvaluatedAnnotationExplanation. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an EvaluatedAnnotationExplanation. + * @implements IEvaluatedAnnotationExplanation + * @constructor + * @param {google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation=} [properties] Properties to set + */ + function EvaluatedAnnotationExplanation(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]]; + } + + /** + * EvaluatedAnnotationExplanation explanationType. + * @member {string} explanationType + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation + * @instance + */ + EvaluatedAnnotationExplanation.prototype.explanationType = ""; + + /** + * EvaluatedAnnotationExplanation explanation. + * @member {google.cloud.aiplatform.v1.IExplanation|null|undefined} explanation + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation + * @instance + */ + EvaluatedAnnotationExplanation.prototype.explanation = null; + + /** + * Creates a new EvaluatedAnnotationExplanation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation + * @static + * @param {google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation} EvaluatedAnnotationExplanation instance + */ + EvaluatedAnnotationExplanation.create = function create(properties) { + return new EvaluatedAnnotationExplanation(properties); + }; + + /** + * Encodes the specified EvaluatedAnnotationExplanation message. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation + * @static + * @param {google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation} message EvaluatedAnnotationExplanation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EvaluatedAnnotationExplanation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.explanationType != null && Object.hasOwnProperty.call(message, "explanationType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.explanationType); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + $root.google.cloud.aiplatform.v1.Explanation.encode(message.explanation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EvaluatedAnnotationExplanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation + * @static + * @param {google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation} message EvaluatedAnnotationExplanation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EvaluatedAnnotationExplanation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EvaluatedAnnotationExplanation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation + * @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.EvaluatedAnnotationExplanation} EvaluatedAnnotationExplanation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EvaluatedAnnotationExplanation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.explanationType = reader.string(); + break; + } + case 2: { + message.explanation = $root.google.cloud.aiplatform.v1.Explanation.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EvaluatedAnnotationExplanation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation} EvaluatedAnnotationExplanation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EvaluatedAnnotationExplanation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EvaluatedAnnotationExplanation message. + * @function verify + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EvaluatedAnnotationExplanation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.explanationType != null && message.hasOwnProperty("explanationType")) + if (!$util.isString(message.explanationType)) + return "explanationType: string expected"; + if (message.explanation != null && message.hasOwnProperty("explanation")) { + var error = $root.google.cloud.aiplatform.v1.Explanation.verify(message.explanation); + if (error) + return "explanation." + error; + } + return null; + }; + + /** + * Creates an EvaluatedAnnotationExplanation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation} EvaluatedAnnotationExplanation + */ + EvaluatedAnnotationExplanation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation) + return object; + var message = new $root.google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation(); + if (object.explanationType != null) + message.explanationType = String(object.explanationType); + if (object.explanation != null) { + if (typeof object.explanation !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.explanation: object expected"); + message.explanation = $root.google.cloud.aiplatform.v1.Explanation.fromObject(object.explanation); + } + return message; + }; + + /** + * Creates a plain object from an EvaluatedAnnotationExplanation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation + * @static + * @param {google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation} message EvaluatedAnnotationExplanation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EvaluatedAnnotationExplanation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.explanationType = ""; + object.explanation = null; + } + if (message.explanationType != null && message.hasOwnProperty("explanationType")) + object.explanationType = message.explanationType; + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = $root.google.cloud.aiplatform.v1.Explanation.toObject(message.explanation, options); + return object; + }; + + /** + * Converts this EvaluatedAnnotationExplanation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation + * @instance + * @returns {Object.} JSON object + */ + EvaluatedAnnotationExplanation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EvaluatedAnnotationExplanation + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EvaluatedAnnotationExplanation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation"; + }; + + return EvaluatedAnnotationExplanation; + })(); + + v1.ErrorAnalysisAnnotation = (function() { + + /** + * Properties of an ErrorAnalysisAnnotation. + * @memberof google.cloud.aiplatform.v1 + * @interface IErrorAnalysisAnnotation + * @property {Array.|null} [attributedItems] ErrorAnalysisAnnotation attributedItems + * @property {google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType|null} [queryType] ErrorAnalysisAnnotation queryType + * @property {number|null} [outlierScore] ErrorAnalysisAnnotation outlierScore + * @property {number|null} [outlierThreshold] ErrorAnalysisAnnotation outlierThreshold + */ + + /** + * Constructs a new ErrorAnalysisAnnotation. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ErrorAnalysisAnnotation. + * @implements IErrorAnalysisAnnotation + * @constructor + * @param {google.cloud.aiplatform.v1.IErrorAnalysisAnnotation=} [properties] Properties to set + */ + function ErrorAnalysisAnnotation(properties) { + this.attributedItems = []; + 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]]; + } + + /** + * ErrorAnalysisAnnotation attributedItems. + * @member {Array.} attributedItems + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + * @instance + */ + ErrorAnalysisAnnotation.prototype.attributedItems = $util.emptyArray; + + /** + * ErrorAnalysisAnnotation queryType. + * @member {google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType} queryType + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + * @instance + */ + ErrorAnalysisAnnotation.prototype.queryType = 0; + + /** + * ErrorAnalysisAnnotation outlierScore. + * @member {number} outlierScore + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + * @instance + */ + ErrorAnalysisAnnotation.prototype.outlierScore = 0; + + /** + * ErrorAnalysisAnnotation outlierThreshold. + * @member {number} outlierThreshold + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + * @instance + */ + ErrorAnalysisAnnotation.prototype.outlierThreshold = 0; + + /** + * Creates a new ErrorAnalysisAnnotation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + * @static + * @param {google.cloud.aiplatform.v1.IErrorAnalysisAnnotation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ErrorAnalysisAnnotation} ErrorAnalysisAnnotation instance + */ + ErrorAnalysisAnnotation.create = function create(properties) { + return new ErrorAnalysisAnnotation(properties); + }; + + /** + * Encodes the specified ErrorAnalysisAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + * @static + * @param {google.cloud.aiplatform.v1.IErrorAnalysisAnnotation} message ErrorAnalysisAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ErrorAnalysisAnnotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributedItems != null && message.attributedItems.length) + for (var i = 0; i < message.attributedItems.length; ++i) + $root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem.encode(message.attributedItems[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.queryType != null && Object.hasOwnProperty.call(message, "queryType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.queryType); + if (message.outlierScore != null && Object.hasOwnProperty.call(message, "outlierScore")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.outlierScore); + if (message.outlierThreshold != null && Object.hasOwnProperty.call(message, "outlierThreshold")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.outlierThreshold); + return writer; + }; + + /** + * Encodes the specified ErrorAnalysisAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + * @static + * @param {google.cloud.aiplatform.v1.IErrorAnalysisAnnotation} message ErrorAnalysisAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ErrorAnalysisAnnotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ErrorAnalysisAnnotation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + * @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.ErrorAnalysisAnnotation} ErrorAnalysisAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ErrorAnalysisAnnotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.attributedItems && message.attributedItems.length)) + message.attributedItems = []; + message.attributedItems.push($root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem.decode(reader, reader.uint32())); + break; + } + case 2: { + message.queryType = reader.int32(); + break; + } + case 3: { + message.outlierScore = reader.double(); + break; + } + case 4: { + message.outlierThreshold = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ErrorAnalysisAnnotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ErrorAnalysisAnnotation} ErrorAnalysisAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ErrorAnalysisAnnotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ErrorAnalysisAnnotation message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ErrorAnalysisAnnotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributedItems != null && message.hasOwnProperty("attributedItems")) { + if (!Array.isArray(message.attributedItems)) + return "attributedItems: array expected"; + for (var i = 0; i < message.attributedItems.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem.verify(message.attributedItems[i]); + if (error) + return "attributedItems." + error; + } + } + if (message.queryType != null && message.hasOwnProperty("queryType")) + switch (message.queryType) { + default: + return "queryType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.outlierScore != null && message.hasOwnProperty("outlierScore")) + if (typeof message.outlierScore !== "number") + return "outlierScore: number expected"; + if (message.outlierThreshold != null && message.hasOwnProperty("outlierThreshold")) + if (typeof message.outlierThreshold !== "number") + return "outlierThreshold: number expected"; + return null; + }; + + /** + * Creates an ErrorAnalysisAnnotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ErrorAnalysisAnnotation} ErrorAnalysisAnnotation + */ + ErrorAnalysisAnnotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation) + return object; + var message = new $root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation(); + if (object.attributedItems) { + if (!Array.isArray(object.attributedItems)) + throw TypeError(".google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.attributedItems: array expected"); + message.attributedItems = []; + for (var i = 0; i < object.attributedItems.length; ++i) { + if (typeof object.attributedItems[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.attributedItems: object expected"); + message.attributedItems[i] = $root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem.fromObject(object.attributedItems[i]); + } + } + switch (object.queryType) { + default: + if (typeof object.queryType === "number") { + message.queryType = object.queryType; + break; + } + break; + case "QUERY_TYPE_UNSPECIFIED": + case 0: + message.queryType = 0; + break; + case "ALL_SIMILAR": + case 1: + message.queryType = 1; + break; + case "SAME_CLASS_SIMILAR": + case 2: + message.queryType = 2; + break; + case "SAME_CLASS_DISSIMILAR": + case 3: + message.queryType = 3; + break; + } + if (object.outlierScore != null) + message.outlierScore = Number(object.outlierScore); + if (object.outlierThreshold != null) + message.outlierThreshold = Number(object.outlierThreshold); + return message; + }; + + /** + * Creates a plain object from an ErrorAnalysisAnnotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + * @static + * @param {google.cloud.aiplatform.v1.ErrorAnalysisAnnotation} message ErrorAnalysisAnnotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ErrorAnalysisAnnotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.attributedItems = []; + if (options.defaults) { + object.queryType = options.enums === String ? "QUERY_TYPE_UNSPECIFIED" : 0; + object.outlierScore = 0; + object.outlierThreshold = 0; + } + if (message.attributedItems && message.attributedItems.length) { + object.attributedItems = []; + for (var j = 0; j < message.attributedItems.length; ++j) + object.attributedItems[j] = $root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem.toObject(message.attributedItems[j], options); + } + if (message.queryType != null && message.hasOwnProperty("queryType")) + object.queryType = options.enums === String ? $root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType[message.queryType] === undefined ? message.queryType : $root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType[message.queryType] : message.queryType; + if (message.outlierScore != null && message.hasOwnProperty("outlierScore")) + object.outlierScore = options.json && !isFinite(message.outlierScore) ? String(message.outlierScore) : message.outlierScore; + if (message.outlierThreshold != null && message.hasOwnProperty("outlierThreshold")) + object.outlierThreshold = options.json && !isFinite(message.outlierThreshold) ? String(message.outlierThreshold) : message.outlierThreshold; + return object; + }; + + /** + * Converts this ErrorAnalysisAnnotation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + * @instance + * @returns {Object.} JSON object + */ + ErrorAnalysisAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ErrorAnalysisAnnotation + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ErrorAnalysisAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ErrorAnalysisAnnotation"; + }; + + ErrorAnalysisAnnotation.AttributedItem = (function() { + + /** + * Properties of an AttributedItem. + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + * @interface IAttributedItem + * @property {string|null} [annotationResourceName] AttributedItem annotationResourceName + * @property {number|null} [distance] AttributedItem distance + */ + + /** + * Constructs a new AttributedItem. + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + * @classdesc Represents an AttributedItem. + * @implements IAttributedItem + * @constructor + * @param {google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem=} [properties] Properties to set + */ + function AttributedItem(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]]; + } + + /** + * AttributedItem annotationResourceName. + * @member {string} annotationResourceName + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem + * @instance + */ + AttributedItem.prototype.annotationResourceName = ""; + + /** + * AttributedItem distance. + * @member {number} distance + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem + * @instance + */ + AttributedItem.prototype.distance = 0; + + /** + * Creates a new AttributedItem instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem + * @static + * @param {google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem} AttributedItem instance + */ + AttributedItem.create = function create(properties) { + return new AttributedItem(properties); + }; + + /** + * Encodes the specified AttributedItem message. Does not implicitly {@link google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem + * @static + * @param {google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem} message AttributedItem message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AttributedItem.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotationResourceName != null && Object.hasOwnProperty.call(message, "annotationResourceName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotationResourceName); + if (message.distance != null && Object.hasOwnProperty.call(message, "distance")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.distance); + return writer; + }; + + /** + * Encodes the specified AttributedItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem + * @static + * @param {google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem} message AttributedItem message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AttributedItem.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AttributedItem message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem + * @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.ErrorAnalysisAnnotation.AttributedItem} AttributedItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AttributedItem.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.annotationResourceName = reader.string(); + break; + } + case 2: { + message.distance = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AttributedItem message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem} AttributedItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AttributedItem.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AttributedItem message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AttributedItem.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotationResourceName != null && message.hasOwnProperty("annotationResourceName")) + if (!$util.isString(message.annotationResourceName)) + return "annotationResourceName: string expected"; + if (message.distance != null && message.hasOwnProperty("distance")) + if (typeof message.distance !== "number") + return "distance: number expected"; + return null; + }; + + /** + * Creates an AttributedItem message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem} AttributedItem + */ + AttributedItem.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem) + return object; + var message = new $root.google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem(); + if (object.annotationResourceName != null) + message.annotationResourceName = String(object.annotationResourceName); + if (object.distance != null) + message.distance = Number(object.distance); + return message; + }; + + /** + * Creates a plain object from an AttributedItem message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem + * @static + * @param {google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem} message AttributedItem + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AttributedItem.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.annotationResourceName = ""; + object.distance = 0; + } + if (message.annotationResourceName != null && message.hasOwnProperty("annotationResourceName")) + object.annotationResourceName = message.annotationResourceName; + if (message.distance != null && message.hasOwnProperty("distance")) + object.distance = options.json && !isFinite(message.distance) ? String(message.distance) : message.distance; + return object; + }; + + /** + * Converts this AttributedItem to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem + * @instance + * @returns {Object.} JSON object + */ + AttributedItem.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AttributedItem + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AttributedItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem"; + }; + + return AttributedItem; + })(); + + /** + * QueryType enum. + * @name google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType + * @enum {number} + * @property {number} QUERY_TYPE_UNSPECIFIED=0 QUERY_TYPE_UNSPECIFIED value + * @property {number} ALL_SIMILAR=1 ALL_SIMILAR value + * @property {number} SAME_CLASS_SIMILAR=2 SAME_CLASS_SIMILAR value + * @property {number} SAME_CLASS_DISSIMILAR=3 SAME_CLASS_DISSIMILAR value + */ + ErrorAnalysisAnnotation.QueryType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "QUERY_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ALL_SIMILAR"] = 1; + values[valuesById[2] = "SAME_CLASS_SIMILAR"] = 2; + values[valuesById[3] = "SAME_CLASS_DISSIMILAR"] = 3; + return values; + })(); + + return ErrorAnalysisAnnotation; + })(); + v1.Event = (function() { /** @@ -42071,6 +43676,7 @@ * @interface IScaling * @property {number|null} [minNodeCount] Scaling minNodeCount * @property {number|null} [maxNodeCount] Scaling maxNodeCount + * @property {number|null} [cpuUtilizationTarget] Scaling cpuUtilizationTarget */ /** @@ -42104,6 +43710,14 @@ */ Scaling.prototype.maxNodeCount = 0; + /** + * Scaling cpuUtilizationTarget. + * @member {number} cpuUtilizationTarget + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @instance + */ + Scaling.prototype.cpuUtilizationTarget = 0; + /** * Creates a new Scaling instance using the specified properties. * @function create @@ -42132,6 +43746,8 @@ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.minNodeCount); if (message.maxNodeCount != null && Object.hasOwnProperty.call(message, "maxNodeCount")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxNodeCount); + if (message.cpuUtilizationTarget != null && Object.hasOwnProperty.call(message, "cpuUtilizationTarget")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.cpuUtilizationTarget); return writer; }; @@ -42174,6 +43790,10 @@ message.maxNodeCount = reader.int32(); break; } + case 3: { + message.cpuUtilizationTarget = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -42215,6 +43835,9 @@ if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) if (!$util.isInteger(message.maxNodeCount)) return "maxNodeCount: integer expected"; + if (message.cpuUtilizationTarget != null && message.hasOwnProperty("cpuUtilizationTarget")) + if (!$util.isInteger(message.cpuUtilizationTarget)) + return "cpuUtilizationTarget: integer expected"; return null; }; @@ -42234,6 +43857,8 @@ message.minNodeCount = object.minNodeCount | 0; if (object.maxNodeCount != null) message.maxNodeCount = object.maxNodeCount | 0; + if (object.cpuUtilizationTarget != null) + message.cpuUtilizationTarget = object.cpuUtilizationTarget | 0; return message; }; @@ -42253,11 +43878,14 @@ if (options.defaults) { object.minNodeCount = 0; object.maxNodeCount = 0; + object.cpuUtilizationTarget = 0; } if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) object.minNodeCount = message.minNodeCount; if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) object.maxNodeCount = message.maxNodeCount; + if (message.cpuUtilizationTarget != null && message.hasOwnProperty("cpuUtilizationTarget")) + object.cpuUtilizationTarget = message.cpuUtilizationTarget; return object; }; @@ -47383,6 +49011,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteFeatureValues}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef DeleteFeatureValuesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteFeatureValues. + * @function deleteFeatureValues + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest} request DeleteFeatureValuesRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureValuesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.deleteFeatureValues = function deleteFeatureValues(request, callback) { + return this.rpcCall(deleteFeatureValues, $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteFeatureValues" }); + + /** + * Calls DeleteFeatureValues. + * @function deleteFeatureValues + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest} request DeleteFeatureValuesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|searchFeatures}. * @memberof google.cloud.aiplatform.v1.FeaturestoreService @@ -57859,6 +59520,214 @@ return BatchReadFeatureValuesOperationMetadata; })(); + v1.DeleteFeatureValuesOperationMetadata = (function() { + + /** + * Properties of a DeleteFeatureValuesOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeleteFeatureValuesOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] DeleteFeatureValuesOperationMetadata genericMetadata + */ + + /** + * Constructs a new DeleteFeatureValuesOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeleteFeatureValuesOperationMetadata. + * @implements IDeleteFeatureValuesOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata=} [properties] Properties to set + */ + function DeleteFeatureValuesOperationMetadata(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]]; + } + + /** + * DeleteFeatureValuesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @instance + */ + DeleteFeatureValuesOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new DeleteFeatureValuesOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata} DeleteFeatureValuesOperationMetadata instance + */ + DeleteFeatureValuesOperationMetadata.create = function create(properties) { + return new DeleteFeatureValuesOperationMetadata(properties); + }; + + /** + * Encodes the specified DeleteFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata} message DeleteFeatureValuesOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureValuesOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DeleteFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata} message DeleteFeatureValuesOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @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.DeleteFeatureValuesOperationMetadata} DeleteFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureValuesOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata} DeleteFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteFeatureValuesOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteFeatureValuesOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; + + /** + * Creates a DeleteFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata} DeleteFeatureValuesOperationMetadata + */ + DeleteFeatureValuesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; + + /** + * Creates a plain object from a DeleteFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata} message DeleteFeatureValuesOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteFeatureValuesOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; + + /** + * Converts this DeleteFeatureValuesOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + DeleteFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteFeatureValuesOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteFeatureValuesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata"; + }; + + return DeleteFeatureValuesOperationMetadata; + })(); + v1.CreateEntityTypeOperationMetadata = (function() { /** @@ -58483,6 +60352,1820 @@ return BatchCreateFeaturesOperationMetadata; })(); + v1.DeleteFeatureValuesRequest = (function() { + + /** + * Properties of a DeleteFeatureValuesRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeleteFeatureValuesRequest + * @property {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity|null} [selectEntity] DeleteFeatureValuesRequest selectEntity + * @property {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null} [selectTimeRangeAndFeature] DeleteFeatureValuesRequest selectTimeRangeAndFeature + * @property {string|null} [entityType] DeleteFeatureValuesRequest entityType + */ + + /** + * Constructs a new DeleteFeatureValuesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeleteFeatureValuesRequest. + * @implements IDeleteFeatureValuesRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest=} [properties] Properties to set + */ + function DeleteFeatureValuesRequest(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]]; + } + + /** + * DeleteFeatureValuesRequest selectEntity. + * @member {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity|null|undefined} selectEntity + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @instance + */ + DeleteFeatureValuesRequest.prototype.selectEntity = null; + + /** + * DeleteFeatureValuesRequest selectTimeRangeAndFeature. + * @member {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null|undefined} selectTimeRangeAndFeature + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @instance + */ + DeleteFeatureValuesRequest.prototype.selectTimeRangeAndFeature = null; + + /** + * DeleteFeatureValuesRequest entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @instance + */ + DeleteFeatureValuesRequest.prototype.entityType = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DeleteFeatureValuesRequest DeleteOption. + * @member {"selectEntity"|"selectTimeRangeAndFeature"|undefined} DeleteOption + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @instance + */ + Object.defineProperty(DeleteFeatureValuesRequest.prototype, "DeleteOption", { + get: $util.oneOfGetter($oneOfFields = ["selectEntity", "selectTimeRangeAndFeature"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteFeatureValuesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest} DeleteFeatureValuesRequest instance + */ + DeleteFeatureValuesRequest.create = function create(properties) { + return new DeleteFeatureValuesRequest(properties); + }; + + /** + * Encodes the specified DeleteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest} message DeleteFeatureValuesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureValuesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); + if (message.selectEntity != null && Object.hasOwnProperty.call(message, "selectEntity")) + $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.encode(message.selectEntity, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.selectTimeRangeAndFeature != null && Object.hasOwnProperty.call(message, "selectTimeRangeAndFeature")) + $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.encode(message.selectTimeRangeAndFeature, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DeleteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest} message DeleteFeatureValuesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @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.DeleteFeatureValuesRequest} DeleteFeatureValuesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureValuesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.decode(reader, reader.uint32()); + break; + } + case 3: { + message.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.decode(reader, reader.uint32()); + break; + } + case 1: { + message.entityType = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest} DeleteFeatureValuesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteFeatureValuesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteFeatureValuesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.selectEntity != null && message.hasOwnProperty("selectEntity")) { + properties.DeleteOption = 1; + { + var error = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.verify(message.selectEntity); + if (error) + return "selectEntity." + error; + } + } + if (message.selectTimeRangeAndFeature != null && message.hasOwnProperty("selectTimeRangeAndFeature")) { + if (properties.DeleteOption === 1) + return "DeleteOption: multiple values"; + properties.DeleteOption = 1; + { + var error = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify(message.selectTimeRangeAndFeature); + if (error) + return "selectTimeRangeAndFeature." + error; + } + } + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + return null; + }; + + /** + * Creates a DeleteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest} DeleteFeatureValuesRequest + */ + DeleteFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest(); + if (object.selectEntity != null) { + if (typeof object.selectEntity !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.selectEntity: object expected"); + message.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.fromObject(object.selectEntity); + } + if (object.selectTimeRangeAndFeature != null) { + if (typeof object.selectTimeRangeAndFeature !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.selectTimeRangeAndFeature: object expected"); + message.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.fromObject(object.selectTimeRangeAndFeature); + } + if (object.entityType != null) + message.entityType = String(object.entityType); + return message; + }; + + /** + * Creates a plain object from a DeleteFeatureValuesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest} message DeleteFeatureValuesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteFeatureValuesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.entityType = ""; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.selectEntity != null && message.hasOwnProperty("selectEntity")) { + object.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.toObject(message.selectEntity, options); + if (options.oneofs) + object.DeleteOption = "selectEntity"; + } + if (message.selectTimeRangeAndFeature != null && message.hasOwnProperty("selectTimeRangeAndFeature")) { + object.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.toObject(message.selectTimeRangeAndFeature, options); + if (options.oneofs) + object.DeleteOption = "selectTimeRangeAndFeature"; + } + return object; + }; + + /** + * Converts this DeleteFeatureValuesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteFeatureValuesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteFeatureValuesRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteFeatureValuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesRequest"; + }; + + DeleteFeatureValuesRequest.SelectEntity = (function() { + + /** + * Properties of a SelectEntity. + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @interface ISelectEntity + * @property {google.cloud.aiplatform.v1.IEntityIdSelector|null} [entityIdSelector] SelectEntity entityIdSelector + */ + + /** + * Constructs a new SelectEntity. + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @classdesc Represents a SelectEntity. + * @implements ISelectEntity + * @constructor + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity=} [properties] Properties to set + */ + function SelectEntity(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]]; + } + + /** + * SelectEntity entityIdSelector. + * @member {google.cloud.aiplatform.v1.IEntityIdSelector|null|undefined} entityIdSelector + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @instance + */ + SelectEntity.prototype.entityIdSelector = null; + + /** + * Creates a new SelectEntity instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity} SelectEntity instance + */ + SelectEntity.create = function create(properties) { + return new SelectEntity(properties); + }; + + /** + * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity} message SelectEntity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectEntity.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entityIdSelector != null && Object.hasOwnProperty.call(message, "entityIdSelector")) + $root.google.cloud.aiplatform.v1.EntityIdSelector.encode(message.entityIdSelector, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity} message SelectEntity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectEntity.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SelectEntity message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @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.DeleteFeatureValuesRequest.SelectEntity} SelectEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectEntity.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.entityIdSelector = $root.google.cloud.aiplatform.v1.EntityIdSelector.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SelectEntity message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity} SelectEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectEntity.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SelectEntity message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SelectEntity.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entityIdSelector != null && message.hasOwnProperty("entityIdSelector")) { + var error = $root.google.cloud.aiplatform.v1.EntityIdSelector.verify(message.entityIdSelector); + if (error) + return "entityIdSelector." + error; + } + return null; + }; + + /** + * Creates a SelectEntity message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity} SelectEntity + */ + SelectEntity.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity(); + if (object.entityIdSelector != null) { + if (typeof object.entityIdSelector !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.entityIdSelector: object expected"); + message.entityIdSelector = $root.google.cloud.aiplatform.v1.EntityIdSelector.fromObject(object.entityIdSelector); + } + return message; + }; + + /** + * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity} message SelectEntity + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SelectEntity.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.entityIdSelector = null; + if (message.entityIdSelector != null && message.hasOwnProperty("entityIdSelector")) + object.entityIdSelector = $root.google.cloud.aiplatform.v1.EntityIdSelector.toObject(message.entityIdSelector, options); + return object; + }; + + /** + * Converts this SelectEntity to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @instance + * @returns {Object.} JSON object + */ + SelectEntity.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SelectEntity + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SelectEntity.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity"; + }; + + return SelectEntity; + })(); + + DeleteFeatureValuesRequest.SelectTimeRangeAndFeature = (function() { + + /** + * Properties of a SelectTimeRangeAndFeature. + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @interface ISelectTimeRangeAndFeature + * @property {google.type.IInterval|null} [timeRange] SelectTimeRangeAndFeature timeRange + * @property {google.cloud.aiplatform.v1.IFeatureSelector|null} [featureSelector] SelectTimeRangeAndFeature featureSelector + * @property {boolean|null} [skipOnlineStorageDelete] SelectTimeRangeAndFeature skipOnlineStorageDelete + */ + + /** + * Constructs a new SelectTimeRangeAndFeature. + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @classdesc Represents a SelectTimeRangeAndFeature. + * @implements ISelectTimeRangeAndFeature + * @constructor + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature=} [properties] Properties to set + */ + function SelectTimeRangeAndFeature(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]]; + } + + /** + * SelectTimeRangeAndFeature timeRange. + * @member {google.type.IInterval|null|undefined} timeRange + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.timeRange = null; + + /** + * SelectTimeRangeAndFeature featureSelector. + * @member {google.cloud.aiplatform.v1.IFeatureSelector|null|undefined} featureSelector + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.featureSelector = null; + + /** + * SelectTimeRangeAndFeature skipOnlineStorageDelete. + * @member {boolean} skipOnlineStorageDelete + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.skipOnlineStorageDelete = false; + + /** + * Creates a new SelectTimeRangeAndFeature instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature instance + */ + SelectTimeRangeAndFeature.create = function create(properties) { + return new SelectTimeRangeAndFeature(properties); + }; + + /** + * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature} message SelectTimeRangeAndFeature message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectTimeRangeAndFeature.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timeRange != null && Object.hasOwnProperty.call(message, "timeRange")) + $root.google.type.Interval.encode(message.timeRange, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) + $root.google.cloud.aiplatform.v1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.skipOnlineStorageDelete != null && Object.hasOwnProperty.call(message, "skipOnlineStorageDelete")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.skipOnlineStorageDelete); + return writer; + }; + + /** + * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature} message SelectTimeRangeAndFeature message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectTimeRangeAndFeature.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @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.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectTimeRangeAndFeature.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.timeRange = $root.google.type.Interval.decode(reader, reader.uint32()); + break; + } + case 2: { + message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.decode(reader, reader.uint32()); + break; + } + case 3: { + message.skipOnlineStorageDelete = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectTimeRangeAndFeature.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SelectTimeRangeAndFeature message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SelectTimeRangeAndFeature.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.timeRange != null && message.hasOwnProperty("timeRange")) { + var error = $root.google.type.Interval.verify(message.timeRange); + if (error) + return "timeRange." + error; + } + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { + var error = $root.google.cloud.aiplatform.v1.FeatureSelector.verify(message.featureSelector); + if (error) + return "featureSelector." + error; + } + if (message.skipOnlineStorageDelete != null && message.hasOwnProperty("skipOnlineStorageDelete")) + if (typeof message.skipOnlineStorageDelete !== "boolean") + return "skipOnlineStorageDelete: boolean expected"; + return null; + }; + + /** + * Creates a SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + */ + SelectTimeRangeAndFeature.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature(); + if (object.timeRange != null) { + if (typeof object.timeRange !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.timeRange: object expected"); + message.timeRange = $root.google.type.Interval.fromObject(object.timeRange); + } + if (object.featureSelector != null) { + if (typeof object.featureSelector !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.featureSelector: object expected"); + message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.fromObject(object.featureSelector); + } + if (object.skipOnlineStorageDelete != null) + message.skipOnlineStorageDelete = Boolean(object.skipOnlineStorageDelete); + return message; + }; + + /** + * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} message SelectTimeRangeAndFeature + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SelectTimeRangeAndFeature.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.timeRange = null; + object.featureSelector = null; + object.skipOnlineStorageDelete = false; + } + if (message.timeRange != null && message.hasOwnProperty("timeRange")) + object.timeRange = $root.google.type.Interval.toObject(message.timeRange, options); + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) + object.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.toObject(message.featureSelector, options); + if (message.skipOnlineStorageDelete != null && message.hasOwnProperty("skipOnlineStorageDelete")) + object.skipOnlineStorageDelete = message.skipOnlineStorageDelete; + return object; + }; + + /** + * Converts this SelectTimeRangeAndFeature to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @instance + * @returns {Object.} JSON object + */ + SelectTimeRangeAndFeature.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SelectTimeRangeAndFeature + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SelectTimeRangeAndFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature"; + }; + + return SelectTimeRangeAndFeature; + })(); + + return DeleteFeatureValuesRequest; + })(); + + v1.DeleteFeatureValuesResponse = (function() { + + /** + * Properties of a DeleteFeatureValuesResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeleteFeatureValuesResponse + * @property {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity|null} [selectEntity] DeleteFeatureValuesResponse selectEntity + * @property {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature|null} [selectTimeRangeAndFeature] DeleteFeatureValuesResponse selectTimeRangeAndFeature + */ + + /** + * Constructs a new DeleteFeatureValuesResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeleteFeatureValuesResponse. + * @implements IDeleteFeatureValuesResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse=} [properties] Properties to set + */ + function DeleteFeatureValuesResponse(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]]; + } + + /** + * DeleteFeatureValuesResponse selectEntity. + * @member {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity|null|undefined} selectEntity + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @instance + */ + DeleteFeatureValuesResponse.prototype.selectEntity = null; + + /** + * DeleteFeatureValuesResponse selectTimeRangeAndFeature. + * @member {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature|null|undefined} selectTimeRangeAndFeature + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @instance + */ + DeleteFeatureValuesResponse.prototype.selectTimeRangeAndFeature = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DeleteFeatureValuesResponse response. + * @member {"selectEntity"|"selectTimeRangeAndFeature"|undefined} response + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @instance + */ + Object.defineProperty(DeleteFeatureValuesResponse.prototype, "response", { + get: $util.oneOfGetter($oneOfFields = ["selectEntity", "selectTimeRangeAndFeature"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteFeatureValuesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse} DeleteFeatureValuesResponse instance + */ + DeleteFeatureValuesResponse.create = function create(properties) { + return new DeleteFeatureValuesResponse(properties); + }; + + /** + * Encodes the specified DeleteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse} message DeleteFeatureValuesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureValuesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selectEntity != null && Object.hasOwnProperty.call(message, "selectEntity")) + $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.encode(message.selectEntity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.selectTimeRangeAndFeature != null && Object.hasOwnProperty.call(message, "selectTimeRangeAndFeature")) + $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.encode(message.selectTimeRangeAndFeature, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DeleteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse} message DeleteFeatureValuesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @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.DeleteFeatureValuesResponse} DeleteFeatureValuesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureValuesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.decode(reader, reader.uint32()); + break; + } + case 2: { + message.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse} DeleteFeatureValuesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteFeatureValuesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteFeatureValuesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.selectEntity != null && message.hasOwnProperty("selectEntity")) { + properties.response = 1; + { + var error = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.verify(message.selectEntity); + if (error) + return "selectEntity." + error; + } + } + if (message.selectTimeRangeAndFeature != null && message.hasOwnProperty("selectTimeRangeAndFeature")) { + if (properties.response === 1) + return "response: multiple values"; + properties.response = 1; + { + var error = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify(message.selectTimeRangeAndFeature); + if (error) + return "selectTimeRangeAndFeature." + error; + } + } + return null; + }; + + /** + * Creates a DeleteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse} DeleteFeatureValuesResponse + */ + DeleteFeatureValuesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse(); + if (object.selectEntity != null) { + if (typeof object.selectEntity !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.selectEntity: object expected"); + message.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.fromObject(object.selectEntity); + } + if (object.selectTimeRangeAndFeature != null) { + if (typeof object.selectTimeRangeAndFeature !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.selectTimeRangeAndFeature: object expected"); + message.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.fromObject(object.selectTimeRangeAndFeature); + } + return message; + }; + + /** + * Creates a plain object from a DeleteFeatureValuesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse} message DeleteFeatureValuesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteFeatureValuesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.selectEntity != null && message.hasOwnProperty("selectEntity")) { + object.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.toObject(message.selectEntity, options); + if (options.oneofs) + object.response = "selectEntity"; + } + if (message.selectTimeRangeAndFeature != null && message.hasOwnProperty("selectTimeRangeAndFeature")) { + object.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.toObject(message.selectTimeRangeAndFeature, options); + if (options.oneofs) + object.response = "selectTimeRangeAndFeature"; + } + return object; + }; + + /** + * Converts this DeleteFeatureValuesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @instance + * @returns {Object.} JSON object + */ + DeleteFeatureValuesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteFeatureValuesResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteFeatureValuesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesResponse"; + }; + + DeleteFeatureValuesResponse.SelectEntity = (function() { + + /** + * Properties of a SelectEntity. + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @interface ISelectEntity + * @property {number|Long|null} [offlineStorageDeletedEntityRowCount] SelectEntity offlineStorageDeletedEntityRowCount + * @property {number|Long|null} [onlineStorageDeletedEntityCount] SelectEntity onlineStorageDeletedEntityCount + */ + + /** + * Constructs a new SelectEntity. + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @classdesc Represents a SelectEntity. + * @implements ISelectEntity + * @constructor + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity=} [properties] Properties to set + */ + function SelectEntity(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]]; + } + + /** + * SelectEntity offlineStorageDeletedEntityRowCount. + * @member {number|Long} offlineStorageDeletedEntityRowCount + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @instance + */ + SelectEntity.prototype.offlineStorageDeletedEntityRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SelectEntity onlineStorageDeletedEntityCount. + * @member {number|Long} onlineStorageDeletedEntityCount + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @instance + */ + SelectEntity.prototype.onlineStorageDeletedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new SelectEntity instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity} SelectEntity instance + */ + SelectEntity.create = function create(properties) { + return new SelectEntity(properties); + }; + + /** + * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity} message SelectEntity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectEntity.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.offlineStorageDeletedEntityRowCount != null && Object.hasOwnProperty.call(message, "offlineStorageDeletedEntityRowCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.offlineStorageDeletedEntityRowCount); + if (message.onlineStorageDeletedEntityCount != null && Object.hasOwnProperty.call(message, "onlineStorageDeletedEntityCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.onlineStorageDeletedEntityCount); + return writer; + }; + + /** + * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity} message SelectEntity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectEntity.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SelectEntity message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @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.DeleteFeatureValuesResponse.SelectEntity} SelectEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectEntity.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.offlineStorageDeletedEntityRowCount = reader.int64(); + break; + } + case 2: { + message.onlineStorageDeletedEntityCount = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SelectEntity message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity} SelectEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectEntity.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SelectEntity message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SelectEntity.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.offlineStorageDeletedEntityRowCount != null && message.hasOwnProperty("offlineStorageDeletedEntityRowCount")) + if (!$util.isInteger(message.offlineStorageDeletedEntityRowCount) && !(message.offlineStorageDeletedEntityRowCount && $util.isInteger(message.offlineStorageDeletedEntityRowCount.low) && $util.isInteger(message.offlineStorageDeletedEntityRowCount.high))) + return "offlineStorageDeletedEntityRowCount: integer|Long expected"; + if (message.onlineStorageDeletedEntityCount != null && message.hasOwnProperty("onlineStorageDeletedEntityCount")) + if (!$util.isInteger(message.onlineStorageDeletedEntityCount) && !(message.onlineStorageDeletedEntityCount && $util.isInteger(message.onlineStorageDeletedEntityCount.low) && $util.isInteger(message.onlineStorageDeletedEntityCount.high))) + return "onlineStorageDeletedEntityCount: integer|Long expected"; + return null; + }; + + /** + * Creates a SelectEntity message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity} SelectEntity + */ + SelectEntity.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity(); + if (object.offlineStorageDeletedEntityRowCount != null) + if ($util.Long) + (message.offlineStorageDeletedEntityRowCount = $util.Long.fromValue(object.offlineStorageDeletedEntityRowCount)).unsigned = false; + else if (typeof object.offlineStorageDeletedEntityRowCount === "string") + message.offlineStorageDeletedEntityRowCount = parseInt(object.offlineStorageDeletedEntityRowCount, 10); + else if (typeof object.offlineStorageDeletedEntityRowCount === "number") + message.offlineStorageDeletedEntityRowCount = object.offlineStorageDeletedEntityRowCount; + else if (typeof object.offlineStorageDeletedEntityRowCount === "object") + message.offlineStorageDeletedEntityRowCount = new $util.LongBits(object.offlineStorageDeletedEntityRowCount.low >>> 0, object.offlineStorageDeletedEntityRowCount.high >>> 0).toNumber(); + if (object.onlineStorageDeletedEntityCount != null) + if ($util.Long) + (message.onlineStorageDeletedEntityCount = $util.Long.fromValue(object.onlineStorageDeletedEntityCount)).unsigned = false; + else if (typeof object.onlineStorageDeletedEntityCount === "string") + message.onlineStorageDeletedEntityCount = parseInt(object.onlineStorageDeletedEntityCount, 10); + else if (typeof object.onlineStorageDeletedEntityCount === "number") + message.onlineStorageDeletedEntityCount = object.onlineStorageDeletedEntityCount; + else if (typeof object.onlineStorageDeletedEntityCount === "object") + message.onlineStorageDeletedEntityCount = new $util.LongBits(object.onlineStorageDeletedEntityCount.low >>> 0, object.onlineStorageDeletedEntityCount.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity} message SelectEntity + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SelectEntity.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.offlineStorageDeletedEntityRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.offlineStorageDeletedEntityRowCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.onlineStorageDeletedEntityCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.onlineStorageDeletedEntityCount = options.longs === String ? "0" : 0; + } + if (message.offlineStorageDeletedEntityRowCount != null && message.hasOwnProperty("offlineStorageDeletedEntityRowCount")) + if (typeof message.offlineStorageDeletedEntityRowCount === "number") + object.offlineStorageDeletedEntityRowCount = options.longs === String ? String(message.offlineStorageDeletedEntityRowCount) : message.offlineStorageDeletedEntityRowCount; + else + object.offlineStorageDeletedEntityRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.offlineStorageDeletedEntityRowCount) : options.longs === Number ? new $util.LongBits(message.offlineStorageDeletedEntityRowCount.low >>> 0, message.offlineStorageDeletedEntityRowCount.high >>> 0).toNumber() : message.offlineStorageDeletedEntityRowCount; + if (message.onlineStorageDeletedEntityCount != null && message.hasOwnProperty("onlineStorageDeletedEntityCount")) + if (typeof message.onlineStorageDeletedEntityCount === "number") + object.onlineStorageDeletedEntityCount = options.longs === String ? String(message.onlineStorageDeletedEntityCount) : message.onlineStorageDeletedEntityCount; + else + object.onlineStorageDeletedEntityCount = options.longs === String ? $util.Long.prototype.toString.call(message.onlineStorageDeletedEntityCount) : options.longs === Number ? new $util.LongBits(message.onlineStorageDeletedEntityCount.low >>> 0, message.onlineStorageDeletedEntityCount.high >>> 0).toNumber() : message.onlineStorageDeletedEntityCount; + return object; + }; + + /** + * Converts this SelectEntity to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @instance + * @returns {Object.} JSON object + */ + SelectEntity.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SelectEntity + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SelectEntity.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity"; + }; + + return SelectEntity; + })(); + + DeleteFeatureValuesResponse.SelectTimeRangeAndFeature = (function() { + + /** + * Properties of a SelectTimeRangeAndFeature. + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @interface ISelectTimeRangeAndFeature + * @property {number|Long|null} [impactedFeatureCount] SelectTimeRangeAndFeature impactedFeatureCount + * @property {number|Long|null} [offlineStorageModifiedEntityRowCount] SelectTimeRangeAndFeature offlineStorageModifiedEntityRowCount + * @property {number|Long|null} [onlineStorageModifiedEntityCount] SelectTimeRangeAndFeature onlineStorageModifiedEntityCount + */ + + /** + * Constructs a new SelectTimeRangeAndFeature. + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @classdesc Represents a SelectTimeRangeAndFeature. + * @implements ISelectTimeRangeAndFeature + * @constructor + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature=} [properties] Properties to set + */ + function SelectTimeRangeAndFeature(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]]; + } + + /** + * SelectTimeRangeAndFeature impactedFeatureCount. + * @member {number|Long} impactedFeatureCount + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.impactedFeatureCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SelectTimeRangeAndFeature offlineStorageModifiedEntityRowCount. + * @member {number|Long} offlineStorageModifiedEntityRowCount + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.offlineStorageModifiedEntityRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SelectTimeRangeAndFeature onlineStorageModifiedEntityCount. + * @member {number|Long} onlineStorageModifiedEntityCount + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.onlineStorageModifiedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new SelectTimeRangeAndFeature instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature instance + */ + SelectTimeRangeAndFeature.create = function create(properties) { + return new SelectTimeRangeAndFeature(properties); + }; + + /** + * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature} message SelectTimeRangeAndFeature message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectTimeRangeAndFeature.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.impactedFeatureCount != null && Object.hasOwnProperty.call(message, "impactedFeatureCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.impactedFeatureCount); + if (message.offlineStorageModifiedEntityRowCount != null && Object.hasOwnProperty.call(message, "offlineStorageModifiedEntityRowCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.offlineStorageModifiedEntityRowCount); + if (message.onlineStorageModifiedEntityCount != null && Object.hasOwnProperty.call(message, "onlineStorageModifiedEntityCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.onlineStorageModifiedEntityCount); + return writer; + }; + + /** + * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature} message SelectTimeRangeAndFeature message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectTimeRangeAndFeature.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @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.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectTimeRangeAndFeature.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.impactedFeatureCount = reader.int64(); + break; + } + case 2: { + message.offlineStorageModifiedEntityRowCount = reader.int64(); + break; + } + case 3: { + message.onlineStorageModifiedEntityCount = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectTimeRangeAndFeature.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SelectTimeRangeAndFeature message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SelectTimeRangeAndFeature.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.impactedFeatureCount != null && message.hasOwnProperty("impactedFeatureCount")) + if (!$util.isInteger(message.impactedFeatureCount) && !(message.impactedFeatureCount && $util.isInteger(message.impactedFeatureCount.low) && $util.isInteger(message.impactedFeatureCount.high))) + return "impactedFeatureCount: integer|Long expected"; + if (message.offlineStorageModifiedEntityRowCount != null && message.hasOwnProperty("offlineStorageModifiedEntityRowCount")) + if (!$util.isInteger(message.offlineStorageModifiedEntityRowCount) && !(message.offlineStorageModifiedEntityRowCount && $util.isInteger(message.offlineStorageModifiedEntityRowCount.low) && $util.isInteger(message.offlineStorageModifiedEntityRowCount.high))) + return "offlineStorageModifiedEntityRowCount: integer|Long expected"; + if (message.onlineStorageModifiedEntityCount != null && message.hasOwnProperty("onlineStorageModifiedEntityCount")) + if (!$util.isInteger(message.onlineStorageModifiedEntityCount) && !(message.onlineStorageModifiedEntityCount && $util.isInteger(message.onlineStorageModifiedEntityCount.low) && $util.isInteger(message.onlineStorageModifiedEntityCount.high))) + return "onlineStorageModifiedEntityCount: integer|Long expected"; + return null; + }; + + /** + * Creates a SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + */ + SelectTimeRangeAndFeature.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature(); + if (object.impactedFeatureCount != null) + if ($util.Long) + (message.impactedFeatureCount = $util.Long.fromValue(object.impactedFeatureCount)).unsigned = false; + else if (typeof object.impactedFeatureCount === "string") + message.impactedFeatureCount = parseInt(object.impactedFeatureCount, 10); + else if (typeof object.impactedFeatureCount === "number") + message.impactedFeatureCount = object.impactedFeatureCount; + else if (typeof object.impactedFeatureCount === "object") + message.impactedFeatureCount = new $util.LongBits(object.impactedFeatureCount.low >>> 0, object.impactedFeatureCount.high >>> 0).toNumber(); + if (object.offlineStorageModifiedEntityRowCount != null) + if ($util.Long) + (message.offlineStorageModifiedEntityRowCount = $util.Long.fromValue(object.offlineStorageModifiedEntityRowCount)).unsigned = false; + else if (typeof object.offlineStorageModifiedEntityRowCount === "string") + message.offlineStorageModifiedEntityRowCount = parseInt(object.offlineStorageModifiedEntityRowCount, 10); + else if (typeof object.offlineStorageModifiedEntityRowCount === "number") + message.offlineStorageModifiedEntityRowCount = object.offlineStorageModifiedEntityRowCount; + else if (typeof object.offlineStorageModifiedEntityRowCount === "object") + message.offlineStorageModifiedEntityRowCount = new $util.LongBits(object.offlineStorageModifiedEntityRowCount.low >>> 0, object.offlineStorageModifiedEntityRowCount.high >>> 0).toNumber(); + if (object.onlineStorageModifiedEntityCount != null) + if ($util.Long) + (message.onlineStorageModifiedEntityCount = $util.Long.fromValue(object.onlineStorageModifiedEntityCount)).unsigned = false; + else if (typeof object.onlineStorageModifiedEntityCount === "string") + message.onlineStorageModifiedEntityCount = parseInt(object.onlineStorageModifiedEntityCount, 10); + else if (typeof object.onlineStorageModifiedEntityCount === "number") + message.onlineStorageModifiedEntityCount = object.onlineStorageModifiedEntityCount; + else if (typeof object.onlineStorageModifiedEntityCount === "object") + message.onlineStorageModifiedEntityCount = new $util.LongBits(object.onlineStorageModifiedEntityCount.low >>> 0, object.onlineStorageModifiedEntityCount.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} message SelectTimeRangeAndFeature + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SelectTimeRangeAndFeature.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.impactedFeatureCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.impactedFeatureCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.offlineStorageModifiedEntityRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.offlineStorageModifiedEntityRowCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.onlineStorageModifiedEntityCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.onlineStorageModifiedEntityCount = options.longs === String ? "0" : 0; + } + if (message.impactedFeatureCount != null && message.hasOwnProperty("impactedFeatureCount")) + if (typeof message.impactedFeatureCount === "number") + object.impactedFeatureCount = options.longs === String ? String(message.impactedFeatureCount) : message.impactedFeatureCount; + else + object.impactedFeatureCount = options.longs === String ? $util.Long.prototype.toString.call(message.impactedFeatureCount) : options.longs === Number ? new $util.LongBits(message.impactedFeatureCount.low >>> 0, message.impactedFeatureCount.high >>> 0).toNumber() : message.impactedFeatureCount; + if (message.offlineStorageModifiedEntityRowCount != null && message.hasOwnProperty("offlineStorageModifiedEntityRowCount")) + if (typeof message.offlineStorageModifiedEntityRowCount === "number") + object.offlineStorageModifiedEntityRowCount = options.longs === String ? String(message.offlineStorageModifiedEntityRowCount) : message.offlineStorageModifiedEntityRowCount; + else + object.offlineStorageModifiedEntityRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.offlineStorageModifiedEntityRowCount) : options.longs === Number ? new $util.LongBits(message.offlineStorageModifiedEntityRowCount.low >>> 0, message.offlineStorageModifiedEntityRowCount.high >>> 0).toNumber() : message.offlineStorageModifiedEntityRowCount; + if (message.onlineStorageModifiedEntityCount != null && message.hasOwnProperty("onlineStorageModifiedEntityCount")) + if (typeof message.onlineStorageModifiedEntityCount === "number") + object.onlineStorageModifiedEntityCount = options.longs === String ? String(message.onlineStorageModifiedEntityCount) : message.onlineStorageModifiedEntityCount; + else + object.onlineStorageModifiedEntityCount = options.longs === String ? $util.Long.prototype.toString.call(message.onlineStorageModifiedEntityCount) : options.longs === Number ? new $util.LongBits(message.onlineStorageModifiedEntityCount.low >>> 0, message.onlineStorageModifiedEntityCount.high >>> 0).toNumber() : message.onlineStorageModifiedEntityCount; + return object; + }; + + /** + * Converts this SelectTimeRangeAndFeature to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @instance + * @returns {Object.} JSON object + */ + SelectTimeRangeAndFeature.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SelectTimeRangeAndFeature + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SelectTimeRangeAndFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature"; + }; + + return SelectTimeRangeAndFeature; + })(); + + return DeleteFeatureValuesResponse; + })(); + + v1.EntityIdSelector = (function() { + + /** + * Properties of an EntityIdSelector. + * @memberof google.cloud.aiplatform.v1 + * @interface IEntityIdSelector + * @property {google.cloud.aiplatform.v1.ICsvSource|null} [csvSource] EntityIdSelector csvSource + * @property {string|null} [entityIdField] EntityIdSelector entityIdField + */ + + /** + * Constructs a new EntityIdSelector. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an EntityIdSelector. + * @implements IEntityIdSelector + * @constructor + * @param {google.cloud.aiplatform.v1.IEntityIdSelector=} [properties] Properties to set + */ + function EntityIdSelector(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]]; + } + + /** + * EntityIdSelector csvSource. + * @member {google.cloud.aiplatform.v1.ICsvSource|null|undefined} csvSource + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @instance + */ + EntityIdSelector.prototype.csvSource = null; + + /** + * EntityIdSelector entityIdField. + * @member {string} entityIdField + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @instance + */ + EntityIdSelector.prototype.entityIdField = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * EntityIdSelector EntityIdsSource. + * @member {"csvSource"|undefined} EntityIdsSource + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @instance + */ + Object.defineProperty(EntityIdSelector.prototype, "EntityIdsSource", { + get: $util.oneOfGetter($oneOfFields = ["csvSource"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new EntityIdSelector instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {google.cloud.aiplatform.v1.IEntityIdSelector=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.EntityIdSelector} EntityIdSelector instance + */ + EntityIdSelector.create = function create(properties) { + return new EntityIdSelector(properties); + }; + + /** + * Encodes the specified EntityIdSelector message. Does not implicitly {@link google.cloud.aiplatform.v1.EntityIdSelector.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {google.cloud.aiplatform.v1.IEntityIdSelector} message EntityIdSelector message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EntityIdSelector.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.csvSource != null && Object.hasOwnProperty.call(message, "csvSource")) + $root.google.cloud.aiplatform.v1.CsvSource.encode(message.csvSource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.entityIdField != null && Object.hasOwnProperty.call(message, "entityIdField")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.entityIdField); + return writer; + }; + + /** + * Encodes the specified EntityIdSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EntityIdSelector.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {google.cloud.aiplatform.v1.IEntityIdSelector} message EntityIdSelector message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EntityIdSelector.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EntityIdSelector message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @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.EntityIdSelector} EntityIdSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EntityIdSelector.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.EntityIdSelector(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.csvSource = $root.google.cloud.aiplatform.v1.CsvSource.decode(reader, reader.uint32()); + break; + } + case 5: { + message.entityIdField = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EntityIdSelector message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.EntityIdSelector} EntityIdSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EntityIdSelector.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EntityIdSelector message. + * @function verify + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EntityIdSelector.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.csvSource != null && message.hasOwnProperty("csvSource")) { + properties.EntityIdsSource = 1; + { + var error = $root.google.cloud.aiplatform.v1.CsvSource.verify(message.csvSource); + if (error) + return "csvSource." + error; + } + } + if (message.entityIdField != null && message.hasOwnProperty("entityIdField")) + if (!$util.isString(message.entityIdField)) + return "entityIdField: string expected"; + return null; + }; + + /** + * Creates an EntityIdSelector message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.EntityIdSelector} EntityIdSelector + */ + EntityIdSelector.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.EntityIdSelector) + return object; + var message = new $root.google.cloud.aiplatform.v1.EntityIdSelector(); + if (object.csvSource != null) { + if (typeof object.csvSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EntityIdSelector.csvSource: object expected"); + message.csvSource = $root.google.cloud.aiplatform.v1.CsvSource.fromObject(object.csvSource); + } + if (object.entityIdField != null) + message.entityIdField = String(object.entityIdField); + return message; + }; + + /** + * Creates a plain object from an EntityIdSelector message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {google.cloud.aiplatform.v1.EntityIdSelector} message EntityIdSelector + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EntityIdSelector.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.entityIdField = ""; + if (message.csvSource != null && message.hasOwnProperty("csvSource")) { + object.csvSource = $root.google.cloud.aiplatform.v1.CsvSource.toObject(message.csvSource, options); + if (options.oneofs) + object.EntityIdsSource = "csvSource"; + } + if (message.entityIdField != null && message.hasOwnProperty("entityIdField")) + object.entityIdField = message.entityIdField; + return object; + }; + + /** + * Converts this EntityIdSelector to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @instance + * @returns {Object.} JSON object + */ + EntityIdSelector.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EntityIdSelector + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EntityIdSelector.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.EntityIdSelector"; + }; + + return EntityIdSelector; + })(); + v1.HyperparameterTuningJob = (function() { /** @@ -117170,6 +120853,7 @@ * @property {string|null} [metricsSchemaUri] ModelEvaluationSlice metricsSchemaUri * @property {google.protobuf.IValue|null} [metrics] ModelEvaluationSlice metrics * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluationSlice createTime + * @property {google.cloud.aiplatform.v1.IModelExplanation|null} [modelExplanation] ModelEvaluationSlice modelExplanation */ /** @@ -117227,6 +120911,14 @@ */ ModelEvaluationSlice.prototype.createTime = null; + /** + * ModelEvaluationSlice modelExplanation. + * @member {google.cloud.aiplatform.v1.IModelExplanation|null|undefined} modelExplanation + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice + * @instance + */ + ModelEvaluationSlice.prototype.modelExplanation = null; + /** * Creates a new ModelEvaluationSlice instance using the specified properties. * @function create @@ -117261,6 +120953,8 @@ $root.google.protobuf.Value.encode(message.metrics, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.modelExplanation != null && Object.hasOwnProperty.call(message, "modelExplanation")) + $root.google.cloud.aiplatform.v1.ModelExplanation.encode(message.modelExplanation, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -117315,6 +121009,10 @@ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } + case 6: { + message.modelExplanation = $root.google.cloud.aiplatform.v1.ModelExplanation.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -117371,6 +121069,11 @@ if (error) return "createTime." + error; } + if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) { + var error = $root.google.cloud.aiplatform.v1.ModelExplanation.verify(message.modelExplanation); + if (error) + return "modelExplanation." + error; + } return null; }; @@ -117405,6 +121108,11 @@ throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } + if (object.modelExplanation != null) { + if (typeof object.modelExplanation !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.modelExplanation: object expected"); + message.modelExplanation = $root.google.cloud.aiplatform.v1.ModelExplanation.fromObject(object.modelExplanation); + } return message; }; @@ -117427,6 +121135,7 @@ object.metricsSchemaUri = ""; object.metrics = null; object.createTime = null; + object.modelExplanation = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -117438,6 +121147,8 @@ object.metrics = $root.google.protobuf.Value.toObject(message.metrics, options); if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) + object.modelExplanation = $root.google.cloud.aiplatform.v1.ModelExplanation.toObject(message.modelExplanation, options); return object; }; @@ -117475,6 +121186,7 @@ * @interface ISlice * @property {string|null} [dimension] Slice dimension * @property {string|null} [value] Slice value + * @property {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.ISliceSpec|null} [sliceSpec] Slice sliceSpec */ /** @@ -117508,6 +121220,14 @@ */ Slice.prototype.value = ""; + /** + * Slice sliceSpec. + * @member {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.ISliceSpec|null|undefined} sliceSpec + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @instance + */ + Slice.prototype.sliceSpec = null; + /** * Creates a new Slice instance using the specified properties. * @function create @@ -117536,6 +121256,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.dimension); if (message.value != null && Object.hasOwnProperty.call(message, "value")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.sliceSpec != null && Object.hasOwnProperty.call(message, "sliceSpec")) + $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.encode(message.sliceSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -117578,6 +121300,10 @@ message.value = reader.string(); break; } + case 3: { + message.sliceSpec = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -117619,6 +121345,11 @@ if (message.value != null && message.hasOwnProperty("value")) if (!$util.isString(message.value)) return "value: string expected"; + if (message.sliceSpec != null && message.hasOwnProperty("sliceSpec")) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.verify(message.sliceSpec); + if (error) + return "sliceSpec." + error; + } return null; }; @@ -117638,6 +121369,11 @@ message.dimension = String(object.dimension); if (object.value != null) message.value = String(object.value); + if (object.sliceSpec != null) { + if (typeof object.sliceSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.sliceSpec: object expected"); + message.sliceSpec = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.fromObject(object.sliceSpec); + } return message; }; @@ -117657,11 +121393,14 @@ if (options.defaults) { object.dimension = ""; object.value = ""; + object.sliceSpec = null; } if (message.dimension != null && message.hasOwnProperty("dimension")) object.dimension = message.dimension; if (message.value != null && message.hasOwnProperty("value")) object.value = message.value; + if (message.sliceSpec != null && message.hasOwnProperty("sliceSpec")) + object.sliceSpec = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.toObject(message.sliceSpec, options); return object; }; @@ -117691,6 +121430,1025 @@ return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice"; }; + Slice.SliceSpec = (function() { + + /** + * Properties of a SliceSpec. + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @interface ISliceSpec + * @property {Object.|null} [configs] SliceSpec configs + */ + + /** + * Constructs a new SliceSpec. + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @classdesc Represents a SliceSpec. + * @implements ISliceSpec + * @constructor + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.ISliceSpec=} [properties] Properties to set + */ + function SliceSpec(properties) { + this.configs = {}; + 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]]; + } + + /** + * SliceSpec configs. + * @member {Object.} configs + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @instance + */ + SliceSpec.prototype.configs = $util.emptyObject; + + /** + * Creates a new SliceSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.ISliceSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec} SliceSpec instance + */ + SliceSpec.create = function create(properties) { + return new SliceSpec(properties); + }; + + /** + * Encodes the specified SliceSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.ISliceSpec} message SliceSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SliceSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.configs != null && Object.hasOwnProperty.call(message, "configs")) + for (var keys = Object.keys(message.configs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.encode(message.configs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified SliceSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.ISliceSpec} message SliceSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SliceSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SliceSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @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.ModelEvaluationSlice.Slice.SliceSpec} SliceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SliceSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.configs === $util.emptyObject) + message.configs = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.configs[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SliceSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec} SliceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SliceSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SliceSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SliceSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.configs != null && message.hasOwnProperty("configs")) { + if (!$util.isObject(message.configs)) + return "configs: object expected"; + var key = Object.keys(message.configs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify(message.configs[key[i]]); + if (error) + return "configs." + error; + } + } + return null; + }; + + /** + * Creates a SliceSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec} SliceSpec + */ + SliceSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec(); + if (object.configs) { + if (typeof object.configs !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.configs: object expected"); + message.configs = {}; + for (var keys = Object.keys(object.configs), i = 0; i < keys.length; ++i) { + if (typeof object.configs[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.configs: object expected"); + message.configs[keys[i]] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.fromObject(object.configs[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from a SliceSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec} message SliceSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SliceSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.configs = {}; + var keys2; + if (message.configs && (keys2 = Object.keys(message.configs)).length) { + object.configs = {}; + for (var j = 0; j < keys2.length; ++j) + object.configs[keys2[j]] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.toObject(message.configs[keys2[j]], options); + } + return object; + }; + + /** + * Converts this SliceSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @instance + * @returns {Object.} JSON object + */ + SliceSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SliceSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SliceSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec"; + }; + + SliceSpec.SliceConfig = (function() { + + /** + * Properties of a SliceConfig. + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @interface ISliceConfig + * @property {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IValue|null} [value] SliceConfig value + * @property {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IRange|null} [range] SliceConfig range + * @property {google.protobuf.IBoolValue|null} [allValues] SliceConfig allValues + */ + + /** + * Constructs a new SliceConfig. + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @classdesc Represents a SliceConfig. + * @implements ISliceConfig + * @constructor + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig=} [properties] Properties to set + */ + function SliceConfig(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]]; + } + + /** + * SliceConfig value. + * @member {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IValue|null|undefined} value + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @instance + */ + SliceConfig.prototype.value = null; + + /** + * SliceConfig range. + * @member {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IRange|null|undefined} range + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @instance + */ + SliceConfig.prototype.range = null; + + /** + * SliceConfig allValues. + * @member {google.protobuf.IBoolValue|null|undefined} allValues + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @instance + */ + SliceConfig.prototype.allValues = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SliceConfig kind. + * @member {"value"|"range"|"allValues"|undefined} kind + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @instance + */ + Object.defineProperty(SliceConfig.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["value", "range", "allValues"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SliceConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} SliceConfig instance + */ + SliceConfig.create = function create(properties) { + return new SliceConfig(properties); + }; + + /** + * Encodes the specified SliceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig} message SliceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SliceConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.range != null && Object.hasOwnProperty.call(message, "range")) + $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range.encode(message.range, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.allValues != null && Object.hasOwnProperty.call(message, "allValues")) + $root.google.protobuf.BoolValue.encode(message.allValues, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SliceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig} message SliceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SliceConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SliceConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @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.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} SliceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SliceConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value.decode(reader, reader.uint32()); + break; + } + case 2: { + message.range = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range.decode(reader, reader.uint32()); + break; + } + case 3: { + message.allValues = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SliceConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} SliceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SliceConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SliceConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SliceConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.value != null && message.hasOwnProperty("value")) { + properties.kind = 1; + { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify(message.value); + if (error) + return "value." + error; + } + } + if (message.range != null && message.hasOwnProperty("range")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify(message.range); + if (error) + return "range." + error; + } + } + if (message.allValues != null && message.hasOwnProperty("allValues")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.protobuf.BoolValue.verify(message.allValues); + if (error) + return "allValues." + error; + } + } + return null; + }; + + /** + * Creates a SliceConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} SliceConfig + */ + SliceConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig(); + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.value: object expected"); + message.value = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value.fromObject(object.value); + } + if (object.range != null) { + if (typeof object.range !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.range: object expected"); + message.range = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range.fromObject(object.range); + } + if (object.allValues != null) { + if (typeof object.allValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.allValues: object expected"); + message.allValues = $root.google.protobuf.BoolValue.fromObject(object.allValues); + } + return message; + }; + + /** + * Creates a plain object from a SliceConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} message SliceConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SliceConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.value != null && message.hasOwnProperty("value")) { + object.value = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value.toObject(message.value, options); + if (options.oneofs) + object.kind = "value"; + } + if (message.range != null && message.hasOwnProperty("range")) { + object.range = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range.toObject(message.range, options); + if (options.oneofs) + object.kind = "range"; + } + if (message.allValues != null && message.hasOwnProperty("allValues")) { + object.allValues = $root.google.protobuf.BoolValue.toObject(message.allValues, options); + if (options.oneofs) + object.kind = "allValues"; + } + return object; + }; + + /** + * Converts this SliceConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @instance + * @returns {Object.} JSON object + */ + SliceConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SliceConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SliceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig"; + }; + + return SliceConfig; + })(); + + SliceSpec.Range = (function() { + + /** + * Properties of a Range. + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @interface IRange + * @property {number|null} [low] Range low + * @property {number|null} [high] Range high + */ + + /** + * Constructs a new Range. + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @classdesc Represents a Range. + * @implements IRange + * @constructor + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IRange=} [properties] Properties to set + */ + function Range(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]]; + } + + /** + * Range low. + * @member {number} low + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @instance + */ + Range.prototype.low = 0; + + /** + * Range high. + * @member {number} high + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @instance + */ + Range.prototype.high = 0; + + /** + * Creates a new Range instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IRange=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range} Range instance + */ + Range.create = function create(properties) { + return new Range(properties); + }; + + /** + * Encodes the specified Range message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IRange} message Range message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Range.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.low != null && Object.hasOwnProperty.call(message, "low")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.low); + if (message.high != null && Object.hasOwnProperty.call(message, "high")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.high); + return writer; + }; + + /** + * Encodes the specified Range message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IRange} message Range message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Range.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Range message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @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.ModelEvaluationSlice.Slice.SliceSpec.Range} Range + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Range.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.low = reader.float(); + break; + } + case 2: { + message.high = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Range message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range} Range + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Range.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Range message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Range.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.low != null && message.hasOwnProperty("low")) + if (typeof message.low !== "number") + return "low: number expected"; + if (message.high != null && message.hasOwnProperty("high")) + if (typeof message.high !== "number") + return "high: number expected"; + return null; + }; + + /** + * Creates a Range message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range} Range + */ + Range.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range(); + if (object.low != null) + message.low = Number(object.low); + if (object.high != null) + message.high = Number(object.high); + return message; + }; + + /** + * Creates a plain object from a Range message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range} message Range + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Range.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.low = 0; + object.high = 0; + } + if (message.low != null && message.hasOwnProperty("low")) + object.low = options.json && !isFinite(message.low) ? String(message.low) : message.low; + if (message.high != null && message.hasOwnProperty("high")) + object.high = options.json && !isFinite(message.high) ? String(message.high) : message.high; + return object; + }; + + /** + * Converts this Range to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @instance + * @returns {Object.} JSON object + */ + Range.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Range + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Range.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range"; + }; + + return Range; + })(); + + SliceSpec.Value = (function() { + + /** + * Properties of a Value. + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @interface IValue + * @property {string|null} [stringValue] Value stringValue + * @property {number|null} [floatValue] Value floatValue + */ + + /** + * Constructs a new Value. + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec + * @classdesc Represents a Value. + * @implements IValue + * @constructor + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IValue=} [properties] Properties to set + */ + function Value(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]]; + } + + /** + * Value stringValue. + * @member {string|null|undefined} stringValue + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @instance + */ + Value.prototype.stringValue = null; + + /** + * Value floatValue. + * @member {number|null|undefined} floatValue + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @instance + */ + Value.prototype.floatValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Value kind. + * @member {"stringValue"|"floatValue"|undefined} kind + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @instance + */ + Object.defineProperty(Value.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["stringValue", "floatValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Value instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value} Value instance + */ + Value.create = function create(properties) { + return new Value(properties); + }; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IValue} message Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.stringValue); + if (message.floatValue != null && Object.hasOwnProperty.call(message, "floatValue")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.floatValue); + return writer; + }; + + /** + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.IValue} message Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Value.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Value message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @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.ModelEvaluationSlice.Slice.SliceSpec.Value} Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.stringValue = reader.string(); + break; + } + case 2: { + message.floatValue = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Value message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value} Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Value.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Value message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + properties.kind = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } + if (message.floatValue != null && message.hasOwnProperty("floatValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.floatValue !== "number") + return "floatValue: number expected"; + } + return null; + }; + + /** + * Creates a Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value} Value + */ + Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value(); + if (object.stringValue != null) + message.stringValue = String(object.stringValue); + if (object.floatValue != null) + message.floatValue = Number(object.floatValue); + return message; + }; + + /** + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value} message Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Value.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + object.stringValue = message.stringValue; + if (options.oneofs) + object.kind = "stringValue"; + } + if (message.floatValue != null && message.hasOwnProperty("floatValue")) { + object.floatValue = options.json && !isFinite(message.floatValue) ? String(message.floatValue) : message.floatValue; + if (options.oneofs) + object.kind = "floatValue"; + } + return object; + }; + + /** + * Converts this Value to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @instance + * @returns {Object.} JSON object + */ + Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Value + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value"; + }; + + return Value; + })(); + + return SliceSpec; + })(); + return Slice; })(); @@ -118125,6 +122883,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|batchImportEvaluatedAnnotations}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef BatchImportEvaluatedAnnotationsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse} [response] BatchImportEvaluatedAnnotationsResponse + */ + + /** + * Calls BatchImportEvaluatedAnnotations. + * @function batchImportEvaluatedAnnotations + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest} request BatchImportEvaluatedAnnotationsRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.BatchImportEvaluatedAnnotationsCallback} callback Node-style callback called with the error, if any, and BatchImportEvaluatedAnnotationsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.batchImportEvaluatedAnnotations = function batchImportEvaluatedAnnotations(request, callback) { + return this.rpcCall(batchImportEvaluatedAnnotations, $root.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest, $root.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse, request, callback); + }, "name", { value: "BatchImportEvaluatedAnnotations" }); + + /** + * Calls BatchImportEvaluatedAnnotations. + * @function batchImportEvaluatedAnnotations + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest} request BatchImportEvaluatedAnnotationsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluation}. * @memberof google.cloud.aiplatform.v1.ModelService @@ -123820,6 +128611,457 @@ return BatchImportModelEvaluationSlicesResponse; })(); + v1.BatchImportEvaluatedAnnotationsRequest = (function() { + + /** + * Properties of a BatchImportEvaluatedAnnotationsRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IBatchImportEvaluatedAnnotationsRequest + * @property {string|null} [parent] BatchImportEvaluatedAnnotationsRequest parent + * @property {Array.|null} [evaluatedAnnotations] BatchImportEvaluatedAnnotationsRequest evaluatedAnnotations + */ + + /** + * Constructs a new BatchImportEvaluatedAnnotationsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BatchImportEvaluatedAnnotationsRequest. + * @implements IBatchImportEvaluatedAnnotationsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest=} [properties] Properties to set + */ + function BatchImportEvaluatedAnnotationsRequest(properties) { + this.evaluatedAnnotations = []; + 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]]; + } + + /** + * BatchImportEvaluatedAnnotationsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest + * @instance + */ + BatchImportEvaluatedAnnotationsRequest.prototype.parent = ""; + + /** + * BatchImportEvaluatedAnnotationsRequest evaluatedAnnotations. + * @member {Array.} evaluatedAnnotations + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest + * @instance + */ + BatchImportEvaluatedAnnotationsRequest.prototype.evaluatedAnnotations = $util.emptyArray; + + /** + * Creates a new BatchImportEvaluatedAnnotationsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest} BatchImportEvaluatedAnnotationsRequest instance + */ + BatchImportEvaluatedAnnotationsRequest.create = function create(properties) { + return new BatchImportEvaluatedAnnotationsRequest(properties); + }; + + /** + * Encodes the specified BatchImportEvaluatedAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest} message BatchImportEvaluatedAnnotationsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportEvaluatedAnnotationsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.evaluatedAnnotations != null && message.evaluatedAnnotations.length) + for (var i = 0; i < message.evaluatedAnnotations.length; ++i) + $root.google.cloud.aiplatform.v1.EvaluatedAnnotation.encode(message.evaluatedAnnotations[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchImportEvaluatedAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest} message BatchImportEvaluatedAnnotationsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportEvaluatedAnnotationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchImportEvaluatedAnnotationsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest + * @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.BatchImportEvaluatedAnnotationsRequest} BatchImportEvaluatedAnnotationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportEvaluatedAnnotationsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + if (!(message.evaluatedAnnotations && message.evaluatedAnnotations.length)) + message.evaluatedAnnotations = []; + message.evaluatedAnnotations.push($root.google.cloud.aiplatform.v1.EvaluatedAnnotation.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchImportEvaluatedAnnotationsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest} BatchImportEvaluatedAnnotationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportEvaluatedAnnotationsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchImportEvaluatedAnnotationsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchImportEvaluatedAnnotationsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.evaluatedAnnotations != null && message.hasOwnProperty("evaluatedAnnotations")) { + if (!Array.isArray(message.evaluatedAnnotations)) + return "evaluatedAnnotations: array expected"; + for (var i = 0; i < message.evaluatedAnnotations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.EvaluatedAnnotation.verify(message.evaluatedAnnotations[i]); + if (error) + return "evaluatedAnnotations." + error; + } + } + return null; + }; + + /** + * Creates a BatchImportEvaluatedAnnotationsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest} BatchImportEvaluatedAnnotationsRequest + */ + BatchImportEvaluatedAnnotationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.evaluatedAnnotations) { + if (!Array.isArray(object.evaluatedAnnotations)) + throw TypeError(".google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest.evaluatedAnnotations: array expected"); + message.evaluatedAnnotations = []; + for (var i = 0; i < object.evaluatedAnnotations.length; ++i) { + if (typeof object.evaluatedAnnotations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest.evaluatedAnnotations: object expected"); + message.evaluatedAnnotations[i] = $root.google.cloud.aiplatform.v1.EvaluatedAnnotation.fromObject(object.evaluatedAnnotations[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BatchImportEvaluatedAnnotationsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest} message BatchImportEvaluatedAnnotationsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchImportEvaluatedAnnotationsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.evaluatedAnnotations = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.evaluatedAnnotations && message.evaluatedAnnotations.length) { + object.evaluatedAnnotations = []; + for (var j = 0; j < message.evaluatedAnnotations.length; ++j) + object.evaluatedAnnotations[j] = $root.google.cloud.aiplatform.v1.EvaluatedAnnotation.toObject(message.evaluatedAnnotations[j], options); + } + return object; + }; + + /** + * Converts this BatchImportEvaluatedAnnotationsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest + * @instance + * @returns {Object.} JSON object + */ + BatchImportEvaluatedAnnotationsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BatchImportEvaluatedAnnotationsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchImportEvaluatedAnnotationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest"; + }; + + return BatchImportEvaluatedAnnotationsRequest; + })(); + + v1.BatchImportEvaluatedAnnotationsResponse = (function() { + + /** + * Properties of a BatchImportEvaluatedAnnotationsResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IBatchImportEvaluatedAnnotationsResponse + * @property {number|null} [importedEvaluatedAnnotationsCount] BatchImportEvaluatedAnnotationsResponse importedEvaluatedAnnotationsCount + */ + + /** + * Constructs a new BatchImportEvaluatedAnnotationsResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BatchImportEvaluatedAnnotationsResponse. + * @implements IBatchImportEvaluatedAnnotationsResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsResponse=} [properties] Properties to set + */ + function BatchImportEvaluatedAnnotationsResponse(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]]; + } + + /** + * BatchImportEvaluatedAnnotationsResponse importedEvaluatedAnnotationsCount. + * @member {number} importedEvaluatedAnnotationsCount + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse + * @instance + */ + BatchImportEvaluatedAnnotationsResponse.prototype.importedEvaluatedAnnotationsCount = 0; + + /** + * Creates a new BatchImportEvaluatedAnnotationsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse} BatchImportEvaluatedAnnotationsResponse instance + */ + BatchImportEvaluatedAnnotationsResponse.create = function create(properties) { + return new BatchImportEvaluatedAnnotationsResponse(properties); + }; + + /** + * Encodes the specified BatchImportEvaluatedAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsResponse} message BatchImportEvaluatedAnnotationsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportEvaluatedAnnotationsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.importedEvaluatedAnnotationsCount != null && Object.hasOwnProperty.call(message, "importedEvaluatedAnnotationsCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.importedEvaluatedAnnotationsCount); + return writer; + }; + + /** + * Encodes the specified BatchImportEvaluatedAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsResponse} message BatchImportEvaluatedAnnotationsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportEvaluatedAnnotationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchImportEvaluatedAnnotationsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse + * @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.BatchImportEvaluatedAnnotationsResponse} BatchImportEvaluatedAnnotationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportEvaluatedAnnotationsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.importedEvaluatedAnnotationsCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchImportEvaluatedAnnotationsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse} BatchImportEvaluatedAnnotationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportEvaluatedAnnotationsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchImportEvaluatedAnnotationsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchImportEvaluatedAnnotationsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.importedEvaluatedAnnotationsCount != null && message.hasOwnProperty("importedEvaluatedAnnotationsCount")) + if (!$util.isInteger(message.importedEvaluatedAnnotationsCount)) + return "importedEvaluatedAnnotationsCount: integer expected"; + return null; + }; + + /** + * Creates a BatchImportEvaluatedAnnotationsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse} BatchImportEvaluatedAnnotationsResponse + */ + BatchImportEvaluatedAnnotationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse(); + if (object.importedEvaluatedAnnotationsCount != null) + message.importedEvaluatedAnnotationsCount = object.importedEvaluatedAnnotationsCount | 0; + return message; + }; + + /** + * Creates a plain object from a BatchImportEvaluatedAnnotationsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse} message BatchImportEvaluatedAnnotationsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchImportEvaluatedAnnotationsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.importedEvaluatedAnnotationsCount = 0; + if (message.importedEvaluatedAnnotationsCount != null && message.hasOwnProperty("importedEvaluatedAnnotationsCount")) + object.importedEvaluatedAnnotationsCount = message.importedEvaluatedAnnotationsCount; + return object; + }; + + /** + * Converts this BatchImportEvaluatedAnnotationsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse + * @instance + * @returns {Object.} JSON object + */ + BatchImportEvaluatedAnnotationsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BatchImportEvaluatedAnnotationsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchImportEvaluatedAnnotationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse"; + }; + + return BatchImportEvaluatedAnnotationsResponse; + })(); + v1.GetModelEvaluationRequest = (function() { /** @@ -176174,6 +181416,7 @@ * @property {number} NVIDIA_A100_80GB=9 NVIDIA_A100_80GB value * @property {number} TPU_V2=6 TPU_V2 value * @property {number} TPU_V3=7 TPU_V3 value + * @property {number} TPU_V4_POD=10 TPU_V4_POD value */ v1beta1.AcceleratorType = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -176187,6 +181430,7 @@ values[valuesById[9] = "NVIDIA_A100_80GB"] = 9; values[valuesById[6] = "TPU_V2"] = 6; values[valuesById[7] = "TPU_V3"] = 7; + values[valuesById[10] = "TPU_V4_POD"] = 10; return values; })(); @@ -177774,6 +183018,7 @@ * @property {google.cloud.aiplatform.v1beta1.IModelMonitoringConfig|null} [modelMonitoringConfig] BatchPredictionJob modelMonitoringConfig * @property {Array.|null} [modelMonitoringStatsAnomalies] BatchPredictionJob modelMonitoringStatsAnomalies * @property {google.rpc.IStatus|null} [modelMonitoringStatus] BatchPredictionJob modelMonitoringStatus + * @property {boolean|null} [disableContainerLogging] BatchPredictionJob disableContainerLogging */ /** @@ -178026,6 +183271,14 @@ */ BatchPredictionJob.prototype.modelMonitoringStatus = null; + /** + * BatchPredictionJob disableContainerLogging. + * @member {boolean} disableContainerLogging + * @memberof google.cloud.aiplatform.v1beta1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.disableContainerLogging = false; + /** * Creates a new BatchPredictionJob instance using the specified properties. * @function create @@ -178111,6 +183364,8 @@ $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.encode(message.modelMonitoringStatsAnomalies[i], writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); if (message.modelMonitoringStatus != null && Object.hasOwnProperty.call(message, "modelMonitoringStatus")) $root.google.rpc.Status.encode(message.modelMonitoringStatus, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); + if (message.disableContainerLogging != null && Object.hasOwnProperty.call(message, "disableContainerLogging")) + writer.uint32(/* id 34, wireType 0 =*/272).bool(message.disableContainerLogging); return writer; }; @@ -178284,6 +183539,10 @@ message.modelMonitoringStatus = $root.google.rpc.Status.decode(reader, reader.uint32()); break; } + case 34: { + message.disableContainerLogging = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -178475,6 +183734,9 @@ if (error) return "modelMonitoringStatus." + error; } + if (message.disableContainerLogging != null && message.hasOwnProperty("disableContainerLogging")) + if (typeof message.disableContainerLogging !== "boolean") + return "disableContainerLogging: boolean expected"; return null; }; @@ -178676,6 +183938,8 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.BatchPredictionJob.modelMonitoringStatus: object expected"); message.modelMonitoringStatus = $root.google.rpc.Status.fromObject(object.modelMonitoringStatus); } + if (object.disableContainerLogging != null) + message.disableContainerLogging = Boolean(object.disableContainerLogging); return message; }; @@ -178725,6 +183989,7 @@ object.serviceAccount = ""; object.modelVersionId = ""; object.modelMonitoringStatus = null; + object.disableContainerLogging = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -178794,6 +184059,8 @@ } if (message.modelMonitoringStatus != null && message.hasOwnProperty("modelMonitoringStatus")) object.modelMonitoringStatus = $root.google.rpc.Status.toObject(message.modelMonitoringStatus, options); + if (message.disableContainerLogging != null && message.hasOwnProperty("disableContainerLogging")) + object.disableContainerLogging = message.disableContainerLogging; return object; }; @@ -190004,6 +195271,7 @@ case 9: case 6: case 7: + case 10: break; } if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) @@ -190073,6 +195341,10 @@ case 7: message.acceleratorType = 7; break; + case "TPU_V4_POD": + case 10: + message.acceleratorType = 10; + break; } if (object.acceleratorCount != null) message.acceleratorCount = object.acceleratorCount | 0; @@ -198627,6 +203899,7 @@ * @property {google.cloud.aiplatform.v1beta1.IModelSourceInfo|null} [modelSourceInfo] Model modelSourceInfo * @property {google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo|null} [originalModelInfo] Model originalModelInfo * @property {string|null} [metadataArtifact] Model metadataArtifact + * @property {google.cloud.aiplatform.v1beta1.Model.ILargeModelReference|null} [largeModelReference] Model largeModelReference */ /** @@ -198875,6 +204148,14 @@ */ Model.prototype.metadataArtifact = ""; + /** + * Model largeModelReference. + * @member {google.cloud.aiplatform.v1beta1.Model.ILargeModelReference|null|undefined} largeModelReference + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.largeModelReference = null; + /** * Creates a new Model instance using the specified properties. * @function create @@ -198965,6 +204246,8 @@ $root.google.cloud.aiplatform.v1beta1.ModelSourceInfo.encode(message.modelSourceInfo, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim(); if (message.metadataArtifact != null && Object.hasOwnProperty.call(message, "metadataArtifact")) writer.uint32(/* id 44, wireType 2 =*/354).string(message.metadataArtifact); + if (message.largeModelReference != null && Object.hasOwnProperty.call(message, "largeModelReference")) + $root.google.cloud.aiplatform.v1beta1.Model.LargeModelReference.encode(message.largeModelReference, writer.uint32(/* id 45, wireType 2 =*/362).fork()).ldelim(); return writer; }; @@ -199147,6 +204430,10 @@ message.metadataArtifact = reader.string(); break; } + case 45: { + message.largeModelReference = $root.google.cloud.aiplatform.v1beta1.Model.LargeModelReference.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -199328,6 +204615,11 @@ if (message.metadataArtifact != null && message.hasOwnProperty("metadataArtifact")) if (!$util.isString(message.metadataArtifact)) return "metadataArtifact: string expected"; + if (message.largeModelReference != null && message.hasOwnProperty("largeModelReference")) { + var error = $root.google.cloud.aiplatform.v1beta1.Model.LargeModelReference.verify(message.largeModelReference); + if (error) + return "largeModelReference." + error; + } return null; }; @@ -199495,6 +204787,11 @@ } if (object.metadataArtifact != null) message.metadataArtifact = String(object.metadataArtifact); + if (object.largeModelReference != null) { + if (typeof object.largeModelReference !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.largeModelReference: object expected"); + message.largeModelReference = $root.google.cloud.aiplatform.v1beta1.Model.LargeModelReference.fromObject(object.largeModelReference); + } return message; }; @@ -199543,6 +204840,7 @@ object.originalModelInfo = null; object.modelSourceInfo = null; object.metadataArtifact = ""; + object.largeModelReference = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -199622,6 +204920,8 @@ object.modelSourceInfo = $root.google.cloud.aiplatform.v1beta1.ModelSourceInfo.toObject(message.modelSourceInfo, options); if (message.metadataArtifact != null && message.hasOwnProperty("metadataArtifact")) object.metadataArtifact = message.metadataArtifact; + if (message.largeModelReference != null && message.hasOwnProperty("largeModelReference")) + object.largeModelReference = $root.google.cloud.aiplatform.v1beta1.Model.LargeModelReference.toObject(message.largeModelReference, options); return object; }; @@ -200145,6 +205445,209 @@ return OriginalModelInfo; })(); + Model.LargeModelReference = (function() { + + /** + * Properties of a LargeModelReference. + * @memberof google.cloud.aiplatform.v1beta1.Model + * @interface ILargeModelReference + * @property {string|null} [name] LargeModelReference name + */ + + /** + * Constructs a new LargeModelReference. + * @memberof google.cloud.aiplatform.v1beta1.Model + * @classdesc Represents a LargeModelReference. + * @implements ILargeModelReference + * @constructor + * @param {google.cloud.aiplatform.v1beta1.Model.ILargeModelReference=} [properties] Properties to set + */ + function LargeModelReference(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]]; + } + + /** + * LargeModelReference name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Model.LargeModelReference + * @instance + */ + LargeModelReference.prototype.name = ""; + + /** + * Creates a new LargeModelReference instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Model.LargeModelReference + * @static + * @param {google.cloud.aiplatform.v1beta1.Model.ILargeModelReference=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Model.LargeModelReference} LargeModelReference instance + */ + LargeModelReference.create = function create(properties) { + return new LargeModelReference(properties); + }; + + /** + * Encodes the specified LargeModelReference message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.LargeModelReference.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Model.LargeModelReference + * @static + * @param {google.cloud.aiplatform.v1beta1.Model.ILargeModelReference} message LargeModelReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LargeModelReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified LargeModelReference message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.LargeModelReference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Model.LargeModelReference + * @static + * @param {google.cloud.aiplatform.v1beta1.Model.ILargeModelReference} message LargeModelReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LargeModelReference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LargeModelReference message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Model.LargeModelReference + * @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.Model.LargeModelReference} LargeModelReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LargeModelReference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Model.LargeModelReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LargeModelReference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Model.LargeModelReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Model.LargeModelReference} LargeModelReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LargeModelReference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LargeModelReference message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Model.LargeModelReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LargeModelReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a LargeModelReference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Model.LargeModelReference + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Model.LargeModelReference} LargeModelReference + */ + LargeModelReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Model.LargeModelReference) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Model.LargeModelReference(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a LargeModelReference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Model.LargeModelReference + * @static + * @param {google.cloud.aiplatform.v1beta1.Model.LargeModelReference} message LargeModelReference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LargeModelReference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this LargeModelReference to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Model.LargeModelReference + * @instance + * @returns {Object.} JSON object + */ + LargeModelReference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LargeModelReference + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.Model.LargeModelReference + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LargeModelReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Model.LargeModelReference"; + }; + + return LargeModelReference; + })(); + /** * DeploymentResourcesType enum. * @name google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType @@ -207549,6 +213052,7 @@ * @memberof google.cloud.aiplatform.v1beta1 * @interface IExportDataConfig * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [gcsDestination] ExportDataConfig gcsDestination + * @property {google.cloud.aiplatform.v1beta1.IExportFractionSplit|null} [fractionSplit] ExportDataConfig fractionSplit * @property {string|null} [annotationsFilter] ExportDataConfig annotationsFilter */ @@ -207575,6 +213079,14 @@ */ ExportDataConfig.prototype.gcsDestination = null; + /** + * ExportDataConfig fractionSplit. + * @member {google.cloud.aiplatform.v1beta1.IExportFractionSplit|null|undefined} fractionSplit + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @instance + */ + ExportDataConfig.prototype.fractionSplit = null; + /** * ExportDataConfig annotationsFilter. * @member {string} annotationsFilter @@ -207597,6 +213109,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * ExportDataConfig split. + * @member {"fractionSplit"|undefined} split + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @instance + */ + Object.defineProperty(ExportDataConfig.prototype, "split", { + get: $util.oneOfGetter($oneOfFields = ["fractionSplit"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new ExportDataConfig instance using the specified properties. * @function create @@ -207625,6 +213148,8 @@ $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.gcsDestination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.annotationsFilter != null && Object.hasOwnProperty.call(message, "annotationsFilter")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.annotationsFilter); + if (message.fractionSplit != null && Object.hasOwnProperty.call(message, "fractionSplit")) + $root.google.cloud.aiplatform.v1beta1.ExportFractionSplit.encode(message.fractionSplit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -207663,6 +213188,10 @@ message.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); break; } + case 5: { + message.fractionSplit = $root.google.cloud.aiplatform.v1beta1.ExportFractionSplit.decode(reader, reader.uint32()); + break; + } case 2: { message.annotationsFilter = reader.string(); break; @@ -207711,6 +213240,14 @@ return "gcsDestination." + error; } } + if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.ExportFractionSplit.verify(message.fractionSplit); + if (error) + return "fractionSplit." + error; + } + } if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) if (!$util.isString(message.annotationsFilter)) return "annotationsFilter: string expected"; @@ -207734,6 +213271,11 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.ExportDataConfig.gcsDestination: object expected"); message.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.gcsDestination); } + if (object.fractionSplit != null) { + if (typeof object.fractionSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportDataConfig.fractionSplit: object expected"); + message.fractionSplit = $root.google.cloud.aiplatform.v1beta1.ExportFractionSplit.fromObject(object.fractionSplit); + } if (object.annotationsFilter != null) message.annotationsFilter = String(object.annotationsFilter); return message; @@ -207761,6 +213303,11 @@ } if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) object.annotationsFilter = message.annotationsFilter; + if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { + object.fractionSplit = $root.google.cloud.aiplatform.v1beta1.ExportFractionSplit.toObject(message.fractionSplit, options); + if (options.oneofs) + object.split = "fractionSplit"; + } return object; }; @@ -207793,6 +213340,256 @@ return ExportDataConfig; })(); + v1beta1.ExportFractionSplit = (function() { + + /** + * Properties of an ExportFractionSplit. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IExportFractionSplit + * @property {number|null} [trainingFraction] ExportFractionSplit trainingFraction + * @property {number|null} [validationFraction] ExportFractionSplit validationFraction + * @property {number|null} [testFraction] ExportFractionSplit testFraction + */ + + /** + * Constructs a new ExportFractionSplit. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an ExportFractionSplit. + * @implements IExportFractionSplit + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IExportFractionSplit=} [properties] Properties to set + */ + function ExportFractionSplit(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]]; + } + + /** + * ExportFractionSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1beta1.ExportFractionSplit + * @instance + */ + ExportFractionSplit.prototype.trainingFraction = 0; + + /** + * ExportFractionSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1beta1.ExportFractionSplit + * @instance + */ + ExportFractionSplit.prototype.validationFraction = 0; + + /** + * ExportFractionSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1beta1.ExportFractionSplit + * @instance + */ + ExportFractionSplit.prototype.testFraction = 0; + + /** + * Creates a new ExportFractionSplit instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ExportFractionSplit + * @static + * @param {google.cloud.aiplatform.v1beta1.IExportFractionSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportFractionSplit} ExportFractionSplit instance + */ + ExportFractionSplit.create = function create(properties) { + return new ExportFractionSplit(properties); + }; + + /** + * Encodes the specified ExportFractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFractionSplit.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ExportFractionSplit + * @static + * @param {google.cloud.aiplatform.v1beta1.IExportFractionSplit} message ExportFractionSplit message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportFractionSplit.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); + if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); + if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); + return writer; + }; + + /** + * Encodes the specified ExportFractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFractionSplit.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportFractionSplit + * @static + * @param {google.cloud.aiplatform.v1beta1.IExportFractionSplit} message ExportFractionSplit message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportFractionSplit.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExportFractionSplit message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ExportFractionSplit + * @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.ExportFractionSplit} ExportFractionSplit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportFractionSplit.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportFractionSplit(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.trainingFraction = reader.double(); + break; + } + case 2: { + message.validationFraction = reader.double(); + break; + } + case 3: { + message.testFraction = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExportFractionSplit message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportFractionSplit + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ExportFractionSplit} ExportFractionSplit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportFractionSplit.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExportFractionSplit message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ExportFractionSplit + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExportFractionSplit.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + if (typeof message.trainingFraction !== "number") + return "trainingFraction: number expected"; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + if (typeof message.validationFraction !== "number") + return "validationFraction: number expected"; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + if (typeof message.testFraction !== "number") + return "testFraction: number expected"; + return null; + }; + + /** + * Creates an ExportFractionSplit message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ExportFractionSplit + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ExportFractionSplit} ExportFractionSplit + */ + ExportFractionSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFractionSplit) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ExportFractionSplit(); + if (object.trainingFraction != null) + message.trainingFraction = Number(object.trainingFraction); + if (object.validationFraction != null) + message.validationFraction = Number(object.validationFraction); + if (object.testFraction != null) + message.testFraction = Number(object.testFraction); + return message; + }; + + /** + * Creates a plain object from an ExportFractionSplit message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ExportFractionSplit + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportFractionSplit} message ExportFractionSplit + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExportFractionSplit.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; + } + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; + return object; + }; + + /** + * Converts this ExportFractionSplit to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ExportFractionSplit + * @instance + * @returns {Object.} JSON object + */ + ExportFractionSplit.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExportFractionSplit + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ExportFractionSplit + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExportFractionSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExportFractionSplit"; + }; + + return ExportFractionSplit; + })(); + v1beta1.SavedQuery = (function() { /** @@ -224754,6 +230551,1287 @@ return FeaturestoreMonitoringConfig; })(); + v1beta1.EvaluatedAnnotation = (function() { + + /** + * Properties of an EvaluatedAnnotation. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IEvaluatedAnnotation + * @property {google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.EvaluatedAnnotationType|null} [type] EvaluatedAnnotation type + * @property {Array.|null} [predictions] EvaluatedAnnotation predictions + * @property {Array.|null} [groundTruths] EvaluatedAnnotation groundTruths + * @property {google.protobuf.IValue|null} [dataItemPayload] EvaluatedAnnotation dataItemPayload + * @property {string|null} [evaluatedDataItemViewId] EvaluatedAnnotation evaluatedDataItemViewId + * @property {Array.|null} [explanations] EvaluatedAnnotation explanations + * @property {Array.|null} [errorAnalysisAnnotations] EvaluatedAnnotation errorAnalysisAnnotations + */ + + /** + * Constructs a new EvaluatedAnnotation. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an EvaluatedAnnotation. + * @implements IEvaluatedAnnotation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IEvaluatedAnnotation=} [properties] Properties to set + */ + function EvaluatedAnnotation(properties) { + this.predictions = []; + this.groundTruths = []; + this.explanations = []; + this.errorAnalysisAnnotations = []; + 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]]; + } + + /** + * EvaluatedAnnotation type. + * @member {google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.EvaluatedAnnotationType} type + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @instance + */ + EvaluatedAnnotation.prototype.type = 0; + + /** + * EvaluatedAnnotation predictions. + * @member {Array.} predictions + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @instance + */ + EvaluatedAnnotation.prototype.predictions = $util.emptyArray; + + /** + * EvaluatedAnnotation groundTruths. + * @member {Array.} groundTruths + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @instance + */ + EvaluatedAnnotation.prototype.groundTruths = $util.emptyArray; + + /** + * EvaluatedAnnotation dataItemPayload. + * @member {google.protobuf.IValue|null|undefined} dataItemPayload + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @instance + */ + EvaluatedAnnotation.prototype.dataItemPayload = null; + + /** + * EvaluatedAnnotation evaluatedDataItemViewId. + * @member {string} evaluatedDataItemViewId + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @instance + */ + EvaluatedAnnotation.prototype.evaluatedDataItemViewId = ""; + + /** + * EvaluatedAnnotation explanations. + * @member {Array.} explanations + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @instance + */ + EvaluatedAnnotation.prototype.explanations = $util.emptyArray; + + /** + * EvaluatedAnnotation errorAnalysisAnnotations. + * @member {Array.} errorAnalysisAnnotations + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @instance + */ + EvaluatedAnnotation.prototype.errorAnalysisAnnotations = $util.emptyArray; + + /** + * Creates a new EvaluatedAnnotation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.IEvaluatedAnnotation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.EvaluatedAnnotation} EvaluatedAnnotation instance + */ + EvaluatedAnnotation.create = function create(properties) { + return new EvaluatedAnnotation(properties); + }; + + /** + * Encodes the specified EvaluatedAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.IEvaluatedAnnotation} message EvaluatedAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EvaluatedAnnotation.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.predictions != null && message.predictions.length) + for (var i = 0; i < message.predictions.length; ++i) + $root.google.protobuf.Value.encode(message.predictions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.groundTruths != null && message.groundTruths.length) + for (var i = 0; i < message.groundTruths.length; ++i) + $root.google.protobuf.Value.encode(message.groundTruths[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.dataItemPayload != null && Object.hasOwnProperty.call(message, "dataItemPayload")) + $root.google.protobuf.Value.encode(message.dataItemPayload, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.evaluatedDataItemViewId != null && Object.hasOwnProperty.call(message, "evaluatedDataItemViewId")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.evaluatedDataItemViewId); + if (message.explanations != null && message.explanations.length) + for (var i = 0; i < message.explanations.length; ++i) + $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation.encode(message.explanations[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.errorAnalysisAnnotations != null && message.errorAnalysisAnnotations.length) + for (var i = 0; i < message.errorAnalysisAnnotations.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.encode(message.errorAnalysisAnnotations[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EvaluatedAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.IEvaluatedAnnotation} message EvaluatedAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EvaluatedAnnotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EvaluatedAnnotation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @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.EvaluatedAnnotation} EvaluatedAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EvaluatedAnnotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 2: { + if (!(message.predictions && message.predictions.length)) + message.predictions = []; + message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.groundTruths && message.groundTruths.length)) + message.groundTruths = []; + message.groundTruths.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + case 5: { + message.dataItemPayload = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 6: { + message.evaluatedDataItemViewId = reader.string(); + break; + } + case 8: { + if (!(message.explanations && message.explanations.length)) + message.explanations = []; + message.explanations.push($root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation.decode(reader, reader.uint32())); + break; + } + case 9: { + if (!(message.errorAnalysisAnnotations && message.errorAnalysisAnnotations.length)) + message.errorAnalysisAnnotations = []; + message.errorAnalysisAnnotations.push($root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EvaluatedAnnotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.EvaluatedAnnotation} EvaluatedAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EvaluatedAnnotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EvaluatedAnnotation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EvaluatedAnnotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.predictions != null && message.hasOwnProperty("predictions")) { + if (!Array.isArray(message.predictions)) + return "predictions: array expected"; + for (var i = 0; i < message.predictions.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.predictions[i]); + if (error) + return "predictions." + error; + } + } + if (message.groundTruths != null && message.hasOwnProperty("groundTruths")) { + if (!Array.isArray(message.groundTruths)) + return "groundTruths: array expected"; + for (var i = 0; i < message.groundTruths.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.groundTruths[i]); + if (error) + return "groundTruths." + error; + } + } + if (message.dataItemPayload != null && message.hasOwnProperty("dataItemPayload")) { + var error = $root.google.protobuf.Value.verify(message.dataItemPayload); + if (error) + return "dataItemPayload." + error; + } + if (message.evaluatedDataItemViewId != null && message.hasOwnProperty("evaluatedDataItemViewId")) + if (!$util.isString(message.evaluatedDataItemViewId)) + return "evaluatedDataItemViewId: string expected"; + if (message.explanations != null && message.hasOwnProperty("explanations")) { + if (!Array.isArray(message.explanations)) + return "explanations: array expected"; + for (var i = 0; i < message.explanations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation.verify(message.explanations[i]); + if (error) + return "explanations." + error; + } + } + if (message.errorAnalysisAnnotations != null && message.hasOwnProperty("errorAnalysisAnnotations")) { + if (!Array.isArray(message.errorAnalysisAnnotations)) + return "errorAnalysisAnnotations: array expected"; + for (var i = 0; i < message.errorAnalysisAnnotations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.verify(message.errorAnalysisAnnotations[i]); + if (error) + return "errorAnalysisAnnotations." + error; + } + } + return null; + }; + + /** + * Creates an EvaluatedAnnotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.EvaluatedAnnotation} EvaluatedAnnotation + */ + EvaluatedAnnotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "EVALUATED_ANNOTATION_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "TRUE_POSITIVE": + case 1: + message.type = 1; + break; + case "FALSE_POSITIVE": + case 2: + message.type = 2; + break; + case "FALSE_NEGATIVE": + case 3: + message.type = 3; + break; + } + if (object.predictions) { + if (!Array.isArray(object.predictions)) + throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.predictions: array expected"); + message.predictions = []; + for (var i = 0; i < object.predictions.length; ++i) { + if (typeof object.predictions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.predictions: object expected"); + message.predictions[i] = $root.google.protobuf.Value.fromObject(object.predictions[i]); + } + } + if (object.groundTruths) { + if (!Array.isArray(object.groundTruths)) + throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.groundTruths: array expected"); + message.groundTruths = []; + for (var i = 0; i < object.groundTruths.length; ++i) { + if (typeof object.groundTruths[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.groundTruths: object expected"); + message.groundTruths[i] = $root.google.protobuf.Value.fromObject(object.groundTruths[i]); + } + } + if (object.dataItemPayload != null) { + if (typeof object.dataItemPayload !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.dataItemPayload: object expected"); + message.dataItemPayload = $root.google.protobuf.Value.fromObject(object.dataItemPayload); + } + if (object.evaluatedDataItemViewId != null) + message.evaluatedDataItemViewId = String(object.evaluatedDataItemViewId); + if (object.explanations) { + if (!Array.isArray(object.explanations)) + throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.explanations: array expected"); + message.explanations = []; + for (var i = 0; i < object.explanations.length; ++i) { + if (typeof object.explanations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.explanations: object expected"); + message.explanations[i] = $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation.fromObject(object.explanations[i]); + } + } + if (object.errorAnalysisAnnotations) { + if (!Array.isArray(object.errorAnalysisAnnotations)) + throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.errorAnalysisAnnotations: array expected"); + message.errorAnalysisAnnotations = []; + for (var i = 0; i < object.errorAnalysisAnnotations.length; ++i) { + if (typeof object.errorAnalysisAnnotations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.errorAnalysisAnnotations: object expected"); + message.errorAnalysisAnnotations[i] = $root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.fromObject(object.errorAnalysisAnnotations[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EvaluatedAnnotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.EvaluatedAnnotation} message EvaluatedAnnotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EvaluatedAnnotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.predictions = []; + object.groundTruths = []; + object.explanations = []; + object.errorAnalysisAnnotations = []; + } + if (options.defaults) { + object.type = options.enums === String ? "EVALUATED_ANNOTATION_TYPE_UNSPECIFIED" : 0; + object.dataItemPayload = null; + object.evaluatedDataItemViewId = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.EvaluatedAnnotationType[message.type] === undefined ? message.type : $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.EvaluatedAnnotationType[message.type] : message.type; + if (message.predictions && message.predictions.length) { + object.predictions = []; + for (var j = 0; j < message.predictions.length; ++j) + object.predictions[j] = $root.google.protobuf.Value.toObject(message.predictions[j], options); + } + if (message.groundTruths && message.groundTruths.length) { + object.groundTruths = []; + for (var j = 0; j < message.groundTruths.length; ++j) + object.groundTruths[j] = $root.google.protobuf.Value.toObject(message.groundTruths[j], options); + } + if (message.dataItemPayload != null && message.hasOwnProperty("dataItemPayload")) + object.dataItemPayload = $root.google.protobuf.Value.toObject(message.dataItemPayload, options); + if (message.evaluatedDataItemViewId != null && message.hasOwnProperty("evaluatedDataItemViewId")) + object.evaluatedDataItemViewId = message.evaluatedDataItemViewId; + if (message.explanations && message.explanations.length) { + object.explanations = []; + for (var j = 0; j < message.explanations.length; ++j) + object.explanations[j] = $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation.toObject(message.explanations[j], options); + } + if (message.errorAnalysisAnnotations && message.errorAnalysisAnnotations.length) { + object.errorAnalysisAnnotations = []; + for (var j = 0; j < message.errorAnalysisAnnotations.length; ++j) + object.errorAnalysisAnnotations[j] = $root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.toObject(message.errorAnalysisAnnotations[j], options); + } + return object; + }; + + /** + * Converts this EvaluatedAnnotation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @instance + * @returns {Object.} JSON object + */ + EvaluatedAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EvaluatedAnnotation + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EvaluatedAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.EvaluatedAnnotation"; + }; + + /** + * EvaluatedAnnotationType enum. + * @name google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.EvaluatedAnnotationType + * @enum {number} + * @property {number} EVALUATED_ANNOTATION_TYPE_UNSPECIFIED=0 EVALUATED_ANNOTATION_TYPE_UNSPECIFIED value + * @property {number} TRUE_POSITIVE=1 TRUE_POSITIVE value + * @property {number} FALSE_POSITIVE=2 FALSE_POSITIVE value + * @property {number} FALSE_NEGATIVE=3 FALSE_NEGATIVE value + */ + EvaluatedAnnotation.EvaluatedAnnotationType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EVALUATED_ANNOTATION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TRUE_POSITIVE"] = 1; + values[valuesById[2] = "FALSE_POSITIVE"] = 2; + values[valuesById[3] = "FALSE_NEGATIVE"] = 3; + return values; + })(); + + return EvaluatedAnnotation; + })(); + + v1beta1.EvaluatedAnnotationExplanation = (function() { + + /** + * Properties of an EvaluatedAnnotationExplanation. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IEvaluatedAnnotationExplanation + * @property {string|null} [explanationType] EvaluatedAnnotationExplanation explanationType + * @property {google.cloud.aiplatform.v1beta1.IExplanation|null} [explanation] EvaluatedAnnotationExplanation explanation + */ + + /** + * Constructs a new EvaluatedAnnotationExplanation. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an EvaluatedAnnotationExplanation. + * @implements IEvaluatedAnnotationExplanation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IEvaluatedAnnotationExplanation=} [properties] Properties to set + */ + function EvaluatedAnnotationExplanation(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]]; + } + + /** + * EvaluatedAnnotationExplanation explanationType. + * @member {string} explanationType + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation + * @instance + */ + EvaluatedAnnotationExplanation.prototype.explanationType = ""; + + /** + * EvaluatedAnnotationExplanation explanation. + * @member {google.cloud.aiplatform.v1beta1.IExplanation|null|undefined} explanation + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation + * @instance + */ + EvaluatedAnnotationExplanation.prototype.explanation = null; + + /** + * Creates a new EvaluatedAnnotationExplanation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation + * @static + * @param {google.cloud.aiplatform.v1beta1.IEvaluatedAnnotationExplanation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation} EvaluatedAnnotationExplanation instance + */ + EvaluatedAnnotationExplanation.create = function create(properties) { + return new EvaluatedAnnotationExplanation(properties); + }; + + /** + * Encodes the specified EvaluatedAnnotationExplanation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation + * @static + * @param {google.cloud.aiplatform.v1beta1.IEvaluatedAnnotationExplanation} message EvaluatedAnnotationExplanation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EvaluatedAnnotationExplanation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.explanationType != null && Object.hasOwnProperty.call(message, "explanationType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.explanationType); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + $root.google.cloud.aiplatform.v1beta1.Explanation.encode(message.explanation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EvaluatedAnnotationExplanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation + * @static + * @param {google.cloud.aiplatform.v1beta1.IEvaluatedAnnotationExplanation} message EvaluatedAnnotationExplanation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EvaluatedAnnotationExplanation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EvaluatedAnnotationExplanation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation + * @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.EvaluatedAnnotationExplanation} EvaluatedAnnotationExplanation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EvaluatedAnnotationExplanation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.explanationType = reader.string(); + break; + } + case 2: { + message.explanation = $root.google.cloud.aiplatform.v1beta1.Explanation.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EvaluatedAnnotationExplanation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation} EvaluatedAnnotationExplanation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EvaluatedAnnotationExplanation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EvaluatedAnnotationExplanation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EvaluatedAnnotationExplanation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.explanationType != null && message.hasOwnProperty("explanationType")) + if (!$util.isString(message.explanationType)) + return "explanationType: string expected"; + if (message.explanation != null && message.hasOwnProperty("explanation")) { + var error = $root.google.cloud.aiplatform.v1beta1.Explanation.verify(message.explanation); + if (error) + return "explanation." + error; + } + return null; + }; + + /** + * Creates an EvaluatedAnnotationExplanation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation} EvaluatedAnnotationExplanation + */ + EvaluatedAnnotationExplanation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation(); + if (object.explanationType != null) + message.explanationType = String(object.explanationType); + if (object.explanation != null) { + if (typeof object.explanation !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation.explanation: object expected"); + message.explanation = $root.google.cloud.aiplatform.v1beta1.Explanation.fromObject(object.explanation); + } + return message; + }; + + /** + * Creates a plain object from an EvaluatedAnnotationExplanation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation + * @static + * @param {google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation} message EvaluatedAnnotationExplanation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EvaluatedAnnotationExplanation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.explanationType = ""; + object.explanation = null; + } + if (message.explanationType != null && message.hasOwnProperty("explanationType")) + object.explanationType = message.explanationType; + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = $root.google.cloud.aiplatform.v1beta1.Explanation.toObject(message.explanation, options); + return object; + }; + + /** + * Converts this EvaluatedAnnotationExplanation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation + * @instance + * @returns {Object.} JSON object + */ + EvaluatedAnnotationExplanation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EvaluatedAnnotationExplanation + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EvaluatedAnnotationExplanation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation"; + }; + + return EvaluatedAnnotationExplanation; + })(); + + v1beta1.ErrorAnalysisAnnotation = (function() { + + /** + * Properties of an ErrorAnalysisAnnotation. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IErrorAnalysisAnnotation + * @property {Array.|null} [attributedItems] ErrorAnalysisAnnotation attributedItems + * @property {google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.QueryType|null} [queryType] ErrorAnalysisAnnotation queryType + * @property {number|null} [outlierScore] ErrorAnalysisAnnotation outlierScore + * @property {number|null} [outlierThreshold] ErrorAnalysisAnnotation outlierThreshold + */ + + /** + * Constructs a new ErrorAnalysisAnnotation. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an ErrorAnalysisAnnotation. + * @implements IErrorAnalysisAnnotation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IErrorAnalysisAnnotation=} [properties] Properties to set + */ + function ErrorAnalysisAnnotation(properties) { + this.attributedItems = []; + 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]]; + } + + /** + * ErrorAnalysisAnnotation attributedItems. + * @member {Array.} attributedItems + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation + * @instance + */ + ErrorAnalysisAnnotation.prototype.attributedItems = $util.emptyArray; + + /** + * ErrorAnalysisAnnotation queryType. + * @member {google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.QueryType} queryType + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation + * @instance + */ + ErrorAnalysisAnnotation.prototype.queryType = 0; + + /** + * ErrorAnalysisAnnotation outlierScore. + * @member {number} outlierScore + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation + * @instance + */ + ErrorAnalysisAnnotation.prototype.outlierScore = 0; + + /** + * ErrorAnalysisAnnotation outlierThreshold. + * @member {number} outlierThreshold + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation + * @instance + */ + ErrorAnalysisAnnotation.prototype.outlierThreshold = 0; + + /** + * Creates a new ErrorAnalysisAnnotation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.IErrorAnalysisAnnotation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation} ErrorAnalysisAnnotation instance + */ + ErrorAnalysisAnnotation.create = function create(properties) { + return new ErrorAnalysisAnnotation(properties); + }; + + /** + * Encodes the specified ErrorAnalysisAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.IErrorAnalysisAnnotation} message ErrorAnalysisAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ErrorAnalysisAnnotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributedItems != null && message.attributedItems.length) + for (var i = 0; i < message.attributedItems.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem.encode(message.attributedItems[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.queryType != null && Object.hasOwnProperty.call(message, "queryType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.queryType); + if (message.outlierScore != null && Object.hasOwnProperty.call(message, "outlierScore")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.outlierScore); + if (message.outlierThreshold != null && Object.hasOwnProperty.call(message, "outlierThreshold")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.outlierThreshold); + return writer; + }; + + /** + * Encodes the specified ErrorAnalysisAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.IErrorAnalysisAnnotation} message ErrorAnalysisAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ErrorAnalysisAnnotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ErrorAnalysisAnnotation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation + * @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.ErrorAnalysisAnnotation} ErrorAnalysisAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ErrorAnalysisAnnotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.attributedItems && message.attributedItems.length)) + message.attributedItems = []; + message.attributedItems.push($root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem.decode(reader, reader.uint32())); + break; + } + case 2: { + message.queryType = reader.int32(); + break; + } + case 3: { + message.outlierScore = reader.double(); + break; + } + case 4: { + message.outlierThreshold = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ErrorAnalysisAnnotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation} ErrorAnalysisAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ErrorAnalysisAnnotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ErrorAnalysisAnnotation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ErrorAnalysisAnnotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributedItems != null && message.hasOwnProperty("attributedItems")) { + if (!Array.isArray(message.attributedItems)) + return "attributedItems: array expected"; + for (var i = 0; i < message.attributedItems.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem.verify(message.attributedItems[i]); + if (error) + return "attributedItems." + error; + } + } + if (message.queryType != null && message.hasOwnProperty("queryType")) + switch (message.queryType) { + default: + return "queryType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.outlierScore != null && message.hasOwnProperty("outlierScore")) + if (typeof message.outlierScore !== "number") + return "outlierScore: number expected"; + if (message.outlierThreshold != null && message.hasOwnProperty("outlierThreshold")) + if (typeof message.outlierThreshold !== "number") + return "outlierThreshold: number expected"; + return null; + }; + + /** + * Creates an ErrorAnalysisAnnotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation} ErrorAnalysisAnnotation + */ + ErrorAnalysisAnnotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation(); + if (object.attributedItems) { + if (!Array.isArray(object.attributedItems)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.attributedItems: array expected"); + message.attributedItems = []; + for (var i = 0; i < object.attributedItems.length; ++i) { + if (typeof object.attributedItems[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.attributedItems: object expected"); + message.attributedItems[i] = $root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem.fromObject(object.attributedItems[i]); + } + } + switch (object.queryType) { + default: + if (typeof object.queryType === "number") { + message.queryType = object.queryType; + break; + } + break; + case "QUERY_TYPE_UNSPECIFIED": + case 0: + message.queryType = 0; + break; + case "ALL_SIMILAR": + case 1: + message.queryType = 1; + break; + case "SAME_CLASS_SIMILAR": + case 2: + message.queryType = 2; + break; + case "SAME_CLASS_DISSIMILAR": + case 3: + message.queryType = 3; + break; + } + if (object.outlierScore != null) + message.outlierScore = Number(object.outlierScore); + if (object.outlierThreshold != null) + message.outlierThreshold = Number(object.outlierThreshold); + return message; + }; + + /** + * Creates a plain object from an ErrorAnalysisAnnotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation} message ErrorAnalysisAnnotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ErrorAnalysisAnnotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.attributedItems = []; + if (options.defaults) { + object.queryType = options.enums === String ? "QUERY_TYPE_UNSPECIFIED" : 0; + object.outlierScore = 0; + object.outlierThreshold = 0; + } + if (message.attributedItems && message.attributedItems.length) { + object.attributedItems = []; + for (var j = 0; j < message.attributedItems.length; ++j) + object.attributedItems[j] = $root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem.toObject(message.attributedItems[j], options); + } + if (message.queryType != null && message.hasOwnProperty("queryType")) + object.queryType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.QueryType[message.queryType] === undefined ? message.queryType : $root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.QueryType[message.queryType] : message.queryType; + if (message.outlierScore != null && message.hasOwnProperty("outlierScore")) + object.outlierScore = options.json && !isFinite(message.outlierScore) ? String(message.outlierScore) : message.outlierScore; + if (message.outlierThreshold != null && message.hasOwnProperty("outlierThreshold")) + object.outlierThreshold = options.json && !isFinite(message.outlierThreshold) ? String(message.outlierThreshold) : message.outlierThreshold; + return object; + }; + + /** + * Converts this ErrorAnalysisAnnotation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation + * @instance + * @returns {Object.} JSON object + */ + ErrorAnalysisAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ErrorAnalysisAnnotation + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ErrorAnalysisAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation"; + }; + + ErrorAnalysisAnnotation.AttributedItem = (function() { + + /** + * Properties of an AttributedItem. + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation + * @interface IAttributedItem + * @property {string|null} [annotationResourceName] AttributedItem annotationResourceName + * @property {number|null} [distance] AttributedItem distance + */ + + /** + * Constructs a new AttributedItem. + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation + * @classdesc Represents an AttributedItem. + * @implements IAttributedItem + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.IAttributedItem=} [properties] Properties to set + */ + function AttributedItem(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]]; + } + + /** + * AttributedItem annotationResourceName. + * @member {string} annotationResourceName + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem + * @instance + */ + AttributedItem.prototype.annotationResourceName = ""; + + /** + * AttributedItem distance. + * @member {number} distance + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem + * @instance + */ + AttributedItem.prototype.distance = 0; + + /** + * Creates a new AttributedItem instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem + * @static + * @param {google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.IAttributedItem=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem} AttributedItem instance + */ + AttributedItem.create = function create(properties) { + return new AttributedItem(properties); + }; + + /** + * Encodes the specified AttributedItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem + * @static + * @param {google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.IAttributedItem} message AttributedItem message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AttributedItem.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotationResourceName != null && Object.hasOwnProperty.call(message, "annotationResourceName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotationResourceName); + if (message.distance != null && Object.hasOwnProperty.call(message, "distance")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.distance); + return writer; + }; + + /** + * Encodes the specified AttributedItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem + * @static + * @param {google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.IAttributedItem} message AttributedItem message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AttributedItem.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AttributedItem message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem + * @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.ErrorAnalysisAnnotation.AttributedItem} AttributedItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AttributedItem.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.annotationResourceName = reader.string(); + break; + } + case 2: { + message.distance = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AttributedItem message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem} AttributedItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AttributedItem.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AttributedItem message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AttributedItem.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotationResourceName != null && message.hasOwnProperty("annotationResourceName")) + if (!$util.isString(message.annotationResourceName)) + return "annotationResourceName: string expected"; + if (message.distance != null && message.hasOwnProperty("distance")) + if (typeof message.distance !== "number") + return "distance: number expected"; + return null; + }; + + /** + * Creates an AttributedItem message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem} AttributedItem + */ + AttributedItem.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem(); + if (object.annotationResourceName != null) + message.annotationResourceName = String(object.annotationResourceName); + if (object.distance != null) + message.distance = Number(object.distance); + return message; + }; + + /** + * Creates a plain object from an AttributedItem message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem + * @static + * @param {google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem} message AttributedItem + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AttributedItem.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.annotationResourceName = ""; + object.distance = 0; + } + if (message.annotationResourceName != null && message.hasOwnProperty("annotationResourceName")) + object.annotationResourceName = message.annotationResourceName; + if (message.distance != null && message.hasOwnProperty("distance")) + object.distance = options.json && !isFinite(message.distance) ? String(message.distance) : message.distance; + return object; + }; + + /** + * Converts this AttributedItem to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem + * @instance + * @returns {Object.} JSON object + */ + AttributedItem.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AttributedItem + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AttributedItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.AttributedItem"; + }; + + return AttributedItem; + })(); + + /** + * QueryType enum. + * @name google.cloud.aiplatform.v1beta1.ErrorAnalysisAnnotation.QueryType + * @enum {number} + * @property {number} QUERY_TYPE_UNSPECIFIED=0 QUERY_TYPE_UNSPECIFIED value + * @property {number} ALL_SIMILAR=1 ALL_SIMILAR value + * @property {number} SAME_CLASS_SIMILAR=2 SAME_CLASS_SIMILAR value + * @property {number} SAME_CLASS_DISSIMILAR=3 SAME_CLASS_DISSIMILAR value + */ + ErrorAnalysisAnnotation.QueryType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "QUERY_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ALL_SIMILAR"] = 1; + values[valuesById[2] = "SAME_CLASS_SIMILAR"] = 2; + values[valuesById[3] = "SAME_CLASS_DISSIMILAR"] = 3; + return values; + })(); + + return ErrorAnalysisAnnotation; + })(); + v1beta1.Event = (function() { /** @@ -227703,6 +234781,7 @@ * @interface IScaling * @property {number|null} [minNodeCount] Scaling minNodeCount * @property {number|null} [maxNodeCount] Scaling maxNodeCount + * @property {number|null} [cpuUtilizationTarget] Scaling cpuUtilizationTarget */ /** @@ -227736,6 +234815,14 @@ */ Scaling.prototype.maxNodeCount = 0; + /** + * Scaling cpuUtilizationTarget. + * @member {number} cpuUtilizationTarget + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling + * @instance + */ + Scaling.prototype.cpuUtilizationTarget = 0; + /** * Creates a new Scaling instance using the specified properties. * @function create @@ -227764,6 +234851,8 @@ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.minNodeCount); if (message.maxNodeCount != null && Object.hasOwnProperty.call(message, "maxNodeCount")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxNodeCount); + if (message.cpuUtilizationTarget != null && Object.hasOwnProperty.call(message, "cpuUtilizationTarget")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.cpuUtilizationTarget); return writer; }; @@ -227806,6 +234895,10 @@ message.maxNodeCount = reader.int32(); break; } + case 3: { + message.cpuUtilizationTarget = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -227847,6 +234940,9 @@ if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) if (!$util.isInteger(message.maxNodeCount)) return "maxNodeCount: integer expected"; + if (message.cpuUtilizationTarget != null && message.hasOwnProperty("cpuUtilizationTarget")) + if (!$util.isInteger(message.cpuUtilizationTarget)) + return "cpuUtilizationTarget: integer expected"; return null; }; @@ -227866,6 +234962,8 @@ message.minNodeCount = object.minNodeCount | 0; if (object.maxNodeCount != null) message.maxNodeCount = object.maxNodeCount | 0; + if (object.cpuUtilizationTarget != null) + message.cpuUtilizationTarget = object.cpuUtilizationTarget | 0; return message; }; @@ -227885,11 +234983,14 @@ if (options.defaults) { object.minNodeCount = 0; object.maxNodeCount = 0; + object.cpuUtilizationTarget = 0; } if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) object.minNodeCount = message.minNodeCount; if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) object.maxNodeCount = message.maxNodeCount; + if (message.cpuUtilizationTarget != null && message.hasOwnProperty("cpuUtilizationTarget")) + object.cpuUtilizationTarget = message.cpuUtilizationTarget; return object; }; @@ -245116,6 +252217,8 @@ * Properties of a DeleteFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1beta1 * @interface IDeleteFeatureValuesResponse + * @property {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectEntity|null} [selectEntity] DeleteFeatureValuesResponse selectEntity + * @property {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature|null} [selectTimeRangeAndFeature] DeleteFeatureValuesResponse selectTimeRangeAndFeature */ /** @@ -245133,6 +252236,36 @@ this[keys[i]] = properties[keys[i]]; } + /** + * DeleteFeatureValuesResponse selectEntity. + * @member {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectEntity|null|undefined} selectEntity + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse + * @instance + */ + DeleteFeatureValuesResponse.prototype.selectEntity = null; + + /** + * DeleteFeatureValuesResponse selectTimeRangeAndFeature. + * @member {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature|null|undefined} selectTimeRangeAndFeature + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse + * @instance + */ + DeleteFeatureValuesResponse.prototype.selectTimeRangeAndFeature = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DeleteFeatureValuesResponse response. + * @member {"selectEntity"|"selectTimeRangeAndFeature"|undefined} response + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse + * @instance + */ + Object.defineProperty(DeleteFeatureValuesResponse.prototype, "response", { + get: $util.oneOfGetter($oneOfFields = ["selectEntity", "selectTimeRangeAndFeature"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new DeleteFeatureValuesResponse instance using the specified properties. * @function create @@ -245157,6 +252290,10 @@ DeleteFeatureValuesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.selectEntity != null && Object.hasOwnProperty.call(message, "selectEntity")) + $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity.encode(message.selectEntity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.selectTimeRangeAndFeature != null && Object.hasOwnProperty.call(message, "selectTimeRangeAndFeature")) + $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.encode(message.selectTimeRangeAndFeature, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -245191,6 +252328,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.selectEntity = $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity.decode(reader, reader.uint32()); + break; + } + case 2: { + message.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -245226,6 +252371,25 @@ DeleteFeatureValuesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.selectEntity != null && message.hasOwnProperty("selectEntity")) { + properties.response = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity.verify(message.selectEntity); + if (error) + return "selectEntity." + error; + } + } + if (message.selectTimeRangeAndFeature != null && message.hasOwnProperty("selectTimeRangeAndFeature")) { + if (properties.response === 1) + return "response: multiple values"; + properties.response = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify(message.selectTimeRangeAndFeature); + if (error) + return "selectTimeRangeAndFeature." + error; + } + } return null; }; @@ -245240,7 +252404,18 @@ DeleteFeatureValuesResponse.fromObject = function fromObject(object) { if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse) return object; - return new $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse(); + if (object.selectEntity != null) { + if (typeof object.selectEntity !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.selectEntity: object expected"); + message.selectEntity = $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity.fromObject(object.selectEntity); + } + if (object.selectTimeRangeAndFeature != null) { + if (typeof object.selectTimeRangeAndFeature !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.selectTimeRangeAndFeature: object expected"); + message.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.fromObject(object.selectTimeRangeAndFeature); + } + return message; }; /** @@ -245252,8 +252427,21 @@ * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteFeatureValuesResponse.toObject = function toObject() { - return {}; + DeleteFeatureValuesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.selectEntity != null && message.hasOwnProperty("selectEntity")) { + object.selectEntity = $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity.toObject(message.selectEntity, options); + if (options.oneofs) + object.response = "selectEntity"; + } + if (message.selectTimeRangeAndFeature != null && message.hasOwnProperty("selectTimeRangeAndFeature")) { + object.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.toObject(message.selectTimeRangeAndFeature, options); + if (options.oneofs) + object.response = "selectTimeRangeAndFeature"; + } + return object; }; /** @@ -245282,6 +252470,553 @@ return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse"; }; + DeleteFeatureValuesResponse.SelectEntity = (function() { + + /** + * Properties of a SelectEntity. + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse + * @interface ISelectEntity + * @property {number|Long|null} [offlineStorageDeletedEntityRowCount] SelectEntity offlineStorageDeletedEntityRowCount + * @property {number|Long|null} [onlineStorageDeletedEntityCount] SelectEntity onlineStorageDeletedEntityCount + */ + + /** + * Constructs a new SelectEntity. + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse + * @classdesc Represents a SelectEntity. + * @implements ISelectEntity + * @constructor + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectEntity=} [properties] Properties to set + */ + function SelectEntity(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]]; + } + + /** + * SelectEntity offlineStorageDeletedEntityRowCount. + * @member {number|Long} offlineStorageDeletedEntityRowCount + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity + * @instance + */ + SelectEntity.prototype.offlineStorageDeletedEntityRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SelectEntity onlineStorageDeletedEntityCount. + * @member {number|Long} onlineStorageDeletedEntityCount + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity + * @instance + */ + SelectEntity.prototype.onlineStorageDeletedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new SelectEntity instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectEntity=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity} SelectEntity instance + */ + SelectEntity.create = function create(properties) { + return new SelectEntity(properties); + }; + + /** + * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectEntity} message SelectEntity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectEntity.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.offlineStorageDeletedEntityRowCount != null && Object.hasOwnProperty.call(message, "offlineStorageDeletedEntityRowCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.offlineStorageDeletedEntityRowCount); + if (message.onlineStorageDeletedEntityCount != null && Object.hasOwnProperty.call(message, "onlineStorageDeletedEntityCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.onlineStorageDeletedEntityCount); + return writer; + }; + + /** + * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectEntity} message SelectEntity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectEntity.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SelectEntity message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity + * @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.DeleteFeatureValuesResponse.SelectEntity} SelectEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectEntity.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.offlineStorageDeletedEntityRowCount = reader.int64(); + break; + } + case 2: { + message.onlineStorageDeletedEntityCount = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SelectEntity message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity} SelectEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectEntity.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SelectEntity message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SelectEntity.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.offlineStorageDeletedEntityRowCount != null && message.hasOwnProperty("offlineStorageDeletedEntityRowCount")) + if (!$util.isInteger(message.offlineStorageDeletedEntityRowCount) && !(message.offlineStorageDeletedEntityRowCount && $util.isInteger(message.offlineStorageDeletedEntityRowCount.low) && $util.isInteger(message.offlineStorageDeletedEntityRowCount.high))) + return "offlineStorageDeletedEntityRowCount: integer|Long expected"; + if (message.onlineStorageDeletedEntityCount != null && message.hasOwnProperty("onlineStorageDeletedEntityCount")) + if (!$util.isInteger(message.onlineStorageDeletedEntityCount) && !(message.onlineStorageDeletedEntityCount && $util.isInteger(message.onlineStorageDeletedEntityCount.low) && $util.isInteger(message.onlineStorageDeletedEntityCount.high))) + return "onlineStorageDeletedEntityCount: integer|Long expected"; + return null; + }; + + /** + * Creates a SelectEntity message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity} SelectEntity + */ + SelectEntity.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity(); + if (object.offlineStorageDeletedEntityRowCount != null) + if ($util.Long) + (message.offlineStorageDeletedEntityRowCount = $util.Long.fromValue(object.offlineStorageDeletedEntityRowCount)).unsigned = false; + else if (typeof object.offlineStorageDeletedEntityRowCount === "string") + message.offlineStorageDeletedEntityRowCount = parseInt(object.offlineStorageDeletedEntityRowCount, 10); + else if (typeof object.offlineStorageDeletedEntityRowCount === "number") + message.offlineStorageDeletedEntityRowCount = object.offlineStorageDeletedEntityRowCount; + else if (typeof object.offlineStorageDeletedEntityRowCount === "object") + message.offlineStorageDeletedEntityRowCount = new $util.LongBits(object.offlineStorageDeletedEntityRowCount.low >>> 0, object.offlineStorageDeletedEntityRowCount.high >>> 0).toNumber(); + if (object.onlineStorageDeletedEntityCount != null) + if ($util.Long) + (message.onlineStorageDeletedEntityCount = $util.Long.fromValue(object.onlineStorageDeletedEntityCount)).unsigned = false; + else if (typeof object.onlineStorageDeletedEntityCount === "string") + message.onlineStorageDeletedEntityCount = parseInt(object.onlineStorageDeletedEntityCount, 10); + else if (typeof object.onlineStorageDeletedEntityCount === "number") + message.onlineStorageDeletedEntityCount = object.onlineStorageDeletedEntityCount; + else if (typeof object.onlineStorageDeletedEntityCount === "object") + message.onlineStorageDeletedEntityCount = new $util.LongBits(object.onlineStorageDeletedEntityCount.low >>> 0, object.onlineStorageDeletedEntityCount.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity} message SelectEntity + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SelectEntity.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.offlineStorageDeletedEntityRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.offlineStorageDeletedEntityRowCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.onlineStorageDeletedEntityCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.onlineStorageDeletedEntityCount = options.longs === String ? "0" : 0; + } + if (message.offlineStorageDeletedEntityRowCount != null && message.hasOwnProperty("offlineStorageDeletedEntityRowCount")) + if (typeof message.offlineStorageDeletedEntityRowCount === "number") + object.offlineStorageDeletedEntityRowCount = options.longs === String ? String(message.offlineStorageDeletedEntityRowCount) : message.offlineStorageDeletedEntityRowCount; + else + object.offlineStorageDeletedEntityRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.offlineStorageDeletedEntityRowCount) : options.longs === Number ? new $util.LongBits(message.offlineStorageDeletedEntityRowCount.low >>> 0, message.offlineStorageDeletedEntityRowCount.high >>> 0).toNumber() : message.offlineStorageDeletedEntityRowCount; + if (message.onlineStorageDeletedEntityCount != null && message.hasOwnProperty("onlineStorageDeletedEntityCount")) + if (typeof message.onlineStorageDeletedEntityCount === "number") + object.onlineStorageDeletedEntityCount = options.longs === String ? String(message.onlineStorageDeletedEntityCount) : message.onlineStorageDeletedEntityCount; + else + object.onlineStorageDeletedEntityCount = options.longs === String ? $util.Long.prototype.toString.call(message.onlineStorageDeletedEntityCount) : options.longs === Number ? new $util.LongBits(message.onlineStorageDeletedEntityCount.low >>> 0, message.onlineStorageDeletedEntityCount.high >>> 0).toNumber() : message.onlineStorageDeletedEntityCount; + return object; + }; + + /** + * Converts this SelectEntity to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity + * @instance + * @returns {Object.} JSON object + */ + SelectEntity.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SelectEntity + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SelectEntity.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectEntity"; + }; + + return SelectEntity; + })(); + + DeleteFeatureValuesResponse.SelectTimeRangeAndFeature = (function() { + + /** + * Properties of a SelectTimeRangeAndFeature. + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse + * @interface ISelectTimeRangeAndFeature + * @property {number|Long|null} [impactedFeatureCount] SelectTimeRangeAndFeature impactedFeatureCount + * @property {number|Long|null} [offlineStorageModifiedEntityRowCount] SelectTimeRangeAndFeature offlineStorageModifiedEntityRowCount + * @property {number|Long|null} [onlineStorageModifiedEntityCount] SelectTimeRangeAndFeature onlineStorageModifiedEntityCount + */ + + /** + * Constructs a new SelectTimeRangeAndFeature. + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse + * @classdesc Represents a SelectTimeRangeAndFeature. + * @implements ISelectTimeRangeAndFeature + * @constructor + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature=} [properties] Properties to set + */ + function SelectTimeRangeAndFeature(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]]; + } + + /** + * SelectTimeRangeAndFeature impactedFeatureCount. + * @member {number|Long} impactedFeatureCount + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.impactedFeatureCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SelectTimeRangeAndFeature offlineStorageModifiedEntityRowCount. + * @member {number|Long} offlineStorageModifiedEntityRowCount + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.offlineStorageModifiedEntityRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SelectTimeRangeAndFeature onlineStorageModifiedEntityCount. + * @member {number|Long} onlineStorageModifiedEntityCount + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.onlineStorageModifiedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new SelectTimeRangeAndFeature instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature instance + */ + SelectTimeRangeAndFeature.create = function create(properties) { + return new SelectTimeRangeAndFeature(properties); + }; + + /** + * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature} message SelectTimeRangeAndFeature message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectTimeRangeAndFeature.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.impactedFeatureCount != null && Object.hasOwnProperty.call(message, "impactedFeatureCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.impactedFeatureCount); + if (message.offlineStorageModifiedEntityRowCount != null && Object.hasOwnProperty.call(message, "offlineStorageModifiedEntityRowCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.offlineStorageModifiedEntityRowCount); + if (message.onlineStorageModifiedEntityCount != null && Object.hasOwnProperty.call(message, "onlineStorageModifiedEntityCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.onlineStorageModifiedEntityCount); + return writer; + }; + + /** + * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature} message SelectTimeRangeAndFeature message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectTimeRangeAndFeature.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @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.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectTimeRangeAndFeature.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.impactedFeatureCount = reader.int64(); + break; + } + case 2: { + message.offlineStorageModifiedEntityRowCount = reader.int64(); + break; + } + case 3: { + message.onlineStorageModifiedEntityCount = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectTimeRangeAndFeature.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SelectTimeRangeAndFeature message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SelectTimeRangeAndFeature.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.impactedFeatureCount != null && message.hasOwnProperty("impactedFeatureCount")) + if (!$util.isInteger(message.impactedFeatureCount) && !(message.impactedFeatureCount && $util.isInteger(message.impactedFeatureCount.low) && $util.isInteger(message.impactedFeatureCount.high))) + return "impactedFeatureCount: integer|Long expected"; + if (message.offlineStorageModifiedEntityRowCount != null && message.hasOwnProperty("offlineStorageModifiedEntityRowCount")) + if (!$util.isInteger(message.offlineStorageModifiedEntityRowCount) && !(message.offlineStorageModifiedEntityRowCount && $util.isInteger(message.offlineStorageModifiedEntityRowCount.low) && $util.isInteger(message.offlineStorageModifiedEntityRowCount.high))) + return "offlineStorageModifiedEntityRowCount: integer|Long expected"; + if (message.onlineStorageModifiedEntityCount != null && message.hasOwnProperty("onlineStorageModifiedEntityCount")) + if (!$util.isInteger(message.onlineStorageModifiedEntityCount) && !(message.onlineStorageModifiedEntityCount && $util.isInteger(message.onlineStorageModifiedEntityCount.low) && $util.isInteger(message.onlineStorageModifiedEntityCount.high))) + return "onlineStorageModifiedEntityCount: integer|Long expected"; + return null; + }; + + /** + * Creates a SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + */ + SelectTimeRangeAndFeature.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature(); + if (object.impactedFeatureCount != null) + if ($util.Long) + (message.impactedFeatureCount = $util.Long.fromValue(object.impactedFeatureCount)).unsigned = false; + else if (typeof object.impactedFeatureCount === "string") + message.impactedFeatureCount = parseInt(object.impactedFeatureCount, 10); + else if (typeof object.impactedFeatureCount === "number") + message.impactedFeatureCount = object.impactedFeatureCount; + else if (typeof object.impactedFeatureCount === "object") + message.impactedFeatureCount = new $util.LongBits(object.impactedFeatureCount.low >>> 0, object.impactedFeatureCount.high >>> 0).toNumber(); + if (object.offlineStorageModifiedEntityRowCount != null) + if ($util.Long) + (message.offlineStorageModifiedEntityRowCount = $util.Long.fromValue(object.offlineStorageModifiedEntityRowCount)).unsigned = false; + else if (typeof object.offlineStorageModifiedEntityRowCount === "string") + message.offlineStorageModifiedEntityRowCount = parseInt(object.offlineStorageModifiedEntityRowCount, 10); + else if (typeof object.offlineStorageModifiedEntityRowCount === "number") + message.offlineStorageModifiedEntityRowCount = object.offlineStorageModifiedEntityRowCount; + else if (typeof object.offlineStorageModifiedEntityRowCount === "object") + message.offlineStorageModifiedEntityRowCount = new $util.LongBits(object.offlineStorageModifiedEntityRowCount.low >>> 0, object.offlineStorageModifiedEntityRowCount.high >>> 0).toNumber(); + if (object.onlineStorageModifiedEntityCount != null) + if ($util.Long) + (message.onlineStorageModifiedEntityCount = $util.Long.fromValue(object.onlineStorageModifiedEntityCount)).unsigned = false; + else if (typeof object.onlineStorageModifiedEntityCount === "string") + message.onlineStorageModifiedEntityCount = parseInt(object.onlineStorageModifiedEntityCount, 10); + else if (typeof object.onlineStorageModifiedEntityCount === "number") + message.onlineStorageModifiedEntityCount = object.onlineStorageModifiedEntityCount; + else if (typeof object.onlineStorageModifiedEntityCount === "object") + message.onlineStorageModifiedEntityCount = new $util.LongBits(object.onlineStorageModifiedEntityCount.low >>> 0, object.onlineStorageModifiedEntityCount.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} message SelectTimeRangeAndFeature + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SelectTimeRangeAndFeature.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.impactedFeatureCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.impactedFeatureCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.offlineStorageModifiedEntityRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.offlineStorageModifiedEntityRowCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.onlineStorageModifiedEntityCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.onlineStorageModifiedEntityCount = options.longs === String ? "0" : 0; + } + if (message.impactedFeatureCount != null && message.hasOwnProperty("impactedFeatureCount")) + if (typeof message.impactedFeatureCount === "number") + object.impactedFeatureCount = options.longs === String ? String(message.impactedFeatureCount) : message.impactedFeatureCount; + else + object.impactedFeatureCount = options.longs === String ? $util.Long.prototype.toString.call(message.impactedFeatureCount) : options.longs === Number ? new $util.LongBits(message.impactedFeatureCount.low >>> 0, message.impactedFeatureCount.high >>> 0).toNumber() : message.impactedFeatureCount; + if (message.offlineStorageModifiedEntityRowCount != null && message.hasOwnProperty("offlineStorageModifiedEntityRowCount")) + if (typeof message.offlineStorageModifiedEntityRowCount === "number") + object.offlineStorageModifiedEntityRowCount = options.longs === String ? String(message.offlineStorageModifiedEntityRowCount) : message.offlineStorageModifiedEntityRowCount; + else + object.offlineStorageModifiedEntityRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.offlineStorageModifiedEntityRowCount) : options.longs === Number ? new $util.LongBits(message.offlineStorageModifiedEntityRowCount.low >>> 0, message.offlineStorageModifiedEntityRowCount.high >>> 0).toNumber() : message.offlineStorageModifiedEntityRowCount; + if (message.onlineStorageModifiedEntityCount != null && message.hasOwnProperty("onlineStorageModifiedEntityCount")) + if (typeof message.onlineStorageModifiedEntityCount === "number") + object.onlineStorageModifiedEntityCount = options.longs === String ? String(message.onlineStorageModifiedEntityCount) : message.onlineStorageModifiedEntityCount; + else + object.onlineStorageModifiedEntityCount = options.longs === String ? $util.Long.prototype.toString.call(message.onlineStorageModifiedEntityCount) : options.longs === Number ? new $util.LongBits(message.onlineStorageModifiedEntityCount.low >>> 0, message.onlineStorageModifiedEntityCount.high >>> 0).toNumber() : message.onlineStorageModifiedEntityCount; + return object; + }; + + /** + * Converts this SelectTimeRangeAndFeature to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @instance + * @returns {Object.} JSON object + */ + SelectTimeRangeAndFeature.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SelectTimeRangeAndFeature + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SelectTimeRangeAndFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature"; + }; + + return SelectTimeRangeAndFeature; + })(); + return DeleteFeatureValuesResponse; })(); @@ -301064,6 +308799,7 @@ * @property {string|null} [metricsSchemaUri] ModelEvaluationSlice metricsSchemaUri * @property {google.protobuf.IValue|null} [metrics] ModelEvaluationSlice metrics * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluationSlice createTime + * @property {google.cloud.aiplatform.v1beta1.IModelExplanation|null} [modelExplanation] ModelEvaluationSlice modelExplanation */ /** @@ -301121,6 +308857,14 @@ */ ModelEvaluationSlice.prototype.createTime = null; + /** + * ModelEvaluationSlice modelExplanation. + * @member {google.cloud.aiplatform.v1beta1.IModelExplanation|null|undefined} modelExplanation + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @instance + */ + ModelEvaluationSlice.prototype.modelExplanation = null; + /** * Creates a new ModelEvaluationSlice instance using the specified properties. * @function create @@ -301155,6 +308899,8 @@ $root.google.protobuf.Value.encode(message.metrics, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.modelExplanation != null && Object.hasOwnProperty.call(message, "modelExplanation")) + $root.google.cloud.aiplatform.v1beta1.ModelExplanation.encode(message.modelExplanation, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -301209,6 +308955,10 @@ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } + case 6: { + message.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -301265,6 +309015,11 @@ if (error) return "createTime." + error; } + if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.verify(message.modelExplanation); + if (error) + return "modelExplanation." + error; + } return null; }; @@ -301299,6 +309054,11 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } + if (object.modelExplanation != null) { + if (typeof object.modelExplanation !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.modelExplanation: object expected"); + message.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.fromObject(object.modelExplanation); + } return message; }; @@ -301321,6 +309081,7 @@ object.metricsSchemaUri = ""; object.metrics = null; object.createTime = null; + object.modelExplanation = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -301332,6 +309093,8 @@ object.metrics = $root.google.protobuf.Value.toObject(message.metrics, options); if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) + object.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.toObject(message.modelExplanation, options); return object; }; @@ -301369,6 +309132,7 @@ * @interface ISlice * @property {string|null} [dimension] Slice dimension * @property {string|null} [value] Slice value + * @property {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null} [sliceSpec] Slice sliceSpec */ /** @@ -301402,6 +309166,14 @@ */ Slice.prototype.value = ""; + /** + * Slice sliceSpec. + * @member {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null|undefined} sliceSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @instance + */ + Slice.prototype.sliceSpec = null; + /** * Creates a new Slice instance using the specified properties. * @function create @@ -301430,6 +309202,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.dimension); if (message.value != null && Object.hasOwnProperty.call(message, "value")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.sliceSpec != null && Object.hasOwnProperty.call(message, "sliceSpec")) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.encode(message.sliceSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -301472,6 +309246,10 @@ message.value = reader.string(); break; } + case 3: { + message.sliceSpec = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -301513,6 +309291,11 @@ if (message.value != null && message.hasOwnProperty("value")) if (!$util.isString(message.value)) return "value: string expected"; + if (message.sliceSpec != null && message.hasOwnProperty("sliceSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify(message.sliceSpec); + if (error) + return "sliceSpec." + error; + } return null; }; @@ -301532,6 +309315,11 @@ message.dimension = String(object.dimension); if (object.value != null) message.value = String(object.value); + if (object.sliceSpec != null) { + if (typeof object.sliceSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.sliceSpec: object expected"); + message.sliceSpec = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.fromObject(object.sliceSpec); + } return message; }; @@ -301551,11 +309339,14 @@ if (options.defaults) { object.dimension = ""; object.value = ""; + object.sliceSpec = null; } if (message.dimension != null && message.hasOwnProperty("dimension")) object.dimension = message.dimension; if (message.value != null && message.hasOwnProperty("value")) object.value = message.value; + if (message.sliceSpec != null && message.hasOwnProperty("sliceSpec")) + object.sliceSpec = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.toObject(message.sliceSpec, options); return object; }; @@ -301585,6 +309376,1025 @@ return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice"; }; + Slice.SliceSpec = (function() { + + /** + * Properties of a SliceSpec. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @interface ISliceSpec + * @property {Object.|null} [configs] SliceSpec configs + */ + + /** + * Constructs a new SliceSpec. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @classdesc Represents a SliceSpec. + * @implements ISliceSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec=} [properties] Properties to set + */ + function SliceSpec(properties) { + this.configs = {}; + 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]]; + } + + /** + * SliceSpec configs. + * @member {Object.} configs + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @instance + */ + SliceSpec.prototype.configs = $util.emptyObject; + + /** + * Creates a new SliceSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec} SliceSpec instance + */ + SliceSpec.create = function create(properties) { + return new SliceSpec(properties); + }; + + /** + * Encodes the specified SliceSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec} message SliceSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SliceSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.configs != null && Object.hasOwnProperty.call(message, "configs")) + for (var keys = Object.keys(message.configs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.encode(message.configs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified SliceSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec} message SliceSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SliceSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SliceSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @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.ModelEvaluationSlice.Slice.SliceSpec} SliceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SliceSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.configs === $util.emptyObject) + message.configs = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.configs[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SliceSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec} SliceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SliceSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SliceSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SliceSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.configs != null && message.hasOwnProperty("configs")) { + if (!$util.isObject(message.configs)) + return "configs: object expected"; + var key = Object.keys(message.configs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify(message.configs[key[i]]); + if (error) + return "configs." + error; + } + } + return null; + }; + + /** + * Creates a SliceSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec} SliceSpec + */ + SliceSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec(); + if (object.configs) { + if (typeof object.configs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.configs: object expected"); + message.configs = {}; + for (var keys = Object.keys(object.configs), i = 0; i < keys.length; ++i) { + if (typeof object.configs[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.configs: object expected"); + message.configs[keys[i]] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.fromObject(object.configs[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from a SliceSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec} message SliceSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SliceSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.configs = {}; + var keys2; + if (message.configs && (keys2 = Object.keys(message.configs)).length) { + object.configs = {}; + for (var j = 0; j < keys2.length; ++j) + object.configs[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.toObject(message.configs[keys2[j]], options); + } + return object; + }; + + /** + * Converts this SliceSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @instance + * @returns {Object.} JSON object + */ + SliceSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SliceSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SliceSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec"; + }; + + SliceSpec.SliceConfig = (function() { + + /** + * Properties of a SliceConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @interface ISliceConfig + * @property {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue|null} [value] SliceConfig value + * @property {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange|null} [range] SliceConfig range + * @property {google.protobuf.IBoolValue|null} [allValues] SliceConfig allValues + */ + + /** + * Constructs a new SliceConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @classdesc Represents a SliceConfig. + * @implements ISliceConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig=} [properties] Properties to set + */ + function SliceConfig(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]]; + } + + /** + * SliceConfig value. + * @member {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue|null|undefined} value + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @instance + */ + SliceConfig.prototype.value = null; + + /** + * SliceConfig range. + * @member {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange|null|undefined} range + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @instance + */ + SliceConfig.prototype.range = null; + + /** + * SliceConfig allValues. + * @member {google.protobuf.IBoolValue|null|undefined} allValues + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @instance + */ + SliceConfig.prototype.allValues = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SliceConfig kind. + * @member {"value"|"range"|"allValues"|undefined} kind + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @instance + */ + Object.defineProperty(SliceConfig.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["value", "range", "allValues"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SliceConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} SliceConfig instance + */ + SliceConfig.create = function create(properties) { + return new SliceConfig(properties); + }; + + /** + * Encodes the specified SliceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig} message SliceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SliceConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.range != null && Object.hasOwnProperty.call(message, "range")) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.encode(message.range, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.allValues != null && Object.hasOwnProperty.call(message, "allValues")) + $root.google.protobuf.BoolValue.encode(message.allValues, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SliceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig} message SliceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SliceConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SliceConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @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.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} SliceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SliceConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.decode(reader, reader.uint32()); + break; + } + case 2: { + message.range = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.decode(reader, reader.uint32()); + break; + } + case 3: { + message.allValues = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SliceConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} SliceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SliceConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SliceConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SliceConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.value != null && message.hasOwnProperty("value")) { + properties.kind = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify(message.value); + if (error) + return "value." + error; + } + } + if (message.range != null && message.hasOwnProperty("range")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify(message.range); + if (error) + return "range." + error; + } + } + if (message.allValues != null && message.hasOwnProperty("allValues")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.protobuf.BoolValue.verify(message.allValues); + if (error) + return "allValues." + error; + } + } + return null; + }; + + /** + * Creates a SliceConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} SliceConfig + */ + SliceConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig(); + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.value: object expected"); + message.value = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.fromObject(object.value); + } + if (object.range != null) { + if (typeof object.range !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.range: object expected"); + message.range = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.fromObject(object.range); + } + if (object.allValues != null) { + if (typeof object.allValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.allValues: object expected"); + message.allValues = $root.google.protobuf.BoolValue.fromObject(object.allValues); + } + return message; + }; + + /** + * Creates a plain object from a SliceConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} message SliceConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SliceConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.value != null && message.hasOwnProperty("value")) { + object.value = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.toObject(message.value, options); + if (options.oneofs) + object.kind = "value"; + } + if (message.range != null && message.hasOwnProperty("range")) { + object.range = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.toObject(message.range, options); + if (options.oneofs) + object.kind = "range"; + } + if (message.allValues != null && message.hasOwnProperty("allValues")) { + object.allValues = $root.google.protobuf.BoolValue.toObject(message.allValues, options); + if (options.oneofs) + object.kind = "allValues"; + } + return object; + }; + + /** + * Converts this SliceConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @instance + * @returns {Object.} JSON object + */ + SliceConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SliceConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SliceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig"; + }; + + return SliceConfig; + })(); + + SliceSpec.Range = (function() { + + /** + * Properties of a Range. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @interface IRange + * @property {number|null} [low] Range low + * @property {number|null} [high] Range high + */ + + /** + * Constructs a new Range. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @classdesc Represents a Range. + * @implements IRange + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange=} [properties] Properties to set + */ + function Range(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]]; + } + + /** + * Range low. + * @member {number} low + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @instance + */ + Range.prototype.low = 0; + + /** + * Range high. + * @member {number} high + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @instance + */ + Range.prototype.high = 0; + + /** + * Creates a new Range instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range} Range instance + */ + Range.create = function create(properties) { + return new Range(properties); + }; + + /** + * Encodes the specified Range message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange} message Range message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Range.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.low != null && Object.hasOwnProperty.call(message, "low")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.low); + if (message.high != null && Object.hasOwnProperty.call(message, "high")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.high); + return writer; + }; + + /** + * Encodes the specified Range message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange} message Range message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Range.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Range message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @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.ModelEvaluationSlice.Slice.SliceSpec.Range} Range + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Range.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.low = reader.float(); + break; + } + case 2: { + message.high = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Range message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range} Range + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Range.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Range message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Range.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.low != null && message.hasOwnProperty("low")) + if (typeof message.low !== "number") + return "low: number expected"; + if (message.high != null && message.hasOwnProperty("high")) + if (typeof message.high !== "number") + return "high: number expected"; + return null; + }; + + /** + * Creates a Range message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range} Range + */ + Range.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range(); + if (object.low != null) + message.low = Number(object.low); + if (object.high != null) + message.high = Number(object.high); + return message; + }; + + /** + * Creates a plain object from a Range message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range} message Range + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Range.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.low = 0; + object.high = 0; + } + if (message.low != null && message.hasOwnProperty("low")) + object.low = options.json && !isFinite(message.low) ? String(message.low) : message.low; + if (message.high != null && message.hasOwnProperty("high")) + object.high = options.json && !isFinite(message.high) ? String(message.high) : message.high; + return object; + }; + + /** + * Converts this Range to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @instance + * @returns {Object.} JSON object + */ + Range.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Range + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Range.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range"; + }; + + return Range; + })(); + + SliceSpec.Value = (function() { + + /** + * Properties of a Value. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @interface IValue + * @property {string|null} [stringValue] Value stringValue + * @property {number|null} [floatValue] Value floatValue + */ + + /** + * Constructs a new Value. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @classdesc Represents a Value. + * @implements IValue + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue=} [properties] Properties to set + */ + function Value(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]]; + } + + /** + * Value stringValue. + * @member {string|null|undefined} stringValue + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @instance + */ + Value.prototype.stringValue = null; + + /** + * Value floatValue. + * @member {number|null|undefined} floatValue + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @instance + */ + Value.prototype.floatValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Value kind. + * @member {"stringValue"|"floatValue"|undefined} kind + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @instance + */ + Object.defineProperty(Value.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["stringValue", "floatValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Value instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value} Value instance + */ + Value.create = function create(properties) { + return new Value(properties); + }; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue} message Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.stringValue); + if (message.floatValue != null && Object.hasOwnProperty.call(message, "floatValue")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.floatValue); + return writer; + }; + + /** + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue} message Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Value.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Value message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @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.ModelEvaluationSlice.Slice.SliceSpec.Value} Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.stringValue = reader.string(); + break; + } + case 2: { + message.floatValue = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Value message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value} Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Value.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Value message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + properties.kind = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } + if (message.floatValue != null && message.hasOwnProperty("floatValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.floatValue !== "number") + return "floatValue: number expected"; + } + return null; + }; + + /** + * Creates a Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value} Value + */ + Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value(); + if (object.stringValue != null) + message.stringValue = String(object.stringValue); + if (object.floatValue != null) + message.floatValue = Number(object.floatValue); + return message; + }; + + /** + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value} message Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Value.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + object.stringValue = message.stringValue; + if (options.oneofs) + object.kind = "stringValue"; + } + if (message.floatValue != null && message.hasOwnProperty("floatValue")) { + object.floatValue = options.json && !isFinite(message.floatValue) ? String(message.floatValue) : message.floatValue; + if (options.oneofs) + object.kind = "floatValue"; + } + return object; + }; + + /** + * Converts this Value to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @instance + * @returns {Object.} JSON object + */ + Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Value + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value"; + }; + + return Value; + })(); + + return SliceSpec; + })(); + return Slice; })(); @@ -302052,6 +310862,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|batchImportEvaluatedAnnotations}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef BatchImportEvaluatedAnnotationsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} [response] BatchImportEvaluatedAnnotationsResponse + */ + + /** + * Calls BatchImportEvaluatedAnnotations. + * @function batchImportEvaluatedAnnotations + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest} request BatchImportEvaluatedAnnotationsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.BatchImportEvaluatedAnnotationsCallback} callback Node-style callback called with the error, if any, and BatchImportEvaluatedAnnotationsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.batchImportEvaluatedAnnotations = function batchImportEvaluatedAnnotations(request, callback) { + return this.rpcCall(batchImportEvaluatedAnnotations, $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest, $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse, request, callback); + }, "name", { value: "BatchImportEvaluatedAnnotations" }); + + /** + * Calls BatchImportEvaluatedAnnotations. + * @function batchImportEvaluatedAnnotations + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest} request BatchImportEvaluatedAnnotationsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|getModelEvaluation}. * @memberof google.cloud.aiplatform.v1beta1.ModelService @@ -308339,6 +317182,457 @@ return BatchImportModelEvaluationSlicesResponse; })(); + v1beta1.BatchImportEvaluatedAnnotationsRequest = (function() { + + /** + * Properties of a BatchImportEvaluatedAnnotationsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IBatchImportEvaluatedAnnotationsRequest + * @property {string|null} [parent] BatchImportEvaluatedAnnotationsRequest parent + * @property {Array.|null} [evaluatedAnnotations] BatchImportEvaluatedAnnotationsRequest evaluatedAnnotations + */ + + /** + * Constructs a new BatchImportEvaluatedAnnotationsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a BatchImportEvaluatedAnnotationsRequest. + * @implements IBatchImportEvaluatedAnnotationsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest=} [properties] Properties to set + */ + function BatchImportEvaluatedAnnotationsRequest(properties) { + this.evaluatedAnnotations = []; + 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]]; + } + + /** + * BatchImportEvaluatedAnnotationsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @instance + */ + BatchImportEvaluatedAnnotationsRequest.prototype.parent = ""; + + /** + * BatchImportEvaluatedAnnotationsRequest evaluatedAnnotations. + * @member {Array.} evaluatedAnnotations + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @instance + */ + BatchImportEvaluatedAnnotationsRequest.prototype.evaluatedAnnotations = $util.emptyArray; + + /** + * Creates a new BatchImportEvaluatedAnnotationsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest} BatchImportEvaluatedAnnotationsRequest instance + */ + BatchImportEvaluatedAnnotationsRequest.create = function create(properties) { + return new BatchImportEvaluatedAnnotationsRequest(properties); + }; + + /** + * Encodes the specified BatchImportEvaluatedAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest} message BatchImportEvaluatedAnnotationsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportEvaluatedAnnotationsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.evaluatedAnnotations != null && message.evaluatedAnnotations.length) + for (var i = 0; i < message.evaluatedAnnotations.length; ++i) + $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.encode(message.evaluatedAnnotations[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchImportEvaluatedAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest} message BatchImportEvaluatedAnnotationsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportEvaluatedAnnotationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchImportEvaluatedAnnotationsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @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.BatchImportEvaluatedAnnotationsRequest} BatchImportEvaluatedAnnotationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportEvaluatedAnnotationsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + if (!(message.evaluatedAnnotations && message.evaluatedAnnotations.length)) + message.evaluatedAnnotations = []; + message.evaluatedAnnotations.push($root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchImportEvaluatedAnnotationsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest} BatchImportEvaluatedAnnotationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportEvaluatedAnnotationsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchImportEvaluatedAnnotationsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchImportEvaluatedAnnotationsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.evaluatedAnnotations != null && message.hasOwnProperty("evaluatedAnnotations")) { + if (!Array.isArray(message.evaluatedAnnotations)) + return "evaluatedAnnotations: array expected"; + for (var i = 0; i < message.evaluatedAnnotations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.verify(message.evaluatedAnnotations[i]); + if (error) + return "evaluatedAnnotations." + error; + } + } + return null; + }; + + /** + * Creates a BatchImportEvaluatedAnnotationsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest} BatchImportEvaluatedAnnotationsRequest + */ + BatchImportEvaluatedAnnotationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.evaluatedAnnotations) { + if (!Array.isArray(object.evaluatedAnnotations)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.evaluatedAnnotations: array expected"); + message.evaluatedAnnotations = []; + for (var i = 0; i < object.evaluatedAnnotations.length; ++i) { + if (typeof object.evaluatedAnnotations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.evaluatedAnnotations: object expected"); + message.evaluatedAnnotations[i] = $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.fromObject(object.evaluatedAnnotations[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BatchImportEvaluatedAnnotationsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest} message BatchImportEvaluatedAnnotationsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchImportEvaluatedAnnotationsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.evaluatedAnnotations = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.evaluatedAnnotations && message.evaluatedAnnotations.length) { + object.evaluatedAnnotations = []; + for (var j = 0; j < message.evaluatedAnnotations.length; ++j) + object.evaluatedAnnotations[j] = $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.toObject(message.evaluatedAnnotations[j], options); + } + return object; + }; + + /** + * Converts this BatchImportEvaluatedAnnotationsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @instance + * @returns {Object.} JSON object + */ + BatchImportEvaluatedAnnotationsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BatchImportEvaluatedAnnotationsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchImportEvaluatedAnnotationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest"; + }; + + return BatchImportEvaluatedAnnotationsRequest; + })(); + + v1beta1.BatchImportEvaluatedAnnotationsResponse = (function() { + + /** + * Properties of a BatchImportEvaluatedAnnotationsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IBatchImportEvaluatedAnnotationsResponse + * @property {number|null} [importedEvaluatedAnnotationsCount] BatchImportEvaluatedAnnotationsResponse importedEvaluatedAnnotationsCount + */ + + /** + * Constructs a new BatchImportEvaluatedAnnotationsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a BatchImportEvaluatedAnnotationsResponse. + * @implements IBatchImportEvaluatedAnnotationsResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse=} [properties] Properties to set + */ + function BatchImportEvaluatedAnnotationsResponse(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]]; + } + + /** + * BatchImportEvaluatedAnnotationsResponse importedEvaluatedAnnotationsCount. + * @member {number} importedEvaluatedAnnotationsCount + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @instance + */ + BatchImportEvaluatedAnnotationsResponse.prototype.importedEvaluatedAnnotationsCount = 0; + + /** + * Creates a new BatchImportEvaluatedAnnotationsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} BatchImportEvaluatedAnnotationsResponse instance + */ + BatchImportEvaluatedAnnotationsResponse.create = function create(properties) { + return new BatchImportEvaluatedAnnotationsResponse(properties); + }; + + /** + * Encodes the specified BatchImportEvaluatedAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse} message BatchImportEvaluatedAnnotationsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportEvaluatedAnnotationsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.importedEvaluatedAnnotationsCount != null && Object.hasOwnProperty.call(message, "importedEvaluatedAnnotationsCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.importedEvaluatedAnnotationsCount); + return writer; + }; + + /** + * Encodes the specified BatchImportEvaluatedAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse} message BatchImportEvaluatedAnnotationsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportEvaluatedAnnotationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchImportEvaluatedAnnotationsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @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.BatchImportEvaluatedAnnotationsResponse} BatchImportEvaluatedAnnotationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportEvaluatedAnnotationsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.importedEvaluatedAnnotationsCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchImportEvaluatedAnnotationsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} BatchImportEvaluatedAnnotationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportEvaluatedAnnotationsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchImportEvaluatedAnnotationsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchImportEvaluatedAnnotationsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.importedEvaluatedAnnotationsCount != null && message.hasOwnProperty("importedEvaluatedAnnotationsCount")) + if (!$util.isInteger(message.importedEvaluatedAnnotationsCount)) + return "importedEvaluatedAnnotationsCount: integer expected"; + return null; + }; + + /** + * Creates a BatchImportEvaluatedAnnotationsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} BatchImportEvaluatedAnnotationsResponse + */ + BatchImportEvaluatedAnnotationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse(); + if (object.importedEvaluatedAnnotationsCount != null) + message.importedEvaluatedAnnotationsCount = object.importedEvaluatedAnnotationsCount | 0; + return message; + }; + + /** + * Creates a plain object from a BatchImportEvaluatedAnnotationsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} message BatchImportEvaluatedAnnotationsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchImportEvaluatedAnnotationsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.importedEvaluatedAnnotationsCount = 0; + if (message.importedEvaluatedAnnotationsCount != null && message.hasOwnProperty("importedEvaluatedAnnotationsCount")) + object.importedEvaluatedAnnotationsCount = message.importedEvaluatedAnnotationsCount; + return object; + }; + + /** + * Converts this BatchImportEvaluatedAnnotationsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @instance + * @returns {Object.} JSON object + */ + BatchImportEvaluatedAnnotationsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BatchImportEvaluatedAnnotationsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchImportEvaluatedAnnotationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse"; + }; + + return BatchImportEvaluatedAnnotationsResponse; + })(); + v1beta1.GetModelEvaluationRequest = (function() { /** diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index f7fd1296325..f919469a165 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -29,7 +29,8 @@ "NVIDIA_TESLA_T4": 5, "NVIDIA_TESLA_A100": 8, "TPU_V2": 6, - "TPU_V3": 7 + "TPU_V3": 7, + "TPU_V4_POD": 10 } }, "Annotation": { @@ -401,6 +402,10 @@ "encryptionSpec": { "type": "EncryptionSpec", "id": 24 + }, + "disableContainerLogging": { + "type": "bool", + "id": 34 } }, "nested": { @@ -2502,6 +2507,11 @@ "oneof": [ "gcsDestination" ] + }, + "split": { + "oneof": [ + "fractionSplit" + ] } }, "fields": { @@ -2509,12 +2519,32 @@ "type": "GcsDestination", "id": 1 }, + "fractionSplit": { + "type": "ExportFractionSplit", + "id": 5 + }, "annotationsFilter": { "type": "string", "id": 2 } } }, + "ExportFractionSplit": { + "fields": { + "trainingFraction": { + "type": "double", + "id": 1 + }, + "validationFraction": { + "type": "double", + "id": 2 + }, + "testFraction": { + "type": "double", + "id": 3 + } + } + }, "SavedQuery": { "options": { "(google.api.resource).type": "aiplatform.googleapis.com/SavedQuery", @@ -4109,6 +4139,122 @@ } } }, + "EvaluatedAnnotation": { + "fields": { + "type": { + "type": "EvaluatedAnnotationType", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "predictions": { + "rule": "repeated", + "type": "google.protobuf.Value", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "groundTruths": { + "rule": "repeated", + "type": "google.protobuf.Value", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "dataItemPayload": { + "type": "google.protobuf.Value", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "evaluatedDataItemViewId": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "explanations": { + "rule": "repeated", + "type": "EvaluatedAnnotationExplanation", + "id": 8 + }, + "errorAnalysisAnnotations": { + "rule": "repeated", + "type": "ErrorAnalysisAnnotation", + "id": 9 + } + }, + "nested": { + "EvaluatedAnnotationType": { + "values": { + "EVALUATED_ANNOTATION_TYPE_UNSPECIFIED": 0, + "TRUE_POSITIVE": 1, + "FALSE_POSITIVE": 2, + "FALSE_NEGATIVE": 3 + } + } + } + }, + "EvaluatedAnnotationExplanation": { + "fields": { + "explanationType": { + "type": "string", + "id": 1 + }, + "explanation": { + "type": "Explanation", + "id": 2 + } + } + }, + "ErrorAnalysisAnnotation": { + "fields": { + "attributedItems": { + "rule": "repeated", + "type": "AttributedItem", + "id": 1 + }, + "queryType": { + "type": "QueryType", + "id": 2 + }, + "outlierScore": { + "type": "double", + "id": 3 + }, + "outlierThreshold": { + "type": "double", + "id": 4 + } + }, + "nested": { + "AttributedItem": { + "fields": { + "annotationResourceName": { + "type": "string", + "id": 1 + }, + "distance": { + "type": "double", + "id": 2 + } + } + }, + "QueryType": { + "values": { + "QUERY_TYPE_UNSPECIFIED": 0, + "ALL_SIMILAR": 1, + "SAME_CLASS_SIMILAR": 2, + "SAME_CLASS_DISSIMILAR": 3 + } + } + } + }, "Event": { "fields": { "artifact": { @@ -4486,6 +4632,13 @@ "maxNodeCount": { "type": "int32", "id": 2 + }, + "cpuUtilizationTarget": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } } @@ -5322,6 +5475,34 @@ } ] }, + "DeleteFeatureValues": { + "requestType": "DeleteFeatureValuesRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:deleteFeatureValues", + "(google.api.http).body": "*", + "(google.api.method_signature)": "entity_type", + "(google.longrunning.operation_info).response_type": "DeleteFeatureValuesResponse", + "(google.longrunning.operation_info).metadata_type": "DeleteFeatureValuesOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:deleteFeatureValues", + "body": "*" + } + }, + { + "(google.api.method_signature)": "entity_type" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "DeleteFeatureValuesResponse", + "metadata_type": "DeleteFeatureValuesOperationMetadata" + } + } + ] + }, "SearchFeatures": { "requestType": "SearchFeaturesRequest", "responseType": "SearchFeaturesResponse", @@ -6129,6 +6310,14 @@ } } }, + "DeleteFeatureValuesOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, "CreateEntityTypeOperationMetadata": { "fields": { "genericMetadata": { @@ -6153,6 +6342,138 @@ } } }, + "DeleteFeatureValuesRequest": { + "oneofs": { + "DeleteOption": { + "oneof": [ + "selectEntity", + "selectTimeRangeAndFeature" + ] + } + }, + "fields": { + "selectEntity": { + "type": "SelectEntity", + "id": 2 + }, + "selectTimeRangeAndFeature": { + "type": "SelectTimeRangeAndFeature", + "id": 3 + }, + "entityType": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/EntityType" + } + } + }, + "nested": { + "SelectEntity": { + "fields": { + "entityIdSelector": { + "type": "EntityIdSelector", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SelectTimeRangeAndFeature": { + "fields": { + "timeRange": { + "type": "google.type.Interval", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "featureSelector": { + "type": "FeatureSelector", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "skipOnlineStorageDelete": { + "type": "bool", + "id": 3 + } + } + } + } + }, + "DeleteFeatureValuesResponse": { + "oneofs": { + "response": { + "oneof": [ + "selectEntity", + "selectTimeRangeAndFeature" + ] + } + }, + "fields": { + "selectEntity": { + "type": "SelectEntity", + "id": 1 + }, + "selectTimeRangeAndFeature": { + "type": "SelectTimeRangeAndFeature", + "id": 2 + } + }, + "nested": { + "SelectEntity": { + "fields": { + "offlineStorageDeletedEntityRowCount": { + "type": "int64", + "id": 1 + }, + "onlineStorageDeletedEntityCount": { + "type": "int64", + "id": 2 + } + } + }, + "SelectTimeRangeAndFeature": { + "fields": { + "impactedFeatureCount": { + "type": "int64", + "id": 1 + }, + "offlineStorageModifiedEntityRowCount": { + "type": "int64", + "id": 2 + }, + "onlineStorageModifiedEntityCount": { + "type": "int64", + "id": 3 + } + } + } + } + }, + "EntityIdSelector": { + "oneofs": { + "EntityIdsSource": { + "oneof": [ + "csvSource" + ] + } + }, + "fields": { + "csvSource": { + "type": "CsvSource", + "id": 3 + }, + "entityIdField": { + "type": "string", + "id": 5 + } + } + }, "HyperparameterTuningJob": { "options": { "(google.api.resource).type": "aiplatform.googleapis.com/HyperparameterTuningJob", @@ -10193,6 +10514,7 @@ "type": "bool", "id": 14, "options": { + "deprecated": true, "(google.api.field_behavior)": "OPTIONAL" } } @@ -12670,6 +12992,13 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "modelExplanation": { + "type": "ModelExplanation", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -12688,6 +13017,83 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "sliceSpec": { + "type": "SliceSpec", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "SliceSpec": { + "fields": { + "configs": { + "keyType": "string", + "type": "SliceConfig", + "id": 1 + } + }, + "nested": { + "SliceConfig": { + "oneofs": { + "kind": { + "oneof": [ + "value", + "range", + "allValues" + ] + } + }, + "fields": { + "value": { + "type": "Value", + "id": 1 + }, + "range": { + "type": "Range", + "id": 2 + }, + "allValues": { + "type": "google.protobuf.BoolValue", + "id": 3 + } + } + }, + "Range": { + "fields": { + "low": { + "type": "float", + "id": 1 + }, + "high": { + "type": "float", + "id": 2 + } + } + }, + "Value": { + "oneofs": { + "kind": { + "oneof": [ + "stringValue", + "floatValue" + ] + } + }, + "fields": { + "stringValue": { + "type": "string", + "id": 1 + }, + "floatValue": { + "type": "float", + "id": 2 + } + } + } + } } } } @@ -12969,6 +13375,26 @@ } ] }, + "BatchImportEvaluatedAnnotations": { + "requestType": "BatchImportEvaluatedAnnotationsRequest", + "responseType": "BatchImportEvaluatedAnnotationsResponse", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/models/*/evaluations/*/slices/*}:batchImport", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent,evaluated_annotations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*/models/*/evaluations/*/slices/*}:batchImport", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent,evaluated_annotations" + } + ] + }, "GetModelEvaluation": { "requestType": "GetModelEvaluationRequest", "responseType": "ModelEvaluation", @@ -13472,6 +13898,37 @@ } } }, + "BatchImportEvaluatedAnnotationsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelEvaluationSlice" + } + }, + "evaluatedAnnotations": { + "rule": "repeated", + "type": "EvaluatedAnnotation", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "BatchImportEvaluatedAnnotationsResponse": { + "fields": { + "importedEvaluatedAnnotationsCount": { + "type": "int32", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, "GetModelEvaluationRequest": { "fields": { "name": { @@ -18693,7 +19150,8 @@ "NVIDIA_TESLA_A100": 8, "NVIDIA_A100_80GB": 9, "TPU_V2": 6, - "TPU_V3": 7 + "TPU_V3": 7, + "TPU_V4_POD": 10 } }, "Annotation": { @@ -19081,6 +19539,10 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "disableContainerLogging": { + "type": "bool", + "id": 34 } }, "nested": { @@ -20895,6 +21357,13 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "largeModelReference": { + "type": "LargeModelReference", + "id": 45, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -20938,6 +21407,17 @@ } } }, + "LargeModelReference": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "DeploymentResourcesType": { "values": { "DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED": 0, @@ -21794,6 +22274,11 @@ "oneof": [ "gcsDestination" ] + }, + "split": { + "oneof": [ + "fractionSplit" + ] } }, "fields": { @@ -21801,12 +22286,32 @@ "type": "GcsDestination", "id": 1 }, + "fractionSplit": { + "type": "ExportFractionSplit", + "id": 5 + }, "annotationsFilter": { "type": "string", "id": 2 } } }, + "ExportFractionSplit": { + "fields": { + "trainingFraction": { + "type": "double", + "id": 1 + }, + "validationFraction": { + "type": "double", + "id": 2 + }, + "testFraction": { + "type": "double", + "id": 3 + } + } + }, "SavedQuery": { "options": { "(google.api.resource).type": "aiplatform.googleapis.com/SavedQuery", @@ -23715,6 +24220,122 @@ } } }, + "EvaluatedAnnotation": { + "fields": { + "type": { + "type": "EvaluatedAnnotationType", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "predictions": { + "rule": "repeated", + "type": "google.protobuf.Value", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "groundTruths": { + "rule": "repeated", + "type": "google.protobuf.Value", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "dataItemPayload": { + "type": "google.protobuf.Value", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "evaluatedDataItemViewId": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "explanations": { + "rule": "repeated", + "type": "EvaluatedAnnotationExplanation", + "id": 8 + }, + "errorAnalysisAnnotations": { + "rule": "repeated", + "type": "ErrorAnalysisAnnotation", + "id": 9 + } + }, + "nested": { + "EvaluatedAnnotationType": { + "values": { + "EVALUATED_ANNOTATION_TYPE_UNSPECIFIED": 0, + "TRUE_POSITIVE": 1, + "FALSE_POSITIVE": 2, + "FALSE_NEGATIVE": 3 + } + } + } + }, + "EvaluatedAnnotationExplanation": { + "fields": { + "explanationType": { + "type": "string", + "id": 1 + }, + "explanation": { + "type": "Explanation", + "id": 2 + } + } + }, + "ErrorAnalysisAnnotation": { + "fields": { + "attributedItems": { + "rule": "repeated", + "type": "AttributedItem", + "id": 1 + }, + "queryType": { + "type": "QueryType", + "id": 2 + }, + "outlierScore": { + "type": "double", + "id": 3 + }, + "outlierThreshold": { + "type": "double", + "id": 4 + } + }, + "nested": { + "AttributedItem": { + "fields": { + "annotationResourceName": { + "type": "string", + "id": 1 + }, + "distance": { + "type": "double", + "id": 2 + } + } + }, + "QueryType": { + "values": { + "QUERY_TYPE_UNSPECIFIED": 0, + "ALL_SIMILAR": 1, + "SAME_CLASS_SIMILAR": 2, + "SAME_CLASS_DISSIMILAR": 3 + } + } + } + }, "Event": { "fields": { "artifact": { @@ -24083,6 +24704,13 @@ "maxNodeCount": { "type": "int32", "id": 2 + }, + "cpuUtilizationTarget": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } } @@ -25850,7 +26478,54 @@ } }, "DeleteFeatureValuesResponse": { - "fields": {} + "oneofs": { + "response": { + "oneof": [ + "selectEntity", + "selectTimeRangeAndFeature" + ] + } + }, + "fields": { + "selectEntity": { + "type": "SelectEntity", + "id": 1 + }, + "selectTimeRangeAndFeature": { + "type": "SelectTimeRangeAndFeature", + "id": 2 + } + }, + "nested": { + "SelectEntity": { + "fields": { + "offlineStorageDeletedEntityRowCount": { + "type": "int64", + "id": 1 + }, + "onlineStorageDeletedEntityCount": { + "type": "int64", + "id": 2 + } + } + }, + "SelectTimeRangeAndFeature": { + "fields": { + "impactedFeatureCount": { + "type": "int64", + "id": 1 + }, + "offlineStorageModifiedEntityRowCount": { + "type": "int64", + "id": 2 + }, + "onlineStorageModifiedEntityCount": { + "type": "int64", + "id": 3 + } + } + } + } }, "EntityIdSelector": { "oneofs": { @@ -29478,6 +30153,7 @@ "type": "bool", "id": 14, "options": { + "deprecated": true, "(google.api.field_behavior)": "OPTIONAL" } } @@ -32107,6 +32783,13 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "modelExplanation": { + "type": "ModelExplanation", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -32125,6 +32808,83 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "sliceSpec": { + "type": "SliceSpec", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "SliceSpec": { + "fields": { + "configs": { + "keyType": "string", + "type": "SliceConfig", + "id": 1 + } + }, + "nested": { + "SliceConfig": { + "oneofs": { + "kind": { + "oneof": [ + "value", + "range", + "allValues" + ] + } + }, + "fields": { + "value": { + "type": "Value", + "id": 1 + }, + "range": { + "type": "Range", + "id": 2 + }, + "allValues": { + "type": "google.protobuf.BoolValue", + "id": 3 + } + } + }, + "Range": { + "fields": { + "low": { + "type": "float", + "id": 1 + }, + "high": { + "type": "float", + "id": 2 + } + } + }, + "Value": { + "oneofs": { + "kind": { + "oneof": [ + "stringValue", + "floatValue" + ] + } + }, + "fields": { + "stringValue": { + "type": "string", + "id": 1 + }, + "floatValue": { + "type": "float", + "id": 2 + } + } + } + } } } } @@ -32434,6 +33194,26 @@ } ] }, + "BatchImportEvaluatedAnnotations": { + "requestType": "BatchImportEvaluatedAnnotationsRequest", + "responseType": "BatchImportEvaluatedAnnotationsResponse", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/models/*/evaluations/*/slices/*}:batchImport", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent,evaluated_annotations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*/models/*/evaluations/*/slices/*}:batchImport", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent,evaluated_annotations" + } + ] + }, "GetModelEvaluation": { "requestType": "GetModelEvaluationRequest", "responseType": "ModelEvaluation", @@ -32960,6 +33740,37 @@ } } }, + "BatchImportEvaluatedAnnotationsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelEvaluationSlice" + } + }, + "evaluatedAnnotations": { + "rule": "repeated", + "type": "EvaluatedAnnotation", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "BatchImportEvaluatedAnnotationsResponse": { + "fields": { + "importedEvaluatedAnnotationsCount": { + "type": "int32", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, "GetModelEvaluationRequest": { "fields": { "name": { diff --git a/packages/google-cloud-aiplatform/samples/README.md b/packages/google-cloud-aiplatform/samples/README.md index 30efdb06f5d..125ea3a8b5f 100644 --- a/packages/google-cloud-aiplatform/samples/README.md +++ b/packages/google-cloud-aiplatform/samples/README.md @@ -41,6 +41,7 @@ * [Featurestore_service.create_featurestore](#featurestore_service.create_featurestore) * [Featurestore_service.delete_entity_type](#featurestore_service.delete_entity_type) * [Featurestore_service.delete_feature](#featurestore_service.delete_feature) + * [Featurestore_service.delete_feature_values](#featurestore_service.delete_feature_values) * [Featurestore_service.delete_featurestore](#featurestore_service.delete_featurestore) * [Featurestore_service.export_feature_values](#featurestore_service.export_feature_values) * [Featurestore_service.get_entity_type](#featurestore_service.get_entity_type) @@ -138,6 +139,7 @@ * [Metadata_service.update_execution](#metadata_service.update_execution) * [Migration_service.batch_migrate_resources](#migration_service.batch_migrate_resources) * [Migration_service.search_migratable_resources](#migration_service.search_migratable_resources) + * [Model_service.batch_import_evaluated_annotations](#model_service.batch_import_evaluated_annotations) * [Model_service.batch_import_model_evaluation_slices](#model_service.batch_import_model_evaluation_slices) * [Model_service.copy_model](#model_service.copy_model) * [Model_service.delete_model](#model_service.delete_model) @@ -350,6 +352,7 @@ * [Metadata_service.update_execution](#metadata_service.update_execution) * [Migration_service.batch_migrate_resources](#migration_service.batch_migrate_resources) * [Migration_service.search_migratable_resources](#migration_service.search_migratable_resources) + * [Model_service.batch_import_evaluated_annotations](#model_service.batch_import_evaluated_annotations) * [Model_service.batch_import_model_evaluation_slices](#model_service.batch_import_model_evaluation_slices) * [Model_service.copy_model](#model_service.copy_model) * [Model_service.delete_model](#model_service.delete_model) @@ -940,6 +943,23 @@ __Usage:__ +### Featurestore_service.delete_feature_values + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_feature_values.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_feature_values.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_feature_values.js` + + +----- + + + + ### Featurestore_service.delete_featurestore View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_featurestore.js). @@ -2589,6 +2609,23 @@ __Usage:__ +### Model_service.batch_import_evaluated_annotations + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/model_service.batch_import_evaluated_annotations.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/model_service.batch_import_evaluated_annotations.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/model_service.batch_import_evaluated_annotations.js` + + +----- + + + + ### Model_service.batch_import_model_evaluation_slices View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/model_service.batch_import_model_evaluation_slices.js). @@ -6193,6 +6230,23 @@ __Usage:__ +### Model_service.batch_import_evaluated_annotations + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.batch_import_evaluated_annotations.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.batch_import_evaluated_annotations.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.batch_import_evaluated_annotations.js` + + +----- + + + + ### Model_service.batch_import_model_evaluation_slices View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.batch_import_model_evaluation_slices.js). diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_feature_values.js b/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_feature_values.js new file mode 100644 index 00000000000..f30cec0a845 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_feature_values.js @@ -0,0 +1,73 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(entityType) { + // [START aiplatform_v1_generated_FeaturestoreService_DeleteFeatureValues_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Select feature values to be deleted by specifying entities. + */ + // const selectEntity = {} + /** + * Select feature values to be deleted by specifying time range and + * features. + */ + // const selectTimeRangeAndFeature = {} + /** + * Required. The resource name of the EntityType grouping the Features for + * which values are being deleted from. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + */ + // const entityType = 'abc123' + + // Imports the Aiplatform library + const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeaturestoreServiceClient(); + + async function callDeleteFeatureValues() { + // Construct request + const request = { + entityType, + }; + + // Run request + const [operation] = await aiplatformClient.deleteFeatureValues(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteFeatureValues(); + // [END aiplatform_v1_generated_FeaturestoreService_DeleteFeatureValues_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.batch_import_evaluated_annotations.js b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.batch_import_evaluated_annotations.js new file mode 100644 index 00000000000..f173b6c2489 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.batch_import_evaluated_annotations.js @@ -0,0 +1,68 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, evaluatedAnnotations) { + // [START aiplatform_v1_generated_ModelService_BatchImportEvaluatedAnnotations_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the parent ModelEvaluationSlice resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + */ + // const parent = 'abc123' + /** + * Required. Evaluated annotations resource to be imported. + */ + // const evaluatedAnnotations = 1234 + + // Imports the Aiplatform library + const {ModelServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new ModelServiceClient(); + + async function callBatchImportEvaluatedAnnotations() { + // Construct request + const request = { + parent, + evaluatedAnnotations, + }; + + // Run request + const response = await aiplatformClient.batchImportEvaluatedAnnotations(request); + console.log(response); + } + + callBatchImportEvaluatedAnnotations(); + // [END aiplatform_v1_generated_ModelService_BatchImportEvaluatedAnnotations_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); 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 f94e6d9f906..aa0cd1581c2 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 @@ -2067,6 +2067,54 @@ } } }, + { + "regionTag": "aiplatform_v1_generated_FeaturestoreService_DeleteFeatureValues_async", + "title": "DatasetService deleteFeatureValues Sample", + "origin": "API_DEFINITION", + "description": " Delete Feature values from Featurestore. The progress of the deletion is tracked by the returned operation. The deleted feature values are guaranteed to be invisible to subsequent read operations after the operation is marked as successfully done. If a delete feature values operation fails, the feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same delete request again and wait till the new operation returned is marked as successfully done.", + "canonical": true, + "file": "featurestore_service.delete_feature_values.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteFeatureValues", + "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureValues", + "async": true, + "parameters": [ + { + "name": "select_entity", + "type": ".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity" + }, + { + "name": "select_time_range_and_feature", + "type": ".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature" + }, + { + "name": "entity_type", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeaturestoreServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" + }, + "method": { + "shortName": "DeleteFeatureValues", + "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureValues", + "service": { + "shortName": "FeaturestoreService", + "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" + } + } + } + }, { "regionTag": "aiplatform_v1_generated_FeaturestoreService_SearchFeatures_async", "title": "DatasetService searchFeatures Sample", @@ -6235,7 +6283,7 @@ "regionTag": "aiplatform_v1_generated_ModelService_DeleteModelVersion_async", "title": "DatasetService deleteModelVersion Sample", "origin": "API_DEFINITION", - "description": " Deletes a Model version. Model version can only be deleted if there are no [DeployedModels][] created from it. Deleting the only version in the Model is not allowed. Use [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model instead.", + "description": " Deletes a Model version. Model version can only be deleted if there are no [DeployedModels][google.cloud.aiplatform.v1.DeployedModel] created from it. Deleting the only version in the Model is not allowed. Use [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model instead.", "canonical": true, "file": "model_service.delete_model_version.js", "language": "JAVASCRIPT", @@ -6503,6 +6551,50 @@ } } }, + { + "regionTag": "aiplatform_v1_generated_ModelService_BatchImportEvaluatedAnnotations_async", + "title": "DatasetService batchImportEvaluatedAnnotations Sample", + "origin": "API_DEFINITION", + "description": " Imports a list of externally generated EvaluatedAnnotations.", + "canonical": true, + "file": "model_service.batch_import_evaluated_annotations.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchImportEvaluatedAnnotations", + "fullName": "google.cloud.aiplatform.v1.ModelService.BatchImportEvaluatedAnnotations", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "evaluated_annotations", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse", + "client": { + "shortName": "ModelServiceClient", + "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" + }, + "method": { + "shortName": "BatchImportEvaluatedAnnotations", + "fullName": "google.cloud.aiplatform.v1.ModelService.BatchImportEvaluatedAnnotations", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.aiplatform.v1.ModelService" + } + } + } + }, { "regionTag": "aiplatform_v1_generated_ModelService_GetModelEvaluation_async", "title": "DatasetService getModelEvaluation Sample", @@ -9383,7 +9475,7 @@ "regionTag": "aiplatform_v1_generated_VizierService_CheckTrialEarlyStoppingState_async", "title": "DatasetService checkTrialEarlyStoppingState Sample", "origin": "API_DEFINITION", - "description": " Checks whether a Trial should stop or not. Returns a long-running operation. When the operation is successful, it will contain a [CheckTrialEarlyStoppingStateResponse][google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse].", + "description": " Checks whether a Trial should stop or not. Returns a long-running operation. When the operation is successful, it will contain a [CheckTrialEarlyStoppingStateResponse][google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse].", "canonical": true, "file": "vizier_service.check_trial_early_stopping_state.js", "language": "JAVASCRIPT", diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.batch_import_evaluated_annotations.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.batch_import_evaluated_annotations.js new file mode 100644 index 00000000000..8131cf24472 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.batch_import_evaluated_annotations.js @@ -0,0 +1,68 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, evaluatedAnnotations) { + // [START aiplatform_v1beta1_generated_ModelService_BatchImportEvaluatedAnnotations_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the parent ModelEvaluationSlice resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + */ + // const parent = 'abc123' + /** + * Required. Evaluated annotations resource to be imported. + */ + // const evaluatedAnnotations = 1234 + + // Imports the Aiplatform library + const {ModelServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new ModelServiceClient(); + + async function callBatchImportEvaluatedAnnotations() { + // Construct request + const request = { + parent, + evaluatedAnnotations, + }; + + // Run request + const response = await aiplatformClient.batchImportEvaluatedAnnotations(request); + console.log(response); + } + + callBatchImportEvaluatedAnnotations(); + // [END aiplatform_v1beta1_generated_ModelService_BatchImportEvaluatedAnnotations_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json index d9d02e3a5be..182cbe855a3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json @@ -6643,7 +6643,7 @@ "regionTag": "aiplatform_v1beta1_generated_ModelService_DeleteModelVersion_async", "title": "DatasetService deleteModelVersion Sample", "origin": "API_DEFINITION", - "description": " Deletes a Model version. Model version can only be deleted if there are no [DeployedModels][] created from it. Deleting the only version in the Model is not allowed. Use [DeleteModel][google.cloud.aiplatform.v1beta1.ModelService.DeleteModel] for deleting the Model instead.", + "description": " Deletes a Model version. Model version can only be deleted if there are no [DeployedModels][google.cloud.aiplatform.v1beta1.DeployedModel] created from it. Deleting the only version in the Model is not allowed. Use [DeleteModel][google.cloud.aiplatform.v1beta1.ModelService.DeleteModel] for deleting the Model instead.", "canonical": true, "file": "model_service.delete_model_version.js", "language": "JAVASCRIPT", @@ -6911,6 +6911,50 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_generated_ModelService_BatchImportEvaluatedAnnotations_async", + "title": "DatasetService batchImportEvaluatedAnnotations Sample", + "origin": "API_DEFINITION", + "description": " Imports a list of externally generated EvaluatedAnnotations.", + "canonical": true, + "file": "model_service.batch_import_evaluated_annotations.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchImportEvaluatedAnnotations", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService.BatchImportEvaluatedAnnotations", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "evaluated_annotations", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse", + "client": { + "shortName": "ModelServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" + }, + "method": { + "shortName": "BatchImportEvaluatedAnnotations", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService.BatchImportEvaluatedAnnotations", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_ModelService_GetModelEvaluation_async", "title": "DatasetService getModelEvaluation Sample", @@ -9791,7 +9835,7 @@ "regionTag": "aiplatform_v1beta1_generated_VizierService_CheckTrialEarlyStoppingState_async", "title": "DatasetService checkTrialEarlyStoppingState Sample", "origin": "API_DEFINITION", - "description": " Checks whether a Trial should stop or not. Returns a long-running operation. When the operation is successful, it will contain a [CheckTrialEarlyStoppingStateResponse][google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse].", + "description": " Checks whether a Trial should stop or not. Returns a long-running operation. When the operation is successful, it will contain a [CheckTrialEarlyStoppingStateResponse][google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse].", "canonical": true, "file": "vizier_service.check_trial_early_stopping_state.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 4e47539614f..536cd16f083 100644 --- a/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts @@ -479,6 +479,9 @@ export class DatasetServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -678,6 +681,10 @@ export class DatasetServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -879,6 +886,7 @@ export class DatasetServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1033,6 +1041,7 @@ export class DatasetServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1199,6 +1208,9 @@ export class DatasetServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json index 44918848766..b7295bb569f 100644 --- a/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json @@ -18,6 +18,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts index ba8d7ff8381..3ba7395b033 100644 --- a/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts @@ -458,6 +458,9 @@ export class EndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -657,6 +660,10 @@ export class EndpointServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -858,6 +865,7 @@ export class EndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1012,6 +1020,7 @@ export class EndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1178,6 +1187,9 @@ export class EndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json index 44918848766..b7295bb569f 100644 --- a/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json @@ -18,6 +18,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_proto_list.json index 44918848766..b7295bb569f 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_proto_list.json @@ -18,6 +18,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts b/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts index 3325ffca131..f865e2b45e0 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts @@ -476,6 +476,9 @@ export class FeaturestoreServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -675,6 +678,10 @@ export class FeaturestoreServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -876,6 +883,7 @@ export class FeaturestoreServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1030,6 +1038,7 @@ export class FeaturestoreServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1196,6 +1205,9 @@ export class FeaturestoreServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, @@ -1369,6 +1381,12 @@ export class FeaturestoreServiceClient { const exportFeatureValuesMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata' ) as gax.protobuf.Type; + const deleteFeatureValuesResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse' + ) as gax.protobuf.Type; + const deleteFeatureValuesMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata' + ) as gax.protobuf.Type; this.descriptors.longrunning = { createFeaturestore: new this._gaxModule.LongrunningDescriptor( @@ -1430,6 +1448,11 @@ export class FeaturestoreServiceClient { exportFeatureValuesResponse.decode.bind(exportFeatureValuesResponse), exportFeatureValuesMetadata.decode.bind(exportFeatureValuesMetadata) ), + deleteFeatureValues: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteFeatureValuesResponse.decode.bind(deleteFeatureValuesResponse), + deleteFeatureValuesMetadata.decode.bind(deleteFeatureValuesMetadata) + ), }; // Put together the default options sent with requests. @@ -1501,6 +1524,7 @@ export class FeaturestoreServiceClient { 'importFeatureValues', 'batchReadFeatureValues', 'exportFeatureValues', + 'deleteFeatureValues', 'searchFeatures', ]; for (const methodName of featurestoreServiceStubMethods) { @@ -3798,6 +3822,160 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata >; } + /** + * Delete Feature values from Featurestore. + * + * The progress of the deletion is tracked by the returned operation. The + * deleted feature values are guaranteed to be invisible to subsequent read + * operations after the operation is marked as successfully done. + * + * If a delete feature values operation fails, the feature values + * returned from reads and exports may be inconsistent. If consistency is + * required, the caller must retry the same delete request again and wait till + * the new operation returned is marked as successfully done. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity} request.selectEntity + * Select feature values to be deleted by specifying entities. + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} request.selectTimeRangeAndFeature + * Select feature values to be deleted by specifying time range and + * features. + * @param {string} request.entityType + * Required. The resource name of the EntityType grouping the Features for + * which values are being deleted from. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/featurestore_service.delete_feature_values.js + * region_tag:aiplatform_v1_generated_FeaturestoreService_DeleteFeatureValues_async + */ + deleteFeatureValues( + request?: protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, + protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteFeatureValues( + request: protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, + protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteFeatureValues( + request: protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, + protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteFeatureValues( + request?: protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, + protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, + protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, + protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + entity_type: request.entityType ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteFeatureValues(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteFeatureValues()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/featurestore_service.delete_feature_values.js + * region_tag:aiplatform_v1_generated_FeaturestoreService_DeleteFeatureValues_async + */ + async checkDeleteFeatureValuesProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse, + protos.google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteFeatureValues, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse, + protos.google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + >; + } /** * Lists Featurestores in a given project and location. * diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_service_client_config.json b/packages/google-cloud-aiplatform/src/v1/featurestore_service_client_config.json index c7fd6ba089c..f1d667857a9 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_service_client_config.json @@ -96,6 +96,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "DeleteFeatureValues": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "SearchFeatures": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/featurestore_service_proto_list.json index 44918848766..b7295bb569f 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_service_proto_list.json @@ -18,6 +18,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json index 15ee64fb9e9..6c2ef2e22bf 100644 --- a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json @@ -371,6 +371,11 @@ "exportFeatureValues" ] }, + "DeleteFeatureValues": { + "methods": [ + "deleteFeatureValues" + ] + }, "ListFeaturestores": { "methods": [ "listFeaturestores", @@ -484,6 +489,11 @@ "exportFeatureValues" ] }, + "DeleteFeatureValues": { + "methods": [ + "deleteFeatureValues" + ] + }, "ListFeaturestores": { "methods": [ "listFeaturestores", @@ -1520,6 +1530,11 @@ "batchImportModelEvaluationSlices" ] }, + "BatchImportEvaluatedAnnotations": { + "methods": [ + "batchImportEvaluatedAnnotations" + ] + }, "GetModelEvaluation": { "methods": [ "getModelEvaluation" @@ -1613,6 +1628,11 @@ "batchImportModelEvaluationSlices" ] }, + "BatchImportEvaluatedAnnotations": { + "methods": [ + "batchImportEvaluatedAnnotations" + ] + }, "GetModelEvaluation": { "methods": [ "getModelEvaluation" diff --git a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts index 18e4c021755..048dcfb9e8f 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts @@ -458,6 +458,9 @@ export class IndexEndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -657,6 +660,10 @@ export class IndexEndpointServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -858,6 +865,7 @@ export class IndexEndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1012,6 +1020,7 @@ export class IndexEndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1178,6 +1187,9 @@ export class IndexEndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json index 44918848766..b7295bb569f 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json @@ -18,6 +18,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/index_service_client.ts b/packages/google-cloud-aiplatform/src/v1/index_service_client.ts index 19ab63030b6..f4b66b56185 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/index_service_client.ts @@ -458,6 +458,9 @@ export class IndexServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -657,6 +660,10 @@ export class IndexServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -858,6 +865,7 @@ export class IndexServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1012,6 +1020,7 @@ export class IndexServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1178,6 +1187,9 @@ export class IndexServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json index 44918848766..b7295bb569f 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json @@ -18,6 +18,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/job_service_client.ts b/packages/google-cloud-aiplatform/src/v1/job_service_client.ts index 64797b09393..9445bc6e020 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/job_service_client.ts @@ -494,6 +494,9 @@ export class JobServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -693,6 +696,10 @@ export class JobServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -894,6 +901,7 @@ export class JobServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1048,6 +1056,7 @@ export class JobServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1214,6 +1223,9 @@ export class JobServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json index 44918848766..b7295bb569f 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json @@ -18,6 +18,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts b/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts index 4bece8c4ea2..f9482007258 100644 --- a/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts @@ -481,6 +481,9 @@ export class MetadataServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -680,6 +683,10 @@ export class MetadataServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -881,6 +888,7 @@ export class MetadataServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1035,6 +1043,7 @@ export class MetadataServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1201,6 +1210,9 @@ export class MetadataServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/metadata_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/metadata_service_proto_list.json index 44918848766..b7295bb569f 100644 --- a/packages/google-cloud-aiplatform/src/v1/metadata_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/metadata_service_proto_list.json @@ -18,6 +18,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts b/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts index 293ffcfae36..d2915c9a023 100644 --- a/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts @@ -459,6 +459,9 @@ export class MigrationServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -658,6 +661,10 @@ export class MigrationServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -859,6 +866,7 @@ export class MigrationServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1013,6 +1021,7 @@ export class MigrationServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1179,6 +1188,9 @@ export class MigrationServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json index 44918848766..b7295bb569f 100644 --- a/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json @@ -18,6 +18,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/model_service_client.ts b/packages/google-cloud-aiplatform/src/v1/model_service_client.ts index 0f405ce7b53..67db6654ee0 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/model_service_client.ts @@ -473,6 +473,9 @@ export class ModelServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -672,6 +675,10 @@ export class ModelServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -873,6 +880,7 @@ export class ModelServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1027,6 +1035,7 @@ export class ModelServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1193,6 +1202,9 @@ export class ModelServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, @@ -1421,6 +1433,7 @@ export class ModelServiceClient { 'copyModel', 'importModelEvaluation', 'batchImportModelEvaluationSlices', + 'batchImportEvaluatedAnnotations', 'getModelEvaluation', 'listModelEvaluations', 'getModelEvaluationSlice', @@ -2023,6 +2036,111 @@ export class ModelServiceClient { callback ); } + /** + * Imports a list of externally generated EvaluatedAnnotations. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent ModelEvaluationSlice resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * @param {number[]} request.evaluatedAnnotations + * Required. Evaluated annotations resource to be imported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse | BatchImportEvaluatedAnnotationsResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/model_service.batch_import_evaluated_annotations.js + * region_tag:aiplatform_v1_generated_ModelService_BatchImportEvaluatedAnnotations_async + */ + batchImportEvaluatedAnnotations( + request?: protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsResponse, + ( + | protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest + | undefined + ), + {} | undefined + ] + >; + batchImportEvaluatedAnnotations( + request: protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsResponse, + | protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + batchImportEvaluatedAnnotations( + request: protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsResponse, + | protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + batchImportEvaluatedAnnotations( + request?: protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsResponse, + | protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsResponse, + | protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsResponse, + ( + | protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.batchImportEvaluatedAnnotations( + request, + options, + callback + ); + } /** * Gets a ModelEvaluation. * @@ -2527,8 +2645,9 @@ export class ModelServiceClient { /** * Deletes a Model version. * - * Model version can only be deleted if there are no {@link |DeployedModels} - * created from it. Deleting the only version in the Model is not allowed. Use + * Model version can only be deleted if there are no + * {@link google.cloud.aiplatform.v1.DeployedModel|DeployedModels} created from it. + * Deleting the only version in the Model is not allowed. Use * {@link google.cloud.aiplatform.v1.ModelService.DeleteModel|DeleteModel} for * deleting the Model instead. * diff --git a/packages/google-cloud-aiplatform/src/v1/model_service_client_config.json b/packages/google-cloud-aiplatform/src/v1/model_service_client_config.json index 1f3e41c0e93..705668228c5 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1/model_service_client_config.json @@ -68,6 +68,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "BatchImportEvaluatedAnnotations": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "GetModelEvaluation": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json index 44918848766..b7295bb569f 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json @@ -18,6 +18,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts index c390d5b66e2..89681105fbf 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts @@ -465,6 +465,9 @@ export class PipelineServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -664,6 +667,10 @@ export class PipelineServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -865,6 +872,7 @@ export class PipelineServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1019,6 +1027,7 @@ export class PipelineServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1185,6 +1194,9 @@ export class PipelineServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json index 44918848766..b7295bb569f 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json @@ -18,6 +18,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json index 44918848766..b7295bb569f 100644 --- a/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json @@ -18,6 +18,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts index ae460028de1..a67f6e0be97 100644 --- a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts @@ -464,6 +464,9 @@ export class SpecialistPoolServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -663,6 +666,10 @@ export class SpecialistPoolServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -864,6 +871,7 @@ export class SpecialistPoolServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1018,6 +1026,7 @@ export class SpecialistPoolServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1184,6 +1193,9 @@ export class SpecialistPoolServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json index 44918848766..b7295bb569f 100644 --- a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json @@ -18,6 +18,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts index 3356bc2f3bd..4ede8fec391 100644 --- a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts @@ -490,6 +490,9 @@ export class TensorboardServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -689,6 +692,10 @@ export class TensorboardServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -890,6 +897,7 @@ export class TensorboardServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1044,6 +1052,7 @@ export class TensorboardServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1210,6 +1219,9 @@ export class TensorboardServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_proto_list.json index 44918848766..b7295bb569f 100644 --- a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_proto_list.json @@ -18,6 +18,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts b/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts index 1803545bc1a..3cf2685ac6d 100644 --- a/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts @@ -467,6 +467,9 @@ export class VizierServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -666,6 +669,10 @@ export class VizierServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -867,6 +874,7 @@ export class VizierServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1021,6 +1029,7 @@ export class VizierServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1187,6 +1196,9 @@ export class VizierServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, @@ -2619,7 +2631,7 @@ export class VizierServiceClient { * Checks whether a Trial should stop or not. Returns a * long-running operation. When the operation is successful, * it will contain a - * {@link google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse|CheckTrialEarlyStoppingStateResponse}. + * {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse|CheckTrialEarlyStoppingStateResponse}. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json index 44918848766..b7295bb569f 100644 --- a/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json @@ -18,6 +18,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts index 8ccbe842224..9850d536ecf 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts @@ -486,6 +486,9 @@ export class DatasetServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -696,6 +699,10 @@ export class DatasetServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -912,6 +919,7 @@ export class DatasetServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1085,6 +1093,7 @@ export class DatasetServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1270,6 +1279,9 @@ export class DatasetServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_client.ts index bba1217d444..176803529d2 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_client.ts @@ -474,6 +474,9 @@ export class DeploymentResourcePoolServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -684,6 +687,10 @@ export class DeploymentResourcePoolServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -900,6 +907,7 @@ export class DeploymentResourcePoolServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1073,6 +1081,7 @@ export class DeploymentResourcePoolServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1258,6 +1267,9 @@ export class DeploymentResourcePoolServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts index 623715e1058..7dc764acc30 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts @@ -465,6 +465,9 @@ export class EndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -675,6 +678,10 @@ export class EndpointServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -891,6 +898,7 @@ export class EndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1064,6 +1072,7 @@ export class EndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1249,6 +1258,9 @@ export class EndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts index 961a7f10e31..954b0edba0f 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts @@ -483,6 +483,9 @@ export class FeaturestoreServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -693,6 +696,10 @@ export class FeaturestoreServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -909,6 +916,7 @@ export class FeaturestoreServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1082,6 +1090,7 @@ export class FeaturestoreServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1267,6 +1276,9 @@ export class FeaturestoreServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json index 4d587a2b7b4..5190f1f89e1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json @@ -1636,6 +1636,11 @@ "batchImportModelEvaluationSlices" ] }, + "BatchImportEvaluatedAnnotations": { + "methods": [ + "batchImportEvaluatedAnnotations" + ] + }, "GetModelEvaluation": { "methods": [ "getModelEvaluation" @@ -1734,6 +1739,11 @@ "batchImportModelEvaluationSlices" ] }, + "BatchImportEvaluatedAnnotations": { + "methods": [ + "batchImportEvaluatedAnnotations" + ] + }, "GetModelEvaluation": { "methods": [ "getModelEvaluation" diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_client.ts index bc5fc14e990..a4075316992 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_client.ts @@ -465,6 +465,9 @@ export class IndexEndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -675,6 +678,10 @@ export class IndexEndpointServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -891,6 +898,7 @@ export class IndexEndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1064,6 +1072,7 @@ export class IndexEndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1249,6 +1258,9 @@ export class IndexEndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts index 28e73860eea..890497572c9 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts @@ -465,6 +465,9 @@ export class IndexServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -675,6 +678,10 @@ export class IndexServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -891,6 +898,7 @@ export class IndexServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1064,6 +1072,7 @@ export class IndexServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1249,6 +1258,9 @@ export class IndexServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/index_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts index cc344890f95..6e2d2974113 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts @@ -501,6 +501,9 @@ export class JobServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -711,6 +714,10 @@ export class JobServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -927,6 +934,7 @@ export class JobServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1100,6 +1108,7 @@ export class JobServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1285,6 +1294,9 @@ export class JobServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/match_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/match_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/match_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/match_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts index 128e13fa13d..3dcedaa1945 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts @@ -488,6 +488,9 @@ export class MetadataServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -698,6 +701,10 @@ export class MetadataServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -914,6 +921,7 @@ export class MetadataServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1087,6 +1095,7 @@ export class MetadataServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1272,6 +1281,9 @@ export class MetadataServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts index 8f7e4866353..fe631ca2ebb 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts @@ -466,6 +466,9 @@ export class MigrationServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -676,6 +679,10 @@ export class MigrationServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -892,6 +899,7 @@ export class MigrationServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1065,6 +1073,7 @@ export class MigrationServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1250,6 +1259,9 @@ export class MigrationServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts index 54422d19b8a..dbb6ac1c1de 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts @@ -480,6 +480,9 @@ export class ModelServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -690,6 +693,10 @@ export class ModelServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -906,6 +913,7 @@ export class ModelServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1079,6 +1087,7 @@ export class ModelServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1264,6 +1273,9 @@ export class ModelServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, @@ -1517,6 +1529,7 @@ export class ModelServiceClient { 'copyModel', 'importModelEvaluation', 'batchImportModelEvaluationSlices', + 'batchImportEvaluatedAnnotations', 'getModelEvaluation', 'listModelEvaluations', 'getModelEvaluationSlice', @@ -2139,6 +2152,111 @@ export class ModelServiceClient { callback ); } + /** + * Imports a list of externally generated EvaluatedAnnotations. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent ModelEvaluationSlice resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * @param {number[]} request.evaluatedAnnotations + * Required. Evaluated annotations resource to be imported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse | BatchImportEvaluatedAnnotationsResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta1/model_service.batch_import_evaluated_annotations.js + * region_tag:aiplatform_v1beta1_generated_ModelService_BatchImportEvaluatedAnnotations_async + */ + batchImportEvaluatedAnnotations( + request?: protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse, + ( + | protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest + | undefined + ), + {} | undefined + ] + >; + batchImportEvaluatedAnnotations( + request: protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse, + | protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + batchImportEvaluatedAnnotations( + request: protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse, + | protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + batchImportEvaluatedAnnotations( + request?: protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse, + | protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse, + | protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse, + ( + | protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.batchImportEvaluatedAnnotations( + request, + options, + callback + ); + } /** * Gets a ModelEvaluation. * @@ -2794,8 +2912,9 @@ export class ModelServiceClient { /** * Deletes a Model version. * - * Model version can only be deleted if there are no {@link |DeployedModels} - * created from it. Deleting the only version in the Model is not allowed. Use + * Model version can only be deleted if there are no + * {@link google.cloud.aiplatform.v1beta1.DeployedModel|DeployedModels} created + * from it. Deleting the only version in the Model is not allowed. Use * {@link google.cloud.aiplatform.v1beta1.ModelService.DeleteModel|DeleteModel} for * deleting the Model instead. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client_config.json b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client_config.json index adb9f815031..d073f2cc96c 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client_config.json @@ -79,6 +79,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "BatchImportEvaluatedAnnotations": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "GetModelEvaluation": { "timeout_millis": 5000, "retry_codes_name": "non_idempotent", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/model_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts index 0b53240a7de..17395b54ab8 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts @@ -472,6 +472,9 @@ export class PipelineServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -682,6 +685,10 @@ export class PipelineServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -898,6 +905,7 @@ export class PipelineServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1071,6 +1079,7 @@ export class PipelineServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1256,6 +1265,9 @@ export class PipelineServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts index 69cf5f6c219..d153a2a3b79 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts @@ -471,6 +471,9 @@ export class SpecialistPoolServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -681,6 +684,10 @@ export class SpecialistPoolServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -897,6 +904,7 @@ export class SpecialistPoolServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1070,6 +1078,7 @@ export class SpecialistPoolServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1255,6 +1264,9 @@ export class SpecialistPoolServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts index 73c5eb18cd0..4855c8e19b1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts @@ -497,6 +497,9 @@ export class TensorboardServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -707,6 +710,10 @@ export class TensorboardServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -923,6 +930,7 @@ export class TensorboardServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1096,6 +1104,7 @@ export class TensorboardServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1281,6 +1290,9 @@ export class TensorboardServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts index 7c3a51558bc..06013e2df45 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts @@ -474,6 +474,9 @@ export class VizierServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', }, @@ -684,6 +687,10 @@ export class VizierServiceClient { delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', @@ -900,6 +907,7 @@ export class VizierServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', }, @@ -1073,6 +1081,7 @@ export class VizierServiceClient { { get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', }, @@ -1258,6 +1267,9 @@ export class VizierServiceClient { { post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', }, @@ -2763,7 +2775,7 @@ export class VizierServiceClient { * Checks whether a Trial should stop or not. Returns a * long-running operation. When the operation is successful, * it will contain a - * {@link google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse|CheckTrialEarlyStoppingStateResponse}. + * {@link google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse|CheckTrialEarlyStoppingStateResponse}. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_proto_list.json index aa3de3bda26..d95650909f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_proto_list.json @@ -20,6 +20,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", "../../protos/google/cloud/aiplatform/v1beta1/event.proto", "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", diff --git a/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts index fb6aa73addd..7be3da17c6e 100644 --- a/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts @@ -3249,6 +3249,212 @@ describe('v1.FeaturestoreServiceClient', () => { }); }); + describe('deleteFeatureValues', () => { + it('invokes deleteFeatureValues without error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest', + ['entityType'] + ); + request.entityType = defaultValue1; + const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteFeatureValues = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteFeatureValues(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteFeatureValues as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureValues as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeatureValues without error using callback', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest', + ['entityType'] + ); + request.entityType = defaultValue1; + const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteFeatureValues = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteFeatureValues( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, + protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, + protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteFeatureValues as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureValues as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeatureValues with call error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest', + ['entityType'] + ); + request.entityType = defaultValue1; + const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteFeatureValues = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteFeatureValues(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteFeatureValues as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureValues as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeatureValues with LRO error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest', + ['entityType'] + ); + request.entityType = defaultValue1; + const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteFeatureValues = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteFeatureValues(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteFeatureValues as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureValues as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteFeatureValuesProgress without error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkDeleteFeatureValuesProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteFeatureValuesProgress with error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteFeatureValuesProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + describe('listFeaturestores', () => { it('invokes listFeaturestores without error', async () => { const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( diff --git a/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts index 416b13c42cb..6df10fdd68a 100644 --- a/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts @@ -929,6 +929,143 @@ describe('v1.ModelServiceClient', () => { }); }); + describe('batchImportEvaluatedAnnotations', () => { + it('invokes batchImportEvaluatedAnnotations without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse() + ); + client.innerApiCalls.batchImportEvaluatedAnnotations = + stubSimpleCall(expectedResponse); + const [response] = await client.batchImportEvaluatedAnnotations(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.batchImportEvaluatedAnnotations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchImportEvaluatedAnnotations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchImportEvaluatedAnnotations without error using callback', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse() + ); + client.innerApiCalls.batchImportEvaluatedAnnotations = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.batchImportEvaluatedAnnotations( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IBatchImportEvaluatedAnnotationsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.batchImportEvaluatedAnnotations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchImportEvaluatedAnnotations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchImportEvaluatedAnnotations with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.batchImportEvaluatedAnnotations = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.batchImportEvaluatedAnnotations(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.batchImportEvaluatedAnnotations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchImportEvaluatedAnnotations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchImportEvaluatedAnnotations with closed client', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.batchImportEvaluatedAnnotations(request), + expectedError + ); + }); + }); + describe('getModelEvaluation', () => { it('invokes getModelEvaluation without error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ diff --git a/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts index 6a099986884..3c3ed1bdacc 100644 --- a/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts @@ -931,6 +931,143 @@ describe('v1beta1.ModelServiceClient', () => { }); }); + describe('batchImportEvaluatedAnnotations', () => { + it('invokes batchImportEvaluatedAnnotations without error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse() + ); + client.innerApiCalls.batchImportEvaluatedAnnotations = + stubSimpleCall(expectedResponse); + const [response] = await client.batchImportEvaluatedAnnotations(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.batchImportEvaluatedAnnotations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchImportEvaluatedAnnotations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchImportEvaluatedAnnotations without error using callback', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse() + ); + client.innerApiCalls.batchImportEvaluatedAnnotations = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.batchImportEvaluatedAnnotations( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.batchImportEvaluatedAnnotations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchImportEvaluatedAnnotations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchImportEvaluatedAnnotations with error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.batchImportEvaluatedAnnotations = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.batchImportEvaluatedAnnotations(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.batchImportEvaluatedAnnotations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchImportEvaluatedAnnotations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchImportEvaluatedAnnotations with closed client', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.batchImportEvaluatedAnnotations(request), + expectedError + ); + }); + }); + describe('getModelEvaluation', () => { it('invokes getModelEvaluation without error', async () => { const client = new modelserviceModule.v1beta1.ModelServiceClient({